/*
 *     Generated by class-dump 3.0.
 *
 *     class-dump is Copyright (C) 1997-1998, 2000-2001, 2004 by Steve Nygard.
 */

struct CGSize {
    float _field1;
    float _field2;
};

struct ComponentInstanceRecord {
    long _field1[1];
};

struct MVAlertStateImageNames {
    id _field1;
    id _field2;
    id _field3;
    id _field4;
    id _field5;
    id _field6;
    id _field7;
    id _field8;
};

struct MailAlertInfo {
    id _field1;
    id _field2;
    id _field3;
    id _field4;
    int _field5;
};

struct MailPasswordInfo {
    id _field1;
    id _field2;
    char *_field3;
    id _field4;
};

struct MailSegmentedCellMetrics {
    float _field1;
    float _field2;
    float _field3;
    float _field4;
    float _field5;
    float _field6;
    float _field7;
    float _field8;
    float _field9;
    float _field10;
};

struct OpaqueSecCertificateRef;

struct PointerDataRefRecord;

struct SheetContext {
    id _field1;
    id _field2;
    id _field3;
    id _field4;
    char _field5;
};

struct UserDataRecord;

struct _CGDirectDisplayID;

struct _MessageSortingInformation {
    char _field1;
    char _field2;
    id _field3;
};

struct _NSHashTable;

struct _NSMapTable;

struct _NSPoint {
    float x;
    float y;
};

struct _NSRange {
    unsigned int location;
    unsigned int length;
};

struct _NSRect {
    struct _NSPoint origin;
    struct _NSSize size;
};

struct _NSSize {
    float width;
    float height;
};

struct _NSZone;

struct _QuotaSimpleSortDescriptor {
    void *comparator;
    char ascending;
};

struct __CFDictionary;

struct __CFNetDiagnostic;

struct __CFSet;

struct __CFURL;

struct visible_state {
    char hadSelection;
    char selectionWasVisible;
    char scrollerWasAtEnd;
    char forceSelToVisible;
    NSString *msgIDToPin;
    float msgUpperLeft;
};

typedef struct {
    int _field1;
    char _field2;
    float _field3;
    float _field4;
    float _field5;
    float _field6;
    char _field7;
    char _field8;
} CDAnonymousStruct2;

typedef struct {
    int _field1;
    float _field2;
} CDAnonymousStruct1;

/*
 * File: /Applications/Mail.app/Contents/MacOS/Mail
 */

@protocol DOMNodeFilter <NSObject>
- (short)acceptNode:(id)fp8;
@end

@protocol MFUserAgent
- (id)queryUserForPasswordWithMessage:(id)fp8 title:(id)fp12 remember:(char *)fp16;
- (BOOL)showCertificateTrustPanelForError:(id)fp8 certificates:(id)fp12;
- (int)informUserOfError:(id)fp8;
- (BOOL)queryUserForYesNoWithMessage:(id)fp8 title:(id)fp12 yesTitle:(id)fp16 noTitle:(id)fp20;
- (int)runAlertPanelWithTitle:(id)fp8 defaultTitle:(id)fp12 alternateTitle:(id)fp16 otherTitle:(id)fp20 message:(id)fp24;
- (void)runNonModalAlertPanelForObject:(id)fp8 withError:(id)fp12;
- (void)dismissNonModalAlertPanelForObject:(id)fp8;
- (void)queryUserForBigMessageAction:(id)fp8 userResponse:(int *)fp12;
- (BOOL)queryUserIfNeededToCreateMailbox:(id)fp8 orChooseNewMailbox:(id *)fp12;
- (id)queryUserToSelectMailbox:(id)fp8;
- (void)storeBeingInvalidated:(id)fp8;
- (BOOL)shouldInvalidateMailbox:(id)fp8;
- (BOOL)isTerminating;
- (BOOL)wakingFromSleep;
- (BOOL)personWithEmailIsOnline:(id)fp8;
- (BOOL)openTemporaryAttachments:(id)fp8 applicationBundle:(id)fp12;
@end

@protocol MVMailboxSelectionOwner
- (id)selectedMailboxes;
- (id)selectedMailbox;
- (void)selectPathsToMailboxes:(id)fp8;
- (BOOL)mailboxIsExpanded:(id)fp8;
- (void)revealMailbox:(id)fp8;
- (id)mailboxSelectionWindow;
@end

@protocol MVSelectionOwner
- (id)selection;
- (void)selectMessages:(id)fp8;
- (id)currentDisplayedMessage;
- (id)messageStore;
- (BOOL)transferSelectionToMailbox:(id)fp8 deleteOriginals:(BOOL)fp12;
@end

@protocol MessageBrowserController <NSObject, MVSelectionOwner>
- (id)messageBrowserView;
- (BOOL)isSelectionVisible;
- (void)showSelectionAndCenter:(BOOL)fp8;
- (void)updateTextViewerToSelection;
- (id)messagesToTransfer;
- (void)willTransferMessages:(id)fp8 toMailbox:(id)fp12 deleteOriginals:(BOOL)fp16;
- (void)transfer:(id)fp8 didCompleteWithError:(id)fp12;
- (id)messageToSelectIfEntireSelectionRemoved;
- (void)selectNextMessage:(BOOL)fp8;
- (void)selectPreviousMessage:(BOOL)fp8;
- (void)selectNextMessageMovingDownward:(BOOL)fp8;
- (void)selectNextMessageMovingUpward:(BOOL)fp8;
- (BOOL)includeDeleted;
- (void)setIncludeDeleted:(BOOL)fp8;
- (BOOL)shouldDeleteGivenCurrentState;
- (void)deleteSelectionAllowingMoveToTrash:(BOOL)fp8;
- (void)deleteMessages:(id)fp8 allowMoveToTrash:(BOOL)fp12 allowUndo:(BOOL)fp16;
- (void)undeleteMessagesAllowingUndo:(BOOL)fp8;
- (void)undeleteMessages:(id)fp8 allowUndo:(BOOL)fp12;
@end

@protocol MessageContentDisplay <NSObject>
+ (id)copyDocumentForMessage:(id)fp8 viewingState:(id)fp12;
- (id)contentView;
- (id)textView;
- (void)display:(id)fp8 inContainerView:(id)fp12 replacingView:(id)fp16;
- (void)prepareToRemoveView;
- (void)highlightSearchText:(id)fp8;
- (id)selectedText;
- (id)selectedWebArchive;
- (id)attachmentsInSelection;
- (id)webArchive;
- (void)adjustFontSizeBy:(int)fp8 viewingState:(id)fp12;
- (id)findTarget;
- (void)updateURLMatches:(id)fp8 viewingState:(id)fp12;
@end

@protocol NSCopying
- (id)copyWithZone:(struct _NSZone *)fp8;
@end

@protocol NSObject
- (BOOL)isEqual:(id)fp8;
- (unsigned int)hash;
- (Class)superclass;
- (Class)class;
- (id)self;
- (struct _NSZone *)zone;
- (id)performSelector:(SEL)fp8;
- (id)performSelector:(SEL)fp8 withObject:(id)fp12;
- (id)performSelector:(SEL)fp8 withObject:(id)fp12 withObject:(id)fp16;
- (BOOL)isProxy;
- (BOOL)isKindOfClass:(Class)fp8;
- (BOOL)isMemberOfClass:(Class)fp8;
- (BOOL)conformsToProtocol:(id)fp8;
- (BOOL)respondsToSelector:(SEL)fp8;
- (id)retain;
- (oneway void)release;
- (id)autorelease;
- (unsigned int)retainCount;
- (id)description;
@end

@protocol NSTextInput
- (void)insertText:(id)fp8;
- (void)doCommandBySelector:(SEL)fp8;
- (void)setMarkedText:(id)fp8 selectedRange:(struct _NSRange)fp12;
- (void)unmarkText;
- (BOOL)hasMarkedText;
- (long)conversationIdentifier;
- (id)attributedSubstringFromRange:(struct _NSRange)fp8;
- (struct _NSRange)markedRange;
- (struct _NSRange)selectedRange;
- (struct _NSRect)firstRectForCharacterRange:(struct _NSRange)fp8;
- (unsigned int)characterIndexForPoint:(struct _NSPoint)fp8;
- (id)validAttributesForMarkedText;
@end

@protocol QueryProgressMonitor
- (BOOL)shouldCancel;
@end

@protocol SplitHandleProtocol <NSObject>
- (void)setDrawsShadow:(BOOL)fp8;
@end

@protocol SyncableApp
- (id)syncerForDataType:(int)fp8;
- (id)ownerForDataType:(int)fp8;
- (id)interestedPartiesForDataType:(int)fp8;
- (BOOL)tellInterestedPartiesDataWillBeSyncedForDataType:(int)fp8;
- (void)tellInterestedPartiesDataWasSyncedForDataType:(int)fp8;
- (void)client:(id)fp8 mightWantToSyncEntityNames:(id)fp12;
@end

@protocol SyncableDataInterestedParty <NSObject>
- (BOOL)dataWillBeSynced;
- (void)dataWasSynced;
@end

@protocol SyncableDataOwner <NSObject>
- (BOOL)dataWillBeSyncedVersion:(id *)fp8 data:(id *)fp12;
- (BOOL)dataWasSyncedVersion:(id)fp8 newData:(id)fp12 acceptedChanges:(id)fp16;
@end

@interface MailApp (MFUserAgent) <MFUserAgent>
- (void)_runPasswordPanelInMainThreadWithInfo:(struct MailPasswordInfo *)fp8;
- (id)queryUserForPasswordWithMessage:(id)fp8 title:(id)fp12 remember:(char *)fp16;
- (void)_runAlertPanelInMainThreadWithInfo:(struct MailAlertInfo *)fp8;
- (int)runAlertPanelWithTitle:(id)fp8 defaultTitle:(id)fp12 alternateTitle:(id)fp16 otherTitle:(id)fp20 message:(id)fp24;
- (void)runNonModalAlertPanelForObject:(id)fp8 withError:(id)fp12;
- (void)dismissNonModalAlertPanelForObject:(id)fp8;
- (int)informUserOfError:(id)fp8;
- (BOOL)queryUserForYesNoWithMessage:(id)fp8 title:(id)fp12 yesTitle:(id)fp16 noTitle:(id)fp20;
- (BOOL)showCertificateTrustPanelForError:(id)fp8 certificates:(id)fp12;
- (id)displayStringForMailbox:(id)fp8;
- (BOOL)queryUserIfNeededToCreateMailbox:(id)fp8 orChooseNewMailbox:(id *)fp12;
- (id)queryUserToSelectMailbox:(id)fp8;
- (void)selectMailboxPanelDone:(id)fp8;
- (void)queryUserForBigMessageAction:(id)fp8 userResponse:(int *)fp12;
- (void)downloadBigMessage:(id)fp8;
- (void)storeBeingInvalidated:(id)fp8;
- (BOOL)shouldInvalidateMailbox:(id)fp8;
- (id)sharedAttachmentContextMenu;
- (BOOL)isTerminating;
- (BOOL)wakingFromSleep;
- (BOOL)personWithEmailIsOnline:(id)fp8;
- (BOOL)openTemporaryAttachments:(id)fp8 applicationBundle:(id)fp12;
@end

@interface MessageViewerBox : NSBox
{
    BOOL _dragSourceIsAcceptable;
}

- (unsigned int)draggingUpdated:(id)fp8;
- (void)draggingExited:(id)fp8;
- (BOOL)prepareForDragOperation:(id)fp8;
- (BOOL)performDragOperation:(id)fp8;
- (void)concludeDragOperation:(id)fp8;
- (BOOL)isOpaque;
- (void)drawRect:(struct _NSRect)fp8;

@end

@interface MessageViewer : NSResponder <MVMailboxSelectionOwner>
{
    MessageMall *_messageMall;
    TableViewManager *_tableManager;
    MessageContentController *_contentController;
    NSWindow *_window;
    ExpandingSplitView *_splitView;
    MailVerticalSplitView *_verticalSplitView;
    ColorBackgroundView *_viewerContainer;
    ColorBackgroundView *_mailboxesView;
    ASExtendedOutlineView *_outlineView;
    SearchTextField *_searchField;
    NSView *_searchFieldView;
    NSToolbarItem *_searchViewItem;
    NSString *_lastSearchPhrase;
    int _currentSearchType;
    int _currentSearchTarget;
    int _selectedTag;
    NSMenu *_tableHeaderMenu;
    MailboxesOutlineViewOwner *_outlineViewOwner;
    NSButton *newMailboxButton;
    NSPopUpButton *actionButton;
    VerticalSplitViewHandle *verticalSplitViewHandle;
    MailboxPaneBottomView *mailboxPaneBottomView;
    BOOL _shouldPreventTableViewResize;
    BOOL _shouldMakeTableViewSelectionVisible;
    BOOL _shouldPreventFirstViewResize;
    BOOL _shouldMakeMessageSelectionVisible;
    BOOL _showingDefaultSearchString;
    BOOL _updatingSearchField;
    BOOL _allowShowingDeletedMessages;
    BOOL _suppressWindowTitleUpdates;
    float _restoreMailboxPaneToWidthAfterDragOperation;
    float _lastSplitViewPosition;
    float _lastMailboxSplitPosition;
    float _lastDragXPosition;
    NSArray *_mailboxesToDisplayWhenVisible;
    NSToolbar *_toolbar;
    NSMutableDictionary *_toolbarItems;
    NSDictionary *_savedDefaults;
    NSMutableArray *_transferOperations;
    NSMutableDictionary *_viewerContents;
    float _splitViewPositionBeforeSearch;
    SplitterAnimation *_animation;
    SearchSliceView *_searchSliceView;
    BOOL _updatingToolbar;
    float _mailboxesViewWidthAtLastToolbarUpdate;
}

+ (id)allMessageViewers;
+ (id)allSingleMessageViewers;
+ (id)existingViewerForStore:(id)fp8;
+ (id)existingViewerForMailboxUid:(id)fp8;
+ (id)existingViewerForMessage:(id)fp8;
+ (id)newViewerForMailboxWithTag:(unsigned int)fp8;
+ (id)existingViewerShowingMessage:(id)fp8;
+ (void)registerNewViewer:(id)fp8;
+ (void)deregisterViewer:(id)fp8;
+ (void)showAllViewers;
+ (id)mailboxUidsBeingViewed;
+ (id)frontmostMessageViewer;
+ (void)searchForString:(id)fp8;
+ (id)_mailboxUidsForPaths:(id)fp8;
+ (void)saveDefaultsWithDelay;
+ (void)saveDefaults;
+ (void)restoreFromDefaults;
- (void)revealMessage:(id)fp8;
- (void)revealCurrentMessage;
- (void)_displayFollowup:(id)fp8;
- (void)_cantFindFollowupToMessage:(id)fp8;
- (void)showFollowupsToMessage:(id)fp8;
- (id)_mailboxUidsFromDefaults:(id)fp8;
- (id)initWithSavedDefaults:(id)fp8;
- (id)init;
- (id)plainInit;
- (id)initWithMailboxUids:(id)fp8;
- (void)dealloc;
- (void)_registerForApplicationNotifications;
- (void)_unregisterForApplicationNotifications;
- (void)_registerForStoreNotifications;
- (void)_unregisterForStoreNotifications;
- (void)storeBeingInvalidated:(id)fp8;
- (void)preferencesChanged:(id)fp8;
- (void)_setStore:(id)fp8;
- (BOOL)_isViewingMailboxUid:(id)fp8;
- (BOOL)_isViewingMessage:(id)fp8;
- (BOOL)_isShowingMessage:(id)fp8;
- (id)window;
- (void)show;
- (void)showAndMakeKey:(BOOL)fp8;
- (void)awakeFromNib;
- (void)_setupUI;
- (void)_setUpWindowContents;
- (void)_setupMailboxOutlineView;
- (void)_setupNextKeyViewLoop;
- (void)takeOverAsSelectionOwner;
- (void)resignAsSelectionOwner;
- (void)windowDidBecomeMain:(id)fp8;
- (void)nowWouldBeAGoodTimeToTerminate:(id)fp8;
- (BOOL)windowShouldClose:(id)fp8;
- (void)windowWillMiniaturize:(id)fp8;
- (struct _NSSize)windowWillResize:(id)fp8 toSize:(struct _NSSize)fp12;
- (void)openMailboxesPaneToWidth:(float)fp8;
- (BOOL)mailboxesPaneIsOpen;
- (BOOL)mailboxesPaneIsOpenWideEnoughToUse;
- (void)splitViewDidResizeSubviews:(id)fp8;
- (void)splitViewWillResizeSubviews:(id)fp8;
- (void)splitViewDoubleClickedOnDivider:(id)fp8;
- (void)toggleMailboxesPane:(id)fp8;
- (void)splitView:(id)fp8 resizeSubviewsWithOldSize:(struct _NSSize)fp12;
- (BOOL)splitView:(id)fp8 canCollapseSubview:(id)fp12;
- (float)splitView:(id)fp8 constrainMinCoordinate:(float)fp12 ofSubviewAt:(int)fp16;
- (float)splitView:(id)fp8 constrainMaxCoordinate:(float)fp12 ofSubviewAt:(int)fp16;
- (float)maxMailboxesViewWidthAllowed;
- (float)idealMailboxesViewWidth;
- (void)updateMailboxButtonVisibilityForWidth:(float)fp8;
- (float)splitView:(id)fp8 constrainSplitPosition:(float)fp12 ofSubviewAt:(int)fp16;
- (id)selectedMailboxes;
- (id)selectedMailbox;
- (void)selectPathsToMailboxes:(id)fp8;
- (BOOL)mailboxIsExpanded:(id)fp8;
- (void)revealMailbox:(id)fp8;
- (id)mailboxSelectionWindow;
- (void)setSelectedMailboxes:(id)fp8;
- (id)selectedMessages;
- (void)setSelectedMessages:(id)fp8;
- (id)currentDisplayedMessage;
- (void)outlineViewDoubleClick:(id)fp8;
- (void)selectMailbox:(id)fp8;
- (void)keyDown:(id)fp8;
- (void)keyUp:(id)fp8;
- (void)_mailboxWasRenamed:(id)fp8;
- (void)mailboxSelectionChanged:(id)fp8;
- (void)_mallDidOpen;
- (void)_mallStructureDidChange;
- (void)smartMailboxCriteriaChanged:(id)fp8;
- (void)_setMailboxUids:(id)fp8;
- (BOOL)_selectionContainsMessagesWithDeletedStatusEqualTo:(BOOL)fp8;
- (BOOL)_selectionContainsMessagesWithReadStatusEqualTo:(BOOL)fp8;
- (BOOL)_selectionContainsMessagesWithFlaggedStatusEqualTo:(BOOL)fp8;
- (BOOL)_selectionContainsMessagesWithJunkMailLevelEqualTo:(int)fp8;
- (BOOL)_selectionContainsMessagesWithAttachments;
- (BOOL)atLeastOneSelectedMessageIsInOutbox:(id)fp8;
- (BOOL)_validateAction:(SEL)fp8 tag:(int)fp12;
- (BOOL)validateMenuItem:(id)fp8;
- (void)messageWasDisplayedInTextView:(id)fp8;
- (void)messageThreadSummaryWasDisplayedInTextView:(id)fp8;
- (void)checkNewMail:(id)fp8;
- (void)replyMessage:(id)fp8;
- (void)replyAllMessage:(id)fp8;
- (void)replyToSender:(id)fp8;
- (void)replyToOriginalSender:(id)fp8;
- (void)showComposeWindow:(id)fp8;
- (void)showAddressPanel:(id)fp8;
- (void)toggleAttachmentsArea:(id)fp8;
- (void)undeleteMessages:(id)fp8;
- (void)deleteMessages:(id)fp8;
- (void)deleteMessagesAllowingMoveToTrash:(BOOL)fp8;
- (void)selectAllMessages;
- (void)setFirstResponder;
- (void)replyViaIM:(id)fp8;
- (void)showAccountInfo:(id)fp8;
- (id)tableManager;
- (id)mailboxesOutlineViewOwner;
- (void)jumpToSelection:(id)fp8;
- (void)editorWithGatekeeperApproval:(id)fp8;
- (id)editorWithType:(int)fp8;
- (void)redirectMessage:(id)fp8;
- (void)forwardMessage:(id)fp8;
- (void)displaySelectedMessageInSeparateWindow:(id)fp8;
- (void)renameMailbox:(id)fp8;
- (void)moveMessagesToMailbox:(id)fp8;
- (void)copyMessagesToMailbox:(id)fp8;
- (id)_selectedMessagesWhoseFlag:(unsigned long)fp8 isEqualToState:(BOOL)fp12;
- (void)_changeFlag:(id)fp8 state:(BOOL)fp12 forMessages:(id)fp16 undoActionName:(id)fp20;
- (void)markAsRead:(id)fp8;
- (void)markAsUnread:(id)fp8;
- (void)markAsReadFromToolbar:(id)fp8;
- (void)markAsUnreadFromToolbar:(id)fp8;
- (void)markAsUnflagged:(id)fp8;
- (void)markAsFlagged:(id)fp8;
- (void)markAsFlaggedFromToolbar:(id)fp8;
- (void)markAsUnflaggedFromToolbar:(id)fp8;
- (void)changeColor:(id)fp8;
- (void)rebuildTableOfContents:(id)fp8;
- (void)_putMessageDataOntoPasteboard:(id)fp8 attributedString:(id)fp12 shouldDelete:(id)fp16 pasteboardType:(id)fp20;
- (void)_copyMessagesToPasteboard:(id)fp8 deleteWhenCopied:(BOOL)fp12 pasteboardType:(id)fp16;
- (void)_progressAlertDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (BOOL)_doCopy:(id)fp8 deleteWhenCopied:(BOOL)fp12;
- (void)copy:(id)fp8;
- (void)cut:(id)fp8;
- (void)_pasteData:(id)fp8 pasteboardType:(id)fp12 destination:(id)fp16;
- (void)paste:(id)fp8;
- (void)startSpeaking:(id)fp8;
- (void)stopSpeaking:(id)fp8;
- (void)speechSynthesizer:(id)fp8 didFinishSpeaking:(BOOL)fp12;
- (void)showPrintPanel:(id)fp8;
- (BOOL)send:(id)fp8 forDraft:(BOOL)fp12;
- (BOOL)send:(id)fp8;
- (void)saveAs:(id)fp8;
- (void)saveAllAttachments:(id)fp8;
- (id)defaultSearchString;
- (void)showDefaultSearchString;
- (id)_criterionForMailbox:(id)fp8;
- (id)mailboxSearchCriterionForScope:(int)fp8;
- (void)searchIndex:(id)fp8;
- (BOOL)_isShowingSearchResults;
- (unsigned int)_searchResultCount;
- (BOOL)_canSaveSearchWithTarget:(int)fp8;
- (BOOL)_canSearchSelectedMailboxes;
- (void)_showSearchSliceView;
- (void)_hideSearchSliceView;
- (void)_searchForString:(id)fp8;
- (void)_updateSearchStatus;
- (void)_clearSearch;
- (void)clearSearch:(id)fp8;
- (void)setupSearchParametersForTag:(int)fp8;
- (int)searchType;
- (int)searchTarget;
- (void)controlTextDidEndEditing:(id)fp8;
- (void)controlTextDidChange:(id)fp8;
- (void)_removeAttachmentsFromMessages:(id)fp8 fromStores:(id)fp12;
- (void)removeAttachments:(id)fp8;
- (void)sortByTagOfSender:(id)fp8;
- (void)focus:(id)fp8;
- (void)unfocus:(id)fp8;
- (void)openAllThreads:(id)fp8;
- (void)closeAllThreads:(id)fp8;
- (void)toggleThreadedMode:(id)fp8;
- (void)selectThread:(id)fp8;
- (void)selectPreviousInThread:(id)fp8;
- (void)selectNextInThread:(id)fp8;
- (void)showDeletions:(id)fp8;
- (void)hideDeletions:(id)fp8;
- (void)toggleContentsColumn:(id)fp8;
- (void)toggleMessageNumbersColumn:(id)fp8;
- (void)toggleMessageFlagsColumn:(id)fp8;
- (void)toggleFromColumn:(id)fp8;
- (void)togglePresenceColumn:(id)fp8;
- (void)toggleToColumn:(id)fp8;
- (void)toggleDateSentColumn:(id)fp8;
- (void)toggleDateReceivedColumn:(id)fp8;
- (void)toggleLocationColumn:(id)fp8;
- (void)toggleSizeColumn:(id)fp8;
- (void)writeDefaultsToArray:(id)fp8;
- (id)_saveDefaults;
- (void)_loadDefaults;
- (void)_setupFromDefaults;
- (id)_numberOfMessagesStringIsDrafts:(BOOL)fp8 omitUnread:(BOOL)fp12;
- (void)_updateWindowTitle;
- (void)_updateMessageMallUids:(id)fp8;
- (id)_currentMessageManager;
- (void)_setSplitViewPercentage:(float)fp8 animate:(BOOL)fp12;
- (void)animationDidEnd:(id)fp8;
- (void)messageWasSelected:(id)fp8 fromMessageBrowserController:(id)fp12;
- (void)scrollCurrentlySelectedMessageToTop;
- (void)messageWasDoubleClicked:(id)fp8;
- (void)messageBrowserView:(id)fp8 willStartDragWithEvent:(id)fp12;
- (void)draggedImage:(id)fp8 movedTo:(struct _NSPoint)fp12;
- (void)messageBrowserViewDidEndDragging:(id)fp8;
- (BOOL)transferSelectedMessagesToMailbox:(id)fp8 deleteOriginals:(BOOL)fp12;
- (void)_reallyAnimateProgressInidicator;
- (void)_updateSearchStatusWithDelay;
- (void)threadDidExpand;
- (void)threadDidCollapse;
- (void)searchWillStart;
- (void)searchDidFinish;
- (void)searchDidUpdate;
- (id)selectedMailboxUids;
- (void)performSearch:(id)fp8;
- (void)saveSearch:(id)fp8;
- (void)reapplySortingRules:(id)fp8;
- (void)_returnToSenderSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)returnToSender:(id)fp8;
- (void)addSenderToAddressBook:(id)fp8;
- (void)markAsJunkMail:(id)fp8;
- (void)markMessagesAsJunkMail:(id)fp8 stores:(id)fp12;
- (void)_deleteJunkedMessages:(id)fp8 inStores:(id)fp12 moveToTrash:(BOOL)fp16;
- (void)synchronouslyMarkAsJunkMail:(id)fp8 inStores:(id)fp12 delete:(BOOL)fp16;
- (void)undoMarkMessagesAsJunkMail:(id)fp8 stores:(id)fp12;
- (void)markAsNotJunkMail:(id)fp8;
- (void)markMessagesAsNotJunkMail:(id)fp8 stores:(id)fp12;
- (void)synchronouslyMarkAsNotJunkMail:(id)fp8 inStores:(id)fp12;
- (BOOL)_transferSelectedMessagesToMailbox:(id)fp8 deleteOriginals:(BOOL)fp12;
- (void)_reportError:(id)fp8;
- (void)transfer:(id)fp8 didCompleteWithError:(id)fp12;
- (id)undoManagerForMessageTransfer:(id)fp8;
- (void)_updateSearchItemLabel;

@end

@interface MessageViewer (AppleScript)
- (id)uniqueID;
- (id)objectSpecifier;
- (id)allMessages;
- (id)focusedMessages;
- (void)setFocusedMessages:(id)fp8;
- (int)appleScriptSortColumn;
- (void)setAppleScriptSortColumn:(int)fp8;
- (BOOL)isSortedAscending;
- (void)setIsSortedAscending:(BOOL)fp8;
- (BOOL)previewPaneVisible;
- (void)setPreviewPaneVisible:(BOOL)fp8;
- (id)visibleColumns;
- (void)setVisibleColumns:(id)fp8;
- (id)inbox;
- (id)outbox;
- (id)draftsMailbox;
- (id)sentMailbox;
- (id)trashMailbox;
- (id)junkMailbox;
- (void)setScriptingProperties:(id)fp8;
@end

@interface TableViewManager : NSObject <MessageBrowserController>
{
    ASExtendedTableView *_tableView;
    MessageMall *_messageMall;
    id _delegate;
    NSArray *_tableColumns;
    NSFont *_font;
    NSFont *_boldFont;
    NSMutableArray *_selection;
    NSArray *_selectionExcludingThreads;
    BOOL _suspendChangesToScrollingAndSelection;
    Message *_currentDisplayedMessage;
    struct _NSMapTable *_storeStateTable;
    NSMutableArray *_draggedMessages;
    NSMutableAttributedString *_truncatedString;
    NSMutableDictionary *_truncatedParagraphStyle;
    NSString *_availableStatusImageName;
    int leftmostTextColumn;
    struct {
        unsigned int includeDeleted:1;
        unsigned int isFocused:1;
        unsigned int wasSortedAscendingBeforeRankSort:1;
        unsigned int isShowingSearchResults:1;
        unsigned int sortColumnBeforeRankSort:8;
        unsigned int showAccountInLocationColumn:1;
        unsigned int showSenderColumnAlways:1;
        unsigned int hideSenderColumnAlways:1;
        unsigned int showReceiverColumnAlways:1;
        unsigned int hideReceiverColumnAlways:1;
        unsigned int showDateReceivedColumnAlways:1;
        unsigned int hideDateReceivedColumnAlways:1;
        unsigned int showDateSentColumnAlways:1;
        unsigned int hideDateSentColumnAlways:1;
        unsigned int showDateLastViewedColumnAlways:1;
        unsigned int hideDateLastViewedColumnAlways:1;
        unsigned int showLocationColumn:1;
        unsigned int hasScrolledSinceMailboxChange:1;
        unsigned int userChangedSelectionSinceMailboxChange:1;
        unsigned int threadOpeningIsInProgress:1;
        unsigned int threadClosingIsInProgress:1;
        unsigned int doubleClickThreadOpeningIsInProgress:1;
        unsigned int animatingThreadOpening:1;
        unsigned int animatingThreadClosing:1;
        unsigned int animateInSlowMotion:1;
        unsigned int dontUpdateTrackingRects:1;
        unsigned int dontReadWriteStoreSpecificDefaultsToMailbox:1;
        unsigned int useBoldFontForUnreadMessages:1;
        unsigned int clearingSearch:1;
        unsigned int changingSelection:1;
        unsigned int selectionShouldNotChange:1;
    } _flags;
    NSDictionary *_messageIDsToSelectWhenOpened;
    NSArray *_threadIDsToOpenWhenOpened;
    int colorHighlightLeftEdge;
    int colorHighlightWidth;
    int locationColumnPosition;
    int locationColumnWidth;
    int senderColumnPosition;
    int senderColumnWidth;
    int receiverColumnPosition;
    int receiverColumnWidth;
    int dateReceivedColumnPosition;
    int dateReceivedColumnWidth;
    int dateSentColumnPosition;
    int dateSentColumnWidth;
    int dateLastViewedColumnPosition;
    int dateLastViewedColumnWidth;
    int threadedUnreadColumnWidth;
    NSMutableDictionary *_columnWidthsBeforeSearch;
    int _windowWidthBeforeSearch;
    VisibleStateObject *_visibleStateBeforeSearch;
    NSMutableSet *_messagesInSelectedThread;
    MessageThread *threadBeingClosed;
    MessageThread *threadBeingOpened;
    struct __CFDictionary *_rowDrawingCache;
    NSMutableSet *_mouseTrackers;
    struct _NSPoint _lastMouseDownInUnreadColumnPoint;
    int _lastMouseDownInUnreadColumnEventNumber;
    struct _NSPoint _currentMouseLocationInWindow;
    float _amountToScrollDownAfterClosingThread;
    int _numberOfSelectedRowsBeforeTogglingThread;
    int _selectedRowBeforeTogglingThread;
    BOOL _unreadColumnResizableAfterResizingColumnsToFit;
}

+ (void)initialize;
- (void)awakeFromNib;
- (void)tableViewScrolled:(id)fp8;
- (void)_setupColumnHeaderIcon:(id)fp8 inColumnWithIdentifier:(id)fp12 accessibilityTitle:(id)fp16 alignment:(int)fp20;
- (int)_calcUnreadColumnWidthForUnreadCountString:(id)fp8;
- (void)_setupUnreadColumnMinWidth;
- (void)_setupUnreadColumnWidth;
- (void)_setupTableColumnWidths;
- (void)_configureColumnForEndTruncation:(id)fp8;
- (void)_configureColumnForDateCell:(id)fp8;
- (void)_configureColumnForImageCell:(id)fp8 alignment:(int)fp12;
- (void)_configureColumnForRolloverCell:(id)fp8 alignment:(int)fp12 action:(SEL)fp16;
- (void)showFollowupsToMessage:(id)fp8;
- (void)showFollowupsToMessageAtRow:(int)fp8;
- (void)_setupColumnsForTableView;
- (void)dealloc;
- (void)windowWillClose:(id)fp8;
- (id)delegate;
- (void)setDelegate:(id)fp8;
- (void)setMessageMall:(id)fp8;
- (void)readDefaultsFromDictionary:(id)fp8;
- (void)readColumnLayoutFromDictionary:(id)fp8;
- (void)writeDefaultsToDictionary:(id)fp8;
- (void)writeColumnLayoutToDictionary:(id)fp8;
- (void)setDontReadWriteStoreSpecificDefaultsToMailbox:(BOOL)fp8;
- (void)writeStoreSpecificDefaultsToMailboxUid:(id)fp8;
- (void)readStoreSpecificDefaultsFromMailboxUid:(id)fp8;
- (void)readStoreSpecificDefaultsFromDictionary:(id)fp8;
- (BOOL)canSelectNextMessage;
- (BOOL)canSelectPreviousMessage;
- (void)rulePreferencesChanged:(id)fp8;
- (void)viewerPreferencesChanged:(id)fp8;
- (BOOL)threadHasSelectedMessages:(id)fp8;
- (void)presencePreferenceChanged:(id)fp8;
- (void)threadColorPreferenceChanged:(id)fp8;
- (void)presenceImageChanged:(id)fp8;
- (void)presenceChanged:(id)fp8;
- (void)_updateTableHeaderToMatchCurrentSort;
- (void)tableView:(id)fp8 didClickTableColumn:(id)fp12;
- (id)_columnWithIdentifierTag:(int)fp8;
- (id)_unreadColumn;
- (BOOL)isColumnVisible:(int)fp8;
- (void)setColumn:(int)fp8 toVisible:(BOOL)fp12;
- (void)_setColumn:(int)fp8 toVisible:(BOOL)fp12;
- (BOOL)displaysMessageSizes;
- (void)setDisplaysReceiver:(BOOL)fp8 displaysDateSent:(BOOL)fp12 displaysDateLastViewed:(BOOL)fp16;
- (int)tableViewNumberOfColumnsToPinToLefthandSide:(id)fp8;
- (void)selectAllMessagesAndMakeFirstResponder;
- (void)makeMessageListFirstResponder;
- (void)setFont:(id)fp8;
- (id)font;
- (id)boldFont;
- (BOOL)isInThreadedMode;
- (void)toggleThreadedMode;
- (void)threadedModeDidChange:(id)fp8;
- (void)_invalidateSelectionExcludingThreads;
- (void)openThreadAtIndex:(int)fp8 andSelectMessage:(id)fp12 animate:(BOOL)fp16;
- (void)closeThreadAtIndex:(int)fp8 focusRow:(int)fp12 animate:(BOOL)fp16;
- (void)openAllThreads;
- (void)closeAllThreads;
- (void)toggleThread:(id)fp8;
- (void)toggleThread:(id)fp8 ignoreModifierKeys:(BOOL)fp12;
- (int)_indexOfMessageNearest:(int)fp8 numberOfRows:(int)fp12 threaded:(BOOL)fp16 downward:(BOOL)fp20;
- (BOOL)canSelectPreviousThreadedMessage;
- (BOOL)canSelectNextThreadedMessage;
- (BOOL)canSelectParentOfMessage;
- (BOOL)canSelectFirstReplyToMessage;
- (BOOL)canSelectNextReplyToParent;
- (BOOL)selectionIsExactlyOneOpenThread;
- (void)selectNextMessageMovingDownward:(BOOL)fp8;
- (void)selectNextMessageMovingUpward:(BOOL)fp8;
- (void)stepIntoSelectedThread;
- (void)stepOutOfSelectedThread;
- (BOOL)openSelectedThread;
- (void)selectNextMessage:(BOOL)fp8;
- (void)selectPreviousMessage:(BOOL)fp8;
- (void)selectParentOfMessage;
- (void)selectFirstReplyToMessage;
- (void)selectPeer:(BOOL)fp8;
- (void)selectNextReplyToParent;
- (void)selectPreviousReplyToParent;
- (void)showSelectionAndCenter:(BOOL)fp8;
- (BOOL)isSelectionVisible;
- (void)scrollRowToVisible:(int)fp8 position:(int)fp12;
- (int)tableView:(id)fp8 shouldScrollRowToVisible:(int)fp12;
- (BOOL)_isMessageInSelectedThread:(id)fp8;
- (void)_setNeedsDisplayForMessagesInSet:(id)fp8;
- (void)_setNeedsDisplayThreadColumnForMessagesInSet:(id)fp8;
- (void)_updateSelectedThreadList;
- (id)selectedThread;
- (void)_reallyUpdateTextViewerToSelection;
- (void)updateTextViewerToSelection;
- (BOOL)tableView:(id)fp8 shouldSelectRow:(int)fp12 byExtendingSelection:(BOOL)fp16;
- (void)selectionIsChanging:(id)fp8;
- (void)_selectOrDeselectMembersOfThread:(id)fp8 atIndex:(int)fp12 select:(BOOL)fp16;
- (void)selectionChanged:(id)fp8;
- (void)datesNeedRedisplay;
- (int)numberOfRowsInTableView:(id)fp8;
- (id)_attributesForTruncatedParagraphStyle;
- (id)_colorForMessage:(id)fp8 inRow:(int)fp12;
- (id)_truncatedAttributedStringForString:(id)fp8 message:(id)fp12 row:(int)fp16 shouldIndent:(BOOL)fp20;
- (id)tableView:(id)fp8 sampleObjectValueForTableColumn:(id)fp12 row:(int)fp16;
- (id)tableView:(id)fp8 objectValueForTableColumn:(id)fp12 row:(int)fp16;
- (void)_updateColorHighlightEdges;
- (void)tableView:(id)fp8 didDragTableColumn:(id)fp12;
- (void)tableViewColumnDidMove:(id)fp8;
- (void)tableViewColumnDidResize:(id)fp8;
- (void)tableView:(id)fp8 willDisplaySampleCell:(id)fp12 forTableColumn:(id)fp16 row:(int)fp20;
- (void)tableView:(id)fp8 willDisplayCell:(id)fp12 forTableColumn:(id)fp16 row:(int)fp20;
- (id)tableViewHighlightColor:(id)fp8;
- (int)tableView:(id)fp8 highlightStyleForRow:(int)fp12 inRect:(struct _NSRect *)fp16 color:(id *)fp20;
- (void)doubleClickedMessage:(id)fp8;
- (void)deleteKeyPressed;
- (void)deleteSelectionAllowingMoveToTrash:(BOOL)fp8;
- (id)selectionIncludingThreads:(BOOL)fp8;
- (id)selection;
- (void)_selectMessages:(id)fp8 scrollIfNeeded:(BOOL)fp12;
- (void)selectMessages:(id)fp8;
- (id)currentDisplayedMessage;
- (id)messageStore;
- (id)orderOfFromSubjectDateColumns;
- (id)tableView;
- (BOOL)tableView:(id)fp8 doCommandBySelector:(SEL)fp12;
- (id)_undoActionNameForMessages:(id)fp8;
- (void)_undeleteMessages:(id)fp8 allowUndo:(BOOL)fp12 unreadMessages:(id)fp16;
- (id)_unreadMessagesFromMessages:(id)fp8;
- (void)undeleteMessages:(id)fp8 allowUndo:(BOOL)fp12;
- (void)_redeleteMessages:(id)fp8 messagesToSelect:(id)fp12;
- (void)deleteMessages:(id)fp8 allowMoveToTrash:(BOOL)fp12 allowUndo:(BOOL)fp16;
- (void)undeleteMessagesAllowingUndo:(BOOL)fp8;
- (BOOL)shouldDeleteGivenCurrentState;
- (void)tableViewDraggedImage:(id)fp8 movedTo:(struct _NSPoint)fp12;
- (unsigned int)tableView:(id)fp8 draggingSourceOperationMaskForLocal:(BOOL)fp12;
- (id)messagesToTransfer;
- (void)willTransferMessages:(id)fp8 toMailbox:(id)fp12 deleteOriginals:(BOOL)fp16;
- (void)transfer:(id)fp8 didCompleteWithError:(id)fp12;
- (BOOL)transferSelectionToMailbox:(id)fp8 deleteOriginals:(BOOL)fp12;
- (void)tableViewDragWillEnd:(id)fp8 operation:(unsigned int)fp12;
- (BOOL)tableView:(id)fp8 writeRows:(id)fp12 toPasteboard:(id)fp16;
- (id)_dragImageForRow:(int)fp8 event:(id)fp12 dragImageOffset:(struct _NSPoint *)fp16;
- (id)tableView:(id)fp8 dragImageForRowsWithIndexes:(id)fp12 event:(id)fp16 dragImageOffset:(struct _NSPoint *)fp20;
- (void)tableView:(id)fp8 willDrawRowsInRange:(struct _NSRange)fp12;
- (void)tableView:(id)fp8 didDrawRowsInRange:(struct _NSRange)fp12;
- (struct _NSRect)frameOfClickedCell;
- (struct _NSPoint)mouseLocationInWindow;
- (void)callWillDisplayCellForClickedCell;
- (void)setButtonCellNeedsDisplay;
- (void)tableView:(id)fp8 gotEvent:(id)fp12;
- (BOOL)shouldTrackMouse:(id)fp8;
- (id)tableView:(id)fp8 rangesForBackgroundShadingInRange:(struct _NSRange)fp12 shadingColors:(id *)fp20 leftColumnColors:(id *)fp24;
- (id)messageMall;
- (int)_indexOfFirstNonDeletedNonSelectedMessage:(int)fp8 withinRowRange:(struct _NSRange)fp12 goUp:(BOOL)fp20;
- (id)messageBrowserView;
- (id)messageToSelectIfEntireSelectionRemoved;
- (BOOL)includeDeleted;
- (void)setIncludeDeleted:(BOOL)fp8;

@end

@interface TableViewManager (AppleScript)
+ (id)_getDarkerThreadBackgroundColorForThread:(id)fp8;
+ (id)_getThreadBackgroundColorForThread:(id)fp8;
- (int)_columnForAppleScriptColumn:(int)fp8;
- (int)appleScriptSortColumn;
- (void)setAppleScriptSortColumn:(int)fp8;
- (id)appleScriptVisibleColumns;
- (void)setAppleScriptVisibleColumns:(id)fp8;
@end

@interface NSEvent (MailViewerEvent)
- (void)_setModifierFlags:(unsigned int)fp8;
@end

@interface MessageContentController : NSResponder
{
    Message *_message;
    MessageViewingState *_viewingState;
    ActivityMonitor *_documentMonitor;
    id _currentDisplay;
    id _threadDisplay;
    TextMessageDisplay *textDisplay;
    MessageHeaderDisplay *headerDisplay;
    NSView *contentContainerView;
    NSView *junkMailView;
    NSTextField *junkMailMessageField;
    NSButton *junkMailLoadHTMLButton;
    NSView *loadImagesView;
    NSButton *loadImagesButton;
    NSBox *bannerBorderBox;
    NSView *certificateView;
    NSButton *certificateButton;
    NSImageView *certificateImage;
    NSTextField *certificateMessageField;
    NSView *childBannerView;
    NSTextField *childBannerMessageField;
    NSImageView *childBannerImage;
    NSButton *childBannerButton;
    NSButton *childBannerHelpButton;
    NSView *parentBannerView;
    NSTextField *parentBannerMessageField;
    NSImageView *parentBannerImage;
    NSButton *parentBannerButton;
    NSView *parentApprovedOrRejectedBannerView;
    NSTextField *parentApprovedOrRejectedBannerMessageField;
    NSImageView *parentApprovedOrRejectedBannerImage;
    AttachmentsView *attachmentsView;
    ObjectCache *_documentCache;
    InvocationQueue *invocationQueue;
    double _foregroundLoadStartTime;
    double _backgroundLoadStartTime;
    double _backgroundLoadEndTime;
    NSString *_messageIDToRestoreInitialStateFor;
    struct _NSRect _initialVisibleRect;
    struct _NSRange _initialSelectedRange;
    NSArray *mostRecentHeaderOrder;
    NSTimer *_fadeTimer;
    NSView *_currentBanner;
    BOOL _hideBannerBorder;
    NSTextField *_widthResizableTextFieldInCurrentBanner;
    NSView *_rightNeighborOfWidthResizableTextFieldInCurrentBanner;
    BOOL isForPrinting;
    BOOL showDefaultHeadersStickily;
    MessageViewingState *stickyViewingState;
}

+ (void)setClass:(Class)fp8 forDisplayType:(id)fp12;
- (id)init;
- (void)setIsForPrinting:(BOOL)fp8;
- (void)setContentContainerView:(id)fp8;
- (void)setLoadImagesView:(id)fp8;
- (void)setJunkMailView:(id)fp8;
- (void)setCertificateView:(id)fp8;
- (void)setChildBannerView:(id)fp8;
- (void)setParentBannerView:(id)fp8;
- (void)setParentApprovedOrRejectedBannerView:(id)fp8;
- (void)readDefaultsFromDictionary:(id)fp8;
- (void)writeDefaultsToDictionary:(id)fp8;
- (void)dealloc;
- (void)stopAllActivity;
- (id)documentView;
- (id)currentDisplay;
- (void)_updateIfDisplayingMessage:(id)fp8;
- (void)_fetchDataForMessageAndUpdateDisplay:(id)fp8;
- (void)_messageMayHaveBecomeAvailable;
- (id)_messageTilingView;
- (void)fadeToEmpty;
- (void)_pushDocumentToCache;
- (void)_backgroundLoadFinished:(id)fp8;
- (void)_backgroundUrlificationFinished:(id)fp8 urlMatches:(id)fp12;
- (void)setMessage:(id)fp8 headerOrder:(id)fp12;
- (void)_setMessage:(id)fp8 headerOrder:(id)fp12;
- (void)_fetchContentsForMessage:(id)fp8 fromStore:(id)fp12 withViewingState:(id)fp16;
- (void)_startBackgroundLoad:(id)fp8;
- (id)message;
- (void)setMostRecentHeaderOrder:(id)fp8;
- (void)reloadCurrentMessage;
- (void)viewerPreferencesChanged:(id)fp8;
- (void)showJunkMailHelp:(id)fp8;
- (void)_removeCurrentBanner;
- (void)_bannerResized:(id)fp8;
- (void)_showBannerView:(id)fp8;
- (void)_showLoadImagesBanner;
- (void)_showCertificateBanner;
- (id)_fixBezelStyleOfHelpButtonInBannerView:(id)fp8;
- (void)_showJunkBanner;
- (BOOL)_showBannerIfMessageIsOutgoingMessageWaitingForParentApproval;
- (BOOL)_showBannerIfMessageIsPermissionRequestFromChild;
- (void)_updateBanner;
- (void)setShowBannerBorder:(BOOL)fp8;
- (void)setShowRevealMessageLink:(BOOL)fp8;
- (BOOL)showRevealMessageLink;
- (void)_addRecentAddress:(id)fp8;
- (void)markAsNotJunkMailClicked:(id)fp8;
- (void)_setJunkLevelToNotJunk;
- (void)approveChildRequest:(id)fp8;
- (void)rejectChildRequest:(id)fp8;
- (void)sendMessage:(id)fp8;
- (void)_messageFlagsDidChange:(id)fp8;
- (void)_updateDisplay;
- (void)_setCurrentDisplay:(id)fp8;
- (void)highlightSearchText:(id)fp8;
- (id)attachmentsView;
- (id)textView;
- (id)selectedText;
- (id)selectedWebArchive;
- (id)attachmentsInSelection;
- (id)webArchive;
- (void)clearCache;
- (id)viewingState;
- (id)viewingStateForMessage:(id)fp8;
- (void)cacheViewingState:(id)fp8 forMessage:(id)fp12;
- (void)displayString:(id)fp8;
- (void)initPrintInfo;
- (int)headerDetailLevel;
- (BOOL)showingAllHeaders;
- (void)setShowAllHeaders:(BOOL)fp8;
- (BOOL)remoteAttachmentsAreDownloaded;
- (void)makeStickyInfoFromViewingState:(id)fp8;
- (void)makeStickyShowDefaultHeaders;
- (void)keyDown:(id)fp8;
- (BOOL)pageDown;
- (BOOL)pageUp;
- (BOOL)currentlyViewingSource;
- (BOOL)_validateAction:(SEL)fp8 tag:(int)fp12;
- (id)findTarget;
- (BOOL)validateToolbarItem:(id)fp8 forSegment:(int)fp12;
- (BOOL)validateMenuItem:(id)fp8;
- (void)showAllHeaders:(id)fp8;
- (void)showFilteredHeaders:(id)fp8;
- (void)viewSource:(id)fp8;
- (void)toggleShowControlCharacters:(id)fp8;
- (void)toggleAttachmentsArea:(id)fp8;
- (void)showFirstAlternative:(id)fp8;
- (void)showPreviousAlternative:(id)fp8;
- (void)showNextAlternative:(id)fp8;
- (void)_messageWouldHaveLoadedRemoteURL:(id)fp8;
- (void)downloadRemoteContent:(id)fp8;
- (void)showCertificate:(id)fp8;
- (void)showBestAlternative:(id)fp8;
- (void)changeTextEncoding:(id)fp8;
- (void)makeFontBigger:(id)fp8;
- (void)makeFontSmaller:(id)fp8;
- (void)jumpToSelection:(id)fp8;
- (void)takeFindStringFromSelection:(id)fp8;
- (void)saveAttachments:(id)fp8;

@end

@interface MessageTextView : NSTextView
{
    unsigned int _deletingText:1;
    unsigned int _actuallyImportsGraphics:1;
    unsigned int _actuallyRichText:1;
    unsigned int _isTrackingMouse:1;
}

+ (void)initialize;
- (id)defaultFont;
- (id)initWithFrame:(struct _NSRect)fp8;
- (void)dealloc;
- (void)setDelegate:(id)fp8;
- (id)_attachmentForPoint:(struct _NSPoint)fp8;
- (id)attachmentForEvent:(id)fp8;
- (id)menuForEvent:(id)fp8;
- (void)setSelectedRange:(struct _NSRange)fp8 affinity:(int)fp16 stillSelecting:(BOOL)fp20;
- (void)selectText:(id)fp8;
- (void)keyDown:(id)fp8;
- (void)pasteWithCurrentStyle:(id)fp8;
- (id)typingAttributes;
- (void)adjustFontSizeBy:(int)fp8;
- (void)makeFontBigger:(id)fp8;
- (void)makeFontSmaller:(id)fp8;
- (id)hitTest:(struct _NSPoint)fp8;
- (BOOL)acceptsFirstResponder;
- (void)mouseDown:(id)fp8;
- (void)selectAll:(id)fp8;
- (void)originalSelectAll:(id)fp8;
- (void)doCommandBySelector:(SEL)fp8;
- (BOOL)shouldChangeTextInRange:(struct _NSRange)fp8 replacementString:(id)fp16;
- (void)didChangeText;
- (void)changeQuoteLevel:(id)fp8;
- (BOOL)validateMenuItem:(id)fp8;
- (void)setImportsGraphics:(BOOL)fp8;
- (BOOL)importsGraphics;
- (void)setRichText:(BOOL)fp8;
- (BOOL)isRichText;
- (BOOL)readSelectionFromPasteboard:(id)fp8 type:(id)fp12;
- (BOOL)_readSelectionFromPasteboard:(id)fp8 type:(id)fp12 useCurrentStyle:(BOOL)fp16;
- (id)dragImageForSelectionWithEvent:(id)fp8 origin:(struct _NSPoint *)fp12;
- (id)originalDragImageForSelectionWithEvent:(id)fp8 origin:(struct _NSPoint *)fp12;
- (void)copyWithGatekeeperApproval:(id)fp8;
- (void)copy:(id)fp8;
- (BOOL)writeSelectionToPasteboard:(id)fp8 type:(id)fp12;
- (BOOL)writeSelectionToPasteboard:(id)fp8 types:(id)fp12;
- (id)readablePasteboardTypes;
- (id)writablePasteboardTypes;
- (id)acceptableDragTypes;
- (unsigned int)dragOperationForDraggingInfo:(id)fp8 type:(id)fp12;
- (void)textView:(id)fp8 clickedOnCell:(id)fp12 event:(id)fp16 inRect:(struct _NSRect)fp20 atIndex:(unsigned int)fp36;
- (void)insertNewline:(id)fp8;
- (void)drawRect:(struct _NSRect)fp8;
- (BOOL)linkTrackMouseDown:(id)fp8;
- (struct _NSRect)_cellFrameForAttachment:(id)fp8 atCharIndex:(int)fp12;
- (void)layoutManager:(id)fp8 didCompleteLayoutForTextContainer:(id)fp12 atEnd:(BOOL)fp16;
- (void)resetCursorRects;
- (id)view:(id)fp8 stringForToolTip:(int)fp12 point:(struct _NSPoint)fp16 userData:(void *)fp24;
- (BOOL)moreThanOneAttachmentSelected;
- (id)selectedAttachments;
- (id)imageOfAttachmentsFromRange:(struct _NSRange)fp8 lowerLeft:(struct _NSPoint *)fp16;
- (void)openAttachment:(id)fp8;
- (void)openAttachmentWithApplication:(id)fp8;
- (void)chooseApplicationToOpenAttachment:(id)fp8;
- (void)saveAttachment:(id)fp8;
- (void)saveAttachmentToDownloadsDirectory:(id)fp8;
- (void)deleteAttachment:(id)fp8;
- (void)viewAttachmentInline:(id)fp8;
- (void)importInvitations:(id)fp8;
- (void)deleteDraggedAttachments:(id)fp8;
- (void)_attachmentFinishedDownloading:(id)fp8;
- (void)orderFrontFontPanel:(id)fp8;
- (id)searchString;
- (struct _NSRange)selectedSearchRange;
- (void)showSearchResultsRange:(struct _NSRange)fp8;

@end

@interface MessageTextContainer : NSTextContainer
{
    struct _NSSize imageSize;
    struct _NSSize linkSize;
}

- (id)initWithContainerSize:(struct _NSSize)fp8;
- (void)setImageSize:(struct _NSSize)fp8;
- (struct _NSSize)imageSize;
- (void)setLinkSize:(struct _NSSize)fp8;
- (struct _NSSize)linkSize;
- (BOOL)isSimpleRectangularTextContainer;
- (BOOL)containsPoint:(struct _NSPoint)fp8;
- (struct _NSRect)lineFragmentRectForProposedRect:(struct _NSRect)fp8 sweepDirection:(int)fp24 movementDirection:(int)fp28 remainingRect:(struct _NSRect *)fp32;

@end

@interface MessagePrinter : NSObject
{
    NSMutableArray *_messages;
    MessageContentController *_contentController;
    NSWindow *_window;
    NSPrintOperation *printOperation;
    NSPrintInfo *printInfo;
    unsigned int messageIndex;
    NSString *originalFilename;
    NSView *accessoryView;
    unsigned int scalingBehavior;
    NSWindow *onscreenWindow;
}

+ (unsigned int)scalingBehaviorFromDefaults;
+ (void)setScalingBehaviorInDefaults:(unsigned int)fp8;
- (id)init;
- (void)dealloc;
- (BOOL)loadNibFile;
- (void)toggleScalingBehavior:(id)fp8;
- (void)initPrintInfo;
- (void)setMessages:(id)fp8;
- (void)regularMessageIsReady:(id)fp8;
- (void)printNextMessage;
- (void)printMessages:(id)fp8 viewingState:(id)fp12 showDefaultHeaders:(BOOL)fp16 forWindow:(id)fp20;
- (void)printSheetDidClose;
- (void)printOperationDidRun:(id)fp8 success:(BOOL)fp12 contextInfo:(id)fp16;
- (void)cleanUp;
- (struct _NSRect)windowFrameForBehavior:(unsigned int)fp8 printInfo:(id)fp12;
- (struct _CGDirectDisplayID *)displayIDForWindow:(id)fp8;

@end

@interface MessagePrinterAccessoryView : NSView
{
    MessagePrinter *messagePrinter;
    NSMatrix *scalingBehaviorMatrix;
}

- (void)updateFromPrintInfo;
- (void)finalWritePrintInfo;

@end

@interface RankCell : NSCell
{
    float _rank;
}

- (id)rank;
- (void)setRank:(id)fp8;
- (void)setObjectValue:(id)fp8;
- (void)drawWithFrame:(struct _NSRect)fp8 inView:(id)fp24;

@end

@interface MessageEditor : NSObject
{
    NSPopUpButton *fromPopup;
    NSPopUpButton *signaturePopup;
    NSPopUpButton *priorityPopup;
    AddressTextField *_toField;
    AddressTextField *_ccField;
    NSTextField *_subjectField;
    AddressTextField *_bccField;
    AddressTextField *_replyToField;
    ComposeHeaderView *_composeHeaderView;
    OldCompletionController *completionController;
    NSButton *signButton;
    NSButton *encryptButton;
    NSWindow *_window;
    ComposeBackEnd *_backEnd;
    NSMutableArray *accessoryViewOwners;
    struct {
        unsigned int showAllHeaders:1;
        unsigned int hasRichText:1;
        unsigned int userSavedMessage:1;
        unsigned int userWantsToCloseWindow:1;
        unsigned int hasIncludedAttachmentsFromOriginal:1;
        unsigned int userKnowsSaveFailed:1;
        unsigned int chatShouldBeEnabled:1;
        unsigned int finalSpellCheckingInProgress:1;
        unsigned int canSignFromAnyAccount:1;
        unsigned int knowsCanSignFromAnyAccount:1;
        unsigned int registeredForNotifications:1;
    } _flags;
    NSToolbar *_toolbar;
    NSMutableDictionary *_toolbarItems;
    int _messageType;
    DraggingTextView *addressFieldEditor;
    NSPanel *_deliveryFallbackPanel;
    id _deliveryErrorLabel;
    id _deliveryFallbackErrorLabel;
    id _deliveryFallbackPopupButton;
    struct _NSPoint _originalCascadePoint;
    ActivityProgressPanel *_progressAlert;
    NSView *imageStatusView;
    NSTextField *imageFileSizeLabel;
    NSTextField *imageFileSizeTextField;
    NSPopUpButton *imageSizePopup;
    NSProgressIndicator *imageResizingProgressWheel;
    NSTextField *imageResizingProgressField;
    NSMutableArray *_imageResizers;
    unsigned int _textLengthForLastEstimatedMessageSize;
    unsigned int _signatureOverhead;
    unsigned int _encryptionOverhead;
    NSMutableArray *_unapprovedRecipients;
}

+ (id)allocWithZone:(struct _NSZone *)fp8;
+ (id)createEditorWithType:(int)fp8 settings:(id)fp12;
+ (id)existingEditorViewingMessage:(id)fp8;
+ (void)handleFailedDeliveryOfMessage:(id)fp8 store:(id)fp12 error:(id)fp16;
+ (void)restoreDraftMessage:(id)fp8 withSavedState:(id)fp12;
+ (void)saveDefaults;
+ (void)restoreFromDefaults;
+ (void)setNeedsAutosave;
+ (void)autosaveTimerFired;
+ (void)showEditorWithSavedState:(id)fp8;
+ (void)_emailAddresses:(id)fp8 approvedOrRejected:(BOOL)fp12;
+ (void)emailAddressesApproved:(id)fp8;
+ (void)emailsRejected:(id)fp8;
- (void)_setSendWindowsFriendlyAttachments:(BOOL)fp8;
- (void)show;
- (void)readDefaultsFromDictionary:(id)fp8;
- (void)_appendDefaultsToArray:(id)fp8;
- (void)writeDefaultsToDictionary:(id)fp8;
- (void)setHeaders:(id)fp8;
- (id)window;
- (void)appendAddresses:(id)fp8 toHeader:(id)fp12;
- (void)addBccHeader:(id)fp8;
- (void)addReplyToHeader:(id)fp8;
- (void)saveMessageToDrafts:(id)fp8;
- (void)makeRichText:(id)fp8;
- (void)makePlainText:(id)fp8;
- (void)changeTextEncoding:(id)fp8;
- (void)showPrintPanel:(id)fp8;
- (void)searchIndex:(id)fp8;
- (BOOL)validateAction:(SEL)fp8 tag:(int)fp12;
- (BOOL)validateMenuItem:(id)fp8;
- (void)_reallySend;
- (void)_sendMessageCheckRecipients:(BOOL)fp8 checkSpelling:(BOOL)fp12;
- (void)_send:(id)fp8;
- (void)noRecipientsSheetClosed:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)send:(id)fp8;
- (void)emptyMessageSheetClosed:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)malformedAddressSheetClosed:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)changeReplyMode:(id)fp8;
- (void)alwaysSendWindowsFriendlyAttachments:(id)fp8;
- (void)sendWindowsFriendlyAttachments:(id)fp8;
- (void)insertFile:(id)fp8;
- (void)showAddressPanel:(id)fp8;
- (void)appendMessagesWithGatekeeperApproval:(id)fp8;
- (void)appendMessages:(id)fp8;
- (void)chatWithRecipients:(id)fp8;
- (void)changeHeaderField:(id)fp8;
- (void)recipientsDidChange:(id)fp8;
- (void)nowWouldBeAGoodTimeToTerminate:(id)fp8;
- (id)windowWillReturnFieldEditor:(id)fp8 toObject:(id)fp12;
- (BOOL)windowShouldClose:(id)fp8;
- (void)windowDidResize:(id)fp8;
- (void)windowDidMove:(id)fp8;
- (void)windowDidBecomeKey:(id)fp8;
- (void)windowDidResignKey:(id)fp8;
- (void)changeFromHeader:(id)fp8;
- (void)undoSignatureChange:(id)fp8;
- (void)changeSignature:(id)fp8;
- (void)editSignatures:(id)fp8;
- (void)changeSpellCheckingBehavior:(id)fp8;
- (void)setMessagePriority:(id)fp8;
- (id)directoryForAttachment:(id)fp8;
- (void)textView:(id)fp8 doubleClickedOnCell:(id)fp12 inRect:(struct _NSRect)fp16 atIndex:(unsigned int)fp32;
- (void)textView:(id)fp8 clickedOnCell:(id)fp12 inRect:(struct _NSRect)fp16 atIndex:(unsigned int)fp32;
- (void)textView:(id)fp8 draggedCell:(id)fp12 inRect:(struct _NSRect)fp16 event:(id)fp32 atIndex:(unsigned int)fp36;
- (BOOL)cachedGatekeeperApprovalStatusForAttachment:(id)fp8;
- (void)cacheGatekeeperApprovalStatus:(BOOL)fp8 forAttachment:(id)fp12;
- (BOOL)textView:(id)fp8 shouldReadSelectionFromPasteboard:(id)fp12 type:(id)fp16 result:(char *)fp20;
- (unsigned int)_signatureOverhead;
- (unsigned int)_encryptionOverhead;
- (unsigned long long)_estimateMessageSize;
- (void)_updateAttachmentStatus;
- (unsigned char)_isAttachmentScalable:(id)fp8;
- (unsigned char)_attachmentsContainScalableImage:(id)fp8 scalables:(id)fp12;
- (void)_updateImageSizePopup;
- (void)mailAttachmentsAdded:(id)fp8;
- (void)_mailAttachmentsDeleted;
- (void)mailAttachmentsDeleted:(id)fp8;
- (void)enableCompletion:(BOOL)fp8 forTextField:(id)fp12;
- (id)backEnd;
- (void)setBackEnd:(id)fp8;
- (void)updateUIAfterAppleScriptModification:(id)fp8;
- (void)deliveryFallbackPanelSendLater:(id)fp8;
- (void)deliveryFallbackPanelEditMessage:(id)fp8;
- (void)deliveryFallbackPanelTryOtherAccount:(id)fp8;
- (void)presenceChanged:(id)fp8;
- (id)_frameSaveName;
- (void)_configureTextField:(id)fp8 isAddressField:(BOOL)fp12;
- (void)_setupAddressField:(id)fp8;
- (void)dealloc;
- (id)init;
- (void)subjectChanged;
- (void)addressFieldChanged;
- (BOOL)_sendButtonShouldBeEnabled;
- (void)_setupInlineSpellChecking;
- (void)composePrefsChanged;
- (id)initWithType:(int)fp8 settings:(id)fp12;
- (void)backEnd:(id)fp8 didBeginBackgroundLoadActivity:(id)fp12;
- (void)_registerForNotificationsIfNeeded;
- (void)backEnd:(id)fp8 didCompleteLoadForEditorSettings:(id)fp12;
- (void)backEnd:(id)fp8 didCompleteMessageContentLoadForEditorSettings:(id)fp12;
- (void)_progressAlertDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (BOOL)_prepareMessageToBeSaved:(id)fp8;
- (BOOL)_shouldSaveDraft;
- (void)saveMessage;
- (void)_clearFieldIfHidden:(id)fp8;
- (void)composeHeaderViewWillBeginCustomization:(id)fp8;
- (void)composeHeaderViewDidEndCustomization:(id)fp8;
- (void)mailAccountsDidChange;
- (void)updateFromAndSignatureControls;
- (void)updateSignatureControlOverridingExistingSignature:(BOOL)fp8;
- (void)updateSignButtonImages;
- (void)updateSignButtonTooltip;
- (void)updateEncryptButtonImages;
- (void)updateEncryptButtonTooltip;
- (BOOL)canSignFromAnyAccount;
- (void)updateSecurityControls;
- (void)updateIgnoredWords;
- (void)updateCcOrBccMyselfFieldWithSender:(id)fp8 oldSender:(id)fp12;
- (void)_setupField:(id)fp8 withAddressesForKey:(id)fp12 visibleSelector:(SEL)fp16;
- (void)updateHeaderFields;
- (void)configureButtonsAndPopUps;
- (void)backEndDidChange:(id)fp8;
- (void)_setMessageStatusOnOriginalMessage;
- (void)backEndDidAppendMessageToOutbox:(id)fp8 result:(int)fp12;
- (BOOL)backEnd:(id)fp8 shouldDeliverMessage:(id)fp12;
- (BOOL)backEnd:(id)fp8 shouldSaveMessage:(id)fp12;
- (void)_setUserSavedMessage:(BOOL)fp8;
- (void)backEndDidSaveMessage:(id)fp8 result:(int)fp12;
- (id)_missingCertificatesMessageForRecipients:(id)fp8 uponDelivery:(BOOL)fp12;
- (void)backEnd:(id)fp8 didCancelMessageDeliveryForMissingCertificatesForRecipients:(id)fp12;
- (void)backEnd:(id)fp8 didCancelMessageDeliveryForError:(id)fp12;
- (void)shouldDeliverMessageAlertWithoutEncryptionSheetDidDismiss:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)backEnd:(id)fp8 didCancelMessageDeliveryForEncryptionError:(id)fp12;
- (void)reportDeliveryFailure:(id)fp8;
- (void)chooseAlternateDeliveryAccountSheetClosed:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)deliveryFailureSheetDidClose:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)textFieldBeganOrEndedEditing:(id)fp8;
- (void)openPanelSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)saveState;
- (void)forceWindowClose;
- (void)closeConfirmSheetDidEnd:(id)fp8 returnCode:(int)fp12 forSave:(void *)fp16;
- (void)replyMessage:(id)fp8;
- (void)replyAllMessage:(id)fp8;
- (void)presencePreferenceChanged:(id)fp8;
- (void)updatePresenceButtonState;
- (void)updatePresenceButtonStateForAddresses:(id)fp8;
- (void)_recipientsWithoutKeysSheetClosed:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)securityControlChanged:(id)fp8;
- (BOOL)_imageStatusHidden;
- (void)_showImageStatusView;
- (void)_hideImageStatusView;
- (struct _NSSize)_imageSizeForTag:(int)fp8;
- (struct _NSSize)_selectedImageSize;
- (id)_maxImageSizeAsString;
- (void)_processNextImageResizer;
- (void)_ImageResizeDidFinish:(id)fp8;
- (BOOL)_isResizingImages;
- (id)_resizerForAttatchment:(id)fp8;
- (BOOL)_resizeAttachment:(id)fp8;
- (BOOL)_resizeImageAttachments:(id)fp8;
- (void)imageSizePopupChanged:(id)fp8;
- (void)_setUnapprovedRecipients:(id)fp8;
- (void)askApprovalSheetClosed:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)_finalSpellCheckCompleted:(id)fp8;
- (BOOL)loadEditorNib;
- (void)appendAttributedString:(id)fp8;
- (void)updateMainContentView;
- (Class)backEndClass;
- (id)mainContentView;
- (id)attachmentStatusNeighbourView;
- (id)attachments;
- (void)insertOriginalAttachments:(id)fp8;
- (void)removeAttachments:(id)fp8;
- (void)toggleRich:(id)fp8;
- (void)pasteAsQuotation:(id)fp8;
- (void)updateContentsToShowSignature:(id)fp8;
- (unsigned long long)textLengthEstimate;
- (BOOL)isRichText;
- (void)setRichText:(BOOL)fp8;
- (void)appendMessageArray:(id)fp8;
- (void)addFileWrappersForPaths:(id)fp8;
- (void)redisplayChangedAttachment:(id)fp8;
- (void)updateRichTextFlag;

@end

@interface ComposeBackEnd : NSObject
{
    id _delegate;
    NSArray *_originalMessages;
    NSMutableDictionary *_originalMessageHeaders;
    NSMutableDictionary *_originalMessageBodies;
    NSArray *_originalMessageStores;
    WebArchive *_originalMessageWebArchive;
    NSMutableDictionary *_cleanHeaders;
    NSMutableDictionary *_extraRecipients;
    NSMutableDictionary *_directoriesByAttachment;
    NSUndoManager *_undoManager;
    ActivityMonitor *_backgroundSaveActivity;
    MailboxUid *_lastDraftsMailboxUid;
    NSString *_lastMessageId;
    NSData *_lastMessageIdDigest;
    NSData *_messageIdDigestOfMessageBeingSaved;
    struct {
        unsigned int type:4;
        unsigned int sendFormat:2;
        unsigned int contentIsLink:1;
        unsigned int hadChangesBeforeSave:1;
        unsigned int hasChanges:1;
        unsigned int showAllHeaders:1;
        unsigned int isUndeliverable:1;
        unsigned int isDeliveringMessage:1;
        unsigned int isSavingMessage:1;
        unsigned int sendWindowsFriendlyAttachments:2;
        unsigned int contentsWasEditedByUser:1;
        unsigned int delegateRespondsToDidChange:1;
        unsigned int delegateRespondsToDidAppendMessage:1;
        unsigned int delegateRespondsToDidSaveMessage:1;
        unsigned int delegateRespondsToDidBeginLoad:1;
        unsigned int delegateRespondsToDidEndLoad:1;
        unsigned int delegateRespondsToShouldSaveMessage:1;
        unsigned int delegateRespondsToShouldDeliverMessage:1;
        unsigned int delegateRespondsToDidCancelMessageDeliveryForMissingCertificatesForRecipients:1;
        unsigned int delegateRespondsToDidCancelMessageDeliveryForEncryptionError:1;
        unsigned int delegateRespondsToDidCancelMessageDeliveryForError:1;
        unsigned int signIfPossible:1;
        unsigned int encryptIfPossible:1;
        unsigned int knowsCanSign:1;
        unsigned int canSign:1;
        unsigned int shouldDownloadRemoteAttachments:1;
        unsigned int overrideRemoteAttachmentsPreference:1;
        unsigned int preferredEncoding;
    } _flags;
    NSString *_contentForAddressBookUpdate;
    NSString *_vcardPathForAddressBookUpdate;
    BOOL didAbortReply;
}

- (void)dealloc;
- (id)init;
- (void)setDidAbortReply:(BOOL)fp8;
- (id)delegate;
- (void)setDelegate:(id)fp8;
- (BOOL)hasChanges;
- (void)setHasChanges:(BOOL)fp8;
- (id)undoManager;
- (void)setUndoManager:(id)fp8;
- (void)setType:(int)fp8;
- (int)type;
- (void)setShouldDownloadRemoteAttachments:(BOOL)fp8;
- (void)setIsUndeliverable:(BOOL)fp8;
- (BOOL)isUndeliverable;
- (BOOL)sendWindowsFriendlyAttachments;
- (void)setSendWindowsFriendlyAttachments:(BOOL)fp8;
- (id)originalMessage;
- (id)originalMessageHeaders;
- (id)originalMessageBody;
- (void)setOriginalMessage:(id)fp8;
- (void)setOriginalMessages:(id)fp8;
- (id)directoryForAttachment:(id)fp8;
- (id)message;
- (id)account;
- (id)deliveryAccount;
- (id)sender;
- (void)setSender:(id)fp8;
- (id)subject;
- (void)setSubject:(id)fp8;
- (id)messageID;
- (void)setShowAllHeaders:(BOOL)fp8;
- (void)setSendFormat:(int)fp8;
- (int)sendFormat;
- (void)setContentIsLink:(BOOL)fp8;
- (BOOL)contentIsLink;
- (BOOL)okToAddSignature;
- (id)signatureId;
- (id)signature;
- (void)setSignature:(id)fp8;
- (void)setMessagePriority:(int)fp8;
- (int)displayableMessagePriority;
- (void)addHeaders:(id)fp8;
- (id)addressListForHeader:(id)fp8;
- (void)setAddressList:(id)fp8 forHeader:(id)fp12;
- (void)insertAddress:(id)fp8 forHeader:(id)fp12 atIndex:(unsigned int)fp16;
- (void)removeAddressForHeader:(id)fp8 atIndex:(unsigned int)fp12;
- (BOOL)isAddressHeaderKey:(id)fp8;
- (BOOL)deliverMessage;
- (BOOL)isDeliveringMessage;
- (void)_synchronouslyAppendMessageToOutboxWithContents:(id)fp8;
- (void)_backgroundAppendEnded:(id)fp8;
- (void)_backgroundSaveEnded:(id)fp8;
- (BOOL)saveMessage;
- (BOOL)isSavingMessage;
- (void)removeLastDraft;
- (BOOL)isEditingMessage:(id)fp8;
- (void)setSignIfPossible:(BOOL)fp8;
- (void)setEncryptIfPossible:(BOOL)fp8;
- (id)allRecipients;
- (id)recipientsThatHaveNoKeyForEncryption;
- (unsigned long)preferredEncoding;
- (void)setPreferredEncoding:(unsigned long)fp8;
- (BOOL)canSign;
- (BOOL)canEncryptForAllRecipients;
- (void)_configureLastDraftInformationFromHeaders:(id)fp8;
- (void)_finishedLoadingEditorSettings:(id)fp8;
- (void)_synchronouslyLoadForEditorSettings:(id)fp8;
- (void)loadWithEditorSettings:(id)fp8;
- (BOOL)hasContents;
- (BOOL)containsRichText;
- (id)outgoingMessageUsingWriter:(id)fp8 contents:(id)fp12 headers:(id)fp16 isDraft:(BOOL)fp20;
- (void)loadContentsForMessage:(id)fp8 body:(id)fp12;
- (id)makeCopyOfContentsForDraft:(BOOL)fp8;

@end

@interface ComposeBackEnd (Internal)
- (void)_setupDefaultRecipientsFirstTime:(BOOL)fp8;
- (void)_synchronouslySaveMessageWithContents:(id)fp8;
- (id)_allRecipients;
- (void)saveRecipients;
- (id)replyAddressForMessage:(id)fp8;
@end

@interface AddressTextField : AutosizingTextField <NSCopying>
{
    BOOL _addressField;
    BOOL _allowsMultipleAddresses;
    NSMutableArray *trackingRectTags;
    AddressAttachment *expandedAtomAttachment;
    AddressAttachment *attachmentBeingDragged;
    int addressAtomType;
    NSUndoManager *undoManager;
    NSMutableArray *stringsWithNoRecords;
    NSMutableArray *stringsAwaitingRecords;
    NSMutableDictionary *recordsForStrings;
    NSMutableArray *addressRects;
    struct _NSRange draggedSourceAtomsRange;
    BOOL isDraggingFromSelf;
}

- (void)dealloc;
- (id)copyWithZone:(struct _NSZone *)fp8;
- (id)insertInScrollViewWithMaxLines:(unsigned int)fp8;
- (void)_scrollToEnd:(id)fp8;
- (void)sizeToFit;
- (void)appendAddressList:(id)fp8 operation:(unsigned int)fp12;
- (unsigned int)insertionPositionForMousePoint:(struct _NSPoint)fp8;
- (void)getAddressRectsForAtoms;
- (id)emailAddressesFromABRecordUIDs:(id)fp8;
- (id)emailAddressesFromFiles:(id)fp8;
- (void)setAddressField:(BOOL)fp8;
- (BOOL)addressField;
- (BOOL)allowsMultipleAddresses;
- (void)setAllowsMultipleAddresses:(BOOL)fp8;
- (int)addressAtomType;
- (void)setAddressAtomType:(int)fp8;
- (void)setExpandedAtomAttachment:(id)fp8;
- (unsigned int)draggingEntered:(id)fp8;
- (unsigned int)draggingUpdated:(id)fp8;
- (unsigned int)textView:(id)fp8 draggingEntered:(id)fp12;
- (unsigned int)textView:(id)fp8 draggingUpdated:(id)fp12;
- (void)draggingExited:(id)fp8;
- (BOOL)prepareForDragOperation:(id)fp8;
- (void)concludeDragOperation:(id)fp8;
- (void)textView:(id)fp8 clickedOnCell:(id)fp12 event:(id)fp16 inRect:(struct _NSRect)fp20 atIndex:(unsigned int)fp36;
- (void)selectTextBeforePosition:(int)fp8;
- (void)selectTextAfterPosition:(int)fp8;
- (void)textView:(id)fp8 doubleClickedOnCell:(id)fp12 inRect:(struct _NSRect)fp16 atIndex:(unsigned int)fp32;
- (void)expandGroupAddress:(id)fp8;
- (void)editAddress:(id)fp8;
- (void)removeAddress:(id)fp8;
- (BOOL)validateUserInterfaceItem:(id)fp8;
- (BOOL)_performOperation:(unsigned int)fp8 usingPasteboard:(id)fp12 sender:(id)fp16;
- (BOOL)performDragOperation:(id)fp8;
- (BOOL)textView:(id)fp8 shouldReadSelectionFromPasteboard:(id)fp12 type:(id)fp16 result:(char *)fp20;
- (void)textView:(id)fp8 draggedImage:(id)fp12 endedAt:(struct _NSPoint)fp16 operation:(unsigned int)fp24;
- (void)draggedImage:(id)fp8 endedAt:(struct _NSPoint)fp12 operation:(unsigned int)fp20;
- (void)setAttachmentBeingDragged:(id)fp8;
- (unsigned int)draggingSourceOperationMaskForLocal:(BOOL)fp8;
- (void)textView:(id)fp8 concludeDragOperation:(id)fp12;
- (void)undo:(id)fp8;
- (void)redo:(id)fp8;
- (id)undoManager;
- (void)setAttributedStringValue:(id)fp8;
- (void)textDidEndEditing:(id)fp8;
- (BOOL)textShouldEndEditing:(id)fp8;
- (void)setFrame:(struct _NSRect)fp8;
- (void)setFrameSize:(struct _NSSize)fp8;
- (void)atomicizeAllAddresses;
- (void)recklesslyAtomicizeAllAddresses;
- (void)domainForMatchingDidChange;
- (void)addressesNeedRedisplay:(id)fp8;
- (void)addressChanged:(id)fp8;
- (void)resetCursorRects;

@end

@interface NSTextFieldCell (ShouldntTheAppKitBeDoingThis)
- (void)selectWithFrame:(struct _NSRect)fp8 inView:(id)fp24 editor:(id)fp28 delegate:(id)fp32 start:(int)fp36 length:(int)fp40;
@end

@interface UnreadQueryProgressMonitor : NSObject <QueryProgressMonitor>
{
    unsigned int sequenceNumber;
    unsigned int librarySequenceNumber;
}

- (id)initWithSequenceNumber:(unsigned int)fp8 librarySequenceNumber:(unsigned int)fp12;
- (BOOL)shouldCancel;

@end

@interface MailboxesController : NSObject
{
    NSMutableArray *_accountsWithChildren;
    NSWindow *_newMailboxPanel;
    NSTextField *_newMailboxField;
    NSTextField *_newMailboxMessage;
    NSButton *_newMailboxOKButton;
    NSPopUpButton *_accountPopup;
    NSMenuItem *_newMenuItem;
    id _currentMailboxSelectionOwner;
    BOOL _currentTransferIsCopy;
    MailboxUid *_selectedParent;
    MailboxUid *_currentTransferMailbox;
    BOOL smartMailboxesNeedSaving;
    BOOL isSavingSyncResults;
    int currentFileVersion;
    id _menuEnabler;
    SEL _menuEnablerSelector;
    NSMutableSet *rootMailboxMenus;
}

+ (id)iconForMailboxUid:(id)fp8 smallSize:(BOOL)fp12;
+ (id)filteredMailUserInfoDictionary:(id)fp8;
+ (id)mergeOldMailUserInfoDictionary:(id)fp8 withSyncChanges:(id)fp12;
- (id)init;
- (void)dealloc;
- (void)awakeFromNib;
- (void)setMoveMenuItem:(id)fp8;
- (void)setMoveContextMenuItem:(id)fp8;
- (void)setCopyMenuItem:(id)fp8;
- (void)setCopyContextMenuItem:(id)fp8;
- (void)readDefaults;
- (void)saveDefaults;
- (id)accountsWithChildren;
- (void)_reloadAccountsWithChildren;
- (void)mailboxListingDidChange:(id)fp8;
- (void)setCurrentTransferMailbox:(id)fp8 deletedOriginals:(BOOL)fp12;
- (id)currentTransferMailbox;
- (BOOL)currentTransferDeletesOriginals;
- (id)mailboxSelectionOwner;
- (void)setMailboxSelectionOwnerFrom:(id)fp8;
- (void)resignMailboxSelectionOwnerFor:(id)fp8;
- (id)mailboxSelectionOwnerFromSender:(id)fp8;
- (BOOL)validateMenuItem:(id)fp8;
- (void)_synchronouslyCreateNewMailboxWithName:(id)fp8 parent:(id)fp12;
- (void)_configureNewMailboxPanelForAccount:(id)fp8;
- (void)newMailbox:(id)fp8;
- (void)newMailboxSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)newSmartMailbox:(id)fp8;
- (void)editSmartMailbox:(id)fp8;
- (void)newFolder:(id)fp8;
- (void)newGroup:(id)fp8;
- (void)accountPopupChanged:(id)fp8;
- (void)_synchronouslyDeleteMailboxes:(id)fp8;
- (void)deleteMailbox:(id)fp8;
- (void)_synchronouslySetName:(id)fp8 andParent:(id)fp12 forMailboxes:(id)fp16;
- (void)renameMailbox:(id)fp8;
- (void)userEditedMailboxName:(id)fp8;
- (void)exportMailbox:(id)fp8;
- (void)setSpecialMailbox:(id)fp8;
- (void)queueUnreadCountUpdate;
- (void)coalesceUnreadCountUpdate;
- (void)libraryMessagesAdded:(id)fp8;
- (void)libraryFlagsChanged:(id)fp8;
- (void)startUnreadCountUpdateWithSequenceNumbers:(id)fp8;
- (void)updateUnreadCountsForSequenceNumber:(id)fp8 librarySequenceNumber:(id)fp12;
- (void)controlTextDidChange:(id)fp8;
- (void)okClicked:(id)fp8;
- (void)cancelClicked:(id)fp8;
- (void)bringUpTransferMenu:(id)fp8;
- (void)_setRootMailboxMenu:(id)fp8;
- (void)menuNeedsUpdate:(id)fp8;
- (BOOL)menuHasKeyEquivalent:(id)fp8 forEvent:(id)fp12 target:(id *)fp16 action:(SEL *)fp20;
- (void)_removeAllItemsFromMenu:(id)fp8;
- (void)reallyTearDownDynamicMenus;
- (void)tearDownDynamicMenus:(id)fp8;
- (void)_addMailboxItemsToMenu:(id)fp8 startingFromMailbox:(id)fp12 includeSmartMailboxes:(BOOL)fp16;
- (void)_addMailboxItemsToMenu:(id)fp8 startingFromMailbox:(id)fp12;
- (void)setMenuEnabler:(id)fp8 selector:(SEL)fp12;
- (id)_menuItemForMailbox:(id)fp8;
- (void)_addItemsStartingWithMailbox:(id)fp8 toMenu:(id)fp12 withIndentationLevel:(int)fp16;
- (void)addMailboxItemsToMenu:(id)fp8 target:(id)fp12 action:(SEL)fp16 startingAtMailbox:(id)fp20 showUnreadCounts:(BOOL)fp24 includeSmartMailboxes:(BOOL)fp28;
- (void)addMailboxItemsToMenu:(id)fp8 target:(id)fp12 action:(SEL)fp16 startingAtMailbox:(id)fp20 showUnreadCounts:(BOOL)fp24;
- (void)addMailboxItemsToMenu:(id)fp8 target:(id)fp12 action:(SEL)fp16 includeSmartMailboxes:(BOOL)fp20;
- (void)addMailboxItemsToMenu:(id)fp8 target:(id)fp12 action:(SEL)fp16;
- (id)menuItemForMailbox:(id)fp8 target:(id)fp12 action:(SEL)fp16 showUnreadCounts:(BOOL)fp20;
- (BOOL)moveAccount:(id)fp8 toAfterAccount:(id)fp12;
- (BOOL)fileManager:(id)fp8 shouldProceedAfterError:(id)fp12;
- (BOOL)removeAccount:(id)fp8;
- (BOOL)moveMailboxes:(id)fp8 toParentMailbox:(id)fp12;
- (void)_synchronouslyCopyMailboxes:(id)fp8 toParent:(id)fp12 originalParent:(id)fp16;
- (BOOL)copyMailboxes:(id)fp8 toParentMailbox:(id)fp12;
- (BOOL)moveOrCopy:(id)fp8 smartMailboxes:(id)fp12 toIndex:(unsigned int)fp16;
- (void)addSmartMailbox:(id)fp8 select:(BOOL)fp12;
- (void)tentativelyAddSmartMailbox:(id)fp8;
- (void)smartMailboxWasEdited:(id)fp8;
- (void)addSmartMailboxFolder:(id)fp8;
- (id)smartMailboxes;
- (void)nowWouldBeAGoodTimeToTerminate:(id)fp8;
- (id)smartMailboxesPath;
- (void)saveSmartMailboxes:(id)fp8;
- (void)writeSmartMailboxesToDisk;
- (id)readSmartMailboxesFromDisk;
- (id)loadDefaultSmartMailboxes;
- (id)smartMailboxesDictionaryRepresentations;
- (id)smartMailboxesDictionaryRepresentationsFilterSyncData:(BOOL)fp8;
- (id)smartMailboxesFromDictionaryRepresentations:(id)fp8;
- (id)smartMailboxesFromDictionaryRepresentations:(id)fp8 andMergeOldUserInfoFromMailboxes:(BOOL)fp12;
- (void)syncSmartMailboxes;
- (BOOL)dataWillBeSyncedVersion:(id *)fp8 data:(id *)fp12;
- (BOOL)dataWasSyncedVersion:(id)fp8 newData:(id)fp12 acceptedChanges:(id)fp16;

@end

@interface MailboxesOutlineViewOwner : NSObject <MVMailboxSelectionOwner>
{
    id _delegate;
    ASExtendedOutlineView *_outlineView;
    NSArray *_savedSelection;
    NSFont *_normalFont;
    NSFont *_boldFont;
    NSMutableAttributedString *_cellValue;
    BOOL putSmartMailboxesAtTheBottom;
    float _idealOutlineViewWidth;
    float _minimumWidthNeededToUseMailboxes;
    float _minimizedOutlineViewWidth;
    NSArray *_specialMailboxUids;
    NSTimer *_progressIndicatorTimer;
    NSMutableDictionary *_mailboxesShowingProgress;
    struct __CFDictionary *_mailboxesByActivity;
    int minimumRowHeightForFont;
}

+ (void)deliveryFailureHasHappened:(id)fp8;
+ (void)userDidSaveAsDraft:(id)fp8;
+ (void)messagesWereAddedToMailboxes:(id)fp8;
+ (void)accountWasAdded:(id)fp8;
+ (void)allViewersAreClosed;
+ (BOOL)shouldShowOutbox;
+ (BOOL)shouldShowDrafts;
+ (void)setShouldShowOutbox:(BOOL)fp8;
+ (void)setShouldShowDrafts:(BOOL)fp8;
+ (void)tellAllInstancesToShowSpecialMailbox:(id)fp8;
+ (void)startWatchingForIncomingDrafts;
+ (void)stopWatchingForIncomingDrafts;
+ (BOOL)atLeastOneAccountStoresDraftsOnServer;
+ (BOOL)draftsHasMessageWithNoWindow;
+ (void)openDraftsMailboxes;
- (id)init;
- (void)dealloc;
- (void)_invalidateProgressIndicatorTimer;
- (void)setOutlineView:(id)fp8;
- (void)monitoredActivityStarted:(id)fp8;
- (void)monitoredActivityEnded:(id)fp8;
- (void)monitoredActivityAddedTarget:(id)fp8;
- (void)monitoredActivityRemovedTarget:(id)fp8;
- (void)stopProgressForMailboxPaths:(id)fp8;
- (id)mailboxesForActivity:(id)fp8;
- (void)setDelegate:(id)fp8;
- (float)idealWidthForSubtree:(id)fp8;
- (float)idealOutlineViewWidth;
- (float)minimizedOutlineViewWidth;
- (float)minimumWidthNeededToUseMailboxes;
- (id)selectedMailbox;
- (id)selectedMailboxes;
- (void)selectPathsToMailboxes:(id)fp8;
- (BOOL)canSelectMailbox:(id)fp8;
- (void)revealMailbox:(id)fp8;
- (BOOL)_revealPathToMailbox:(id)fp8 andSelect:(BOOL)fp12 extendingSelection:(BOOL)fp16;
- (BOOL)mailboxIsExpanded:(id)fp8;
- (unsigned int)numberOfSpecialMailboxes;
- (id)specialMailboxUids;
- (unsigned int)numberOfSmartMailboxes;
- (BOOL)outboxIsEmpty;
- (void)messageIsBeingDelivered:(id)fp8;
- (void)showOutboxForSlowDeliveryOfMessage:(id)fp8;
- (void)outboxContentsChanged:(id)fp8;
- (id)outlineView:(id)fp8 child:(int)fp12 ofItem:(id)fp16;
- (BOOL)outlineView:(id)fp8 isItemExpandable:(id)fp12;
- (int)outlineView:(id)fp8 numberOfChildrenOfItem:(id)fp12;
- (BOOL)outlineView:(id)fp8 shouldExpandItem:(id)fp12;
- (id)iconForMailboxUid:(id)fp8 smallSize:(BOOL)fp12;
- (id)mailboxSelectionWindow;
- (void)editNameOfMailbox:(id)fp8;
- (BOOL)outlineView:(id)fp8 shouldEditTableColumn:(id)fp12 item:(id)fp16;
- (BOOL)control:(id)fp8 textShouldEndEditing:(id)fp12;
- (void)controlTextDidEndEditing:(id)fp8;
- (BOOL)control:(id)fp8 textView:(id)fp12 doCommandBySelector:(SEL)fp16;
- (id)outlineView:(id)fp8 objectValueForTableColumn:(id)fp12 byItem:(id)fp16;
- (id)outlineView:(id)fp8 persistentObjectForItem:(id)fp12;
- (id)outlineView:(id)fp8 itemForPersistentObject:(id)fp12;
- (int)outlineView:(id)fp8 heightOfRow:(int)fp12;
- (void)redrawProgressIndicators:(id)fp8;
- (void)redrawRowsForMailboxesAtPaths:(id)fp8;
- (BOOL)_isMailboxOffline:(id)fp8 level:(int)fp12 alertState:(int *)fp16;
- (void)_configureCell:(id)fp8 forMailboxUid:(id)fp12 forTableColumn:(id)fp16;
- (void)outlineView:(id)fp8 willDisplayCell:(id)fp12 forTableColumn:(id)fp16 item:(id)fp20;
- (unsigned int)outlineView:(id)fp8 draggingSourceOperationMaskForLocal:(BOOL)fp12;
- (void)outlineView:(id)fp8 didEndDragWithImage:(id)fp12 atPoint:(struct _NSPoint)fp16 operation:(unsigned int)fp24;
- (BOOL)outlineView:(id)fp8 writeItems:(id)fp12 toPasteboard:(id)fp16;
- (id)outlineView:(id)fp8 dragImage:(id)fp12 forRowsWithIndexes:(id)fp16 tableColumns:(id)fp20 event:(id)fp24 offset:(struct _NSPoint *)fp28;
- (unsigned int)outlineView:(id)fp8 validateDrop:(id)fp12 proposedItem:(id)fp16 proposedChildIndex:(int)fp20;
- (BOOL)outlineView:(id)fp8 acceptDrop:(id)fp12 item:(id)fp16 childIndex:(int)fp20;
- (void)outlineViewSelectionDidChange:(id)fp8;
- (void)outlineViewItemDidExpand:(id)fp8;
- (void)outlineViewItemDidCollapse:(id)fp8;
- (void)selectAllInOutlineView:(id)fp8;
- (void)setFirstResponderAfterMouseDownOnOutlineView:(id)fp8;
- (int)totalUnreadCountForItem:(id)fp8;
- (BOOL)outlineView:(id)fp8 handleDoubleClickEvent:(id)fp12 forItem:(id)fp16 inRow:(int)fp20;
- (BOOL)outlineView:(id)fp8 shouldTrackMouseInCell:(id)fp12 forTableColumn:(id)fp16 item:(id)fp20;
- (void)showOfflineStatus:(id)fp8;
- (void)offlineAlertSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)unreadCountChanged:(id)fp8;
- (void)startShowingOutbox;
- (void)startShowingDrafts;
- (BOOL)outboxContainsMessageWhoseAccountIsOffline;
- (void)openDraftsMailboxes;
- (void)_reloadChildrenOfMailboxUid:(id)fp8;
- (void)mailboxListingDidChange:(id)fp8;
- (void)accountOfflineStatusDidChange:(id)fp8;
- (void)accountsChanged:(id)fp8;
- (void)viewerPreferencesChanged:(id)fp8;
- (BOOL)outlineView:(id)fp8 shouldCollapseAutoExpandedItemsForDeposited:(BOOL)fp12;
- (void)readDefaultsFromDictionary:(id)fp8;
- (void)writeDefaultsToDictionary:(id)fp8;
- (id)outlineView:(id)fp8 toolTipForCell:(id)fp12 rect:(struct _NSRect *)fp16 tableColumn:(id)fp20 item:(id)fp24 mouseLocation:(struct _NSPoint)fp28;

@end

@interface EditingTableColumn : NSTableColumn
{
    int rowBeingEdited;
}

- (void)awakeFromNib;
- (void)beginEditingRow:(int)fp8;
- (void)endEditing;
- (int)rowBeingEdited;
- (id)dataCellForRow:(int)fp8;

@end

@interface MailboxesScrollView : NSScrollView
{
}

- (void)tile;

@end

@interface FontsAndColorsPreferences : NSPreferencesModule
{
    NSPopUpButton *mailboxListFontPopup;
    NSComboBox *mailboxListFontSizePopup;
    NSPopUpButton *messageListFontPopup;
    NSComboBox *messageListFontSizePopup;
    NSPopUpButton *messageFontPopup;
    NSComboBox *messageFontSizePopup;
    NSPopUpButton *fixedPitchFontPopup;
    NSComboBox *fixedPitchFontSizePopup;
    NSButton *fixedPitchSwitch;
    NSPopUpButton *colorPopupOne;
    NSPopUpButton *colorPopupTwo;
    NSPopUpButton *colorPopupThree;
    NSPopUpButton *lastColorPopupSelected;
    NSButton *colorQuotesButton;
    NSTextView *exampleTextView;
    NSArray *colorList;
    BOOL colorizeIncomingMail;
}

- (void)initializeFromDefaults;
- (void)_setFontMenuForPopup:(id)fp8 fixedPitchOnly:(BOOL)fp12;
- (BOOL)isResizable;
- (id)titleForIdentifier:(id)fp8;
- (id)windowTitle;
- (void)awakeFromNib;
- (void)useFixedPitchFontClicked:(id)fp8;
- (void)_setOtherColor:(id)fp8 forPopup:(id)fp12;
- (void)_setColor:(id)fp8 forPopup:(id)fp12;
- (void)_updateExampleColors;
- (void)_updateColorList;
- (void)colorQuotesButtonClicked:(id)fp8;
- (void)colorPopupChanged:(id)fp8;
- (void)colorPicked:(id)fp8;
- (BOOL)_setTitle:(id)fp8 forPopup:(id)fp12;
- (void)_setTitle:(id)fp8 forComboBox:(id)fp12;
- (void)mailboxListFontChanged:(id)fp8;
- (void)mailboxListFontSizeChanged:(id)fp8;
- (void)messageListFontChanged:(id)fp8;
- (void)messageListFontSizeChanged:(id)fp8;
- (void)messageFontChanged:(id)fp8;
- (void)setMessageFont:(id)fp8 size:(float)fp12;
- (void)setFixedPitchFont:(id)fp8 size:(float)fp12;
- (void)fixedPitchFontChanged:(id)fp8;
- (void)fontPopupChanged:(id)fp8;

@end

@interface MailApp (AppleScriptFontsAndColorsPreferences)
- (BOOL)colorQuotedText;
- (void)setColorQuotedText:(BOOL)fp8;
- (id)mailboxListFont;
- (void)setMailboxListFont:(id)fp8;
- (float)mailboxListFontSize;
- (void)setMailboxListFontSize:(float)fp8;
- (id)messageListFont;
- (void)setMessageListFont:(id)fp8;
- (float)messageListFontSize;
- (void)setMessageListFontSize:(float)fp8;
- (id)messageFont;
- (void)setMessageFont:(id)fp8;
- (float)messageFontSize;
- (void)setMessageFontSize:(float)fp8;
- (BOOL)useFixedWidthFont;
- (void)setUseFixedWidthFont:(BOOL)fp8;
- (id)fixedWidthFont;
- (void)setFixedWidthFont:(id)fp8;
- (float)fixedWidthFontSize;
- (void)setFixedWidthFontSize:(float)fp8;
- (void)setQuotingColor:(int)fp8 forLevel:(int)fp12;
- (int)quotingColorForLevel:(int)fp8;
- (int)quotingColorValue:(id)fp8;
- (int)levelOneQuotingColor;
- (void)setLevelOneQuotingColor:(int)fp8;
- (int)levelTwoQuotingColor;
- (void)setLevelTwoQuotingColor:(int)fp8;
- (int)levelThreeQuotingColor;
- (void)setLevelThreeQuotingColor:(int)fp8;
@end

@interface ComposingPreferences : NSPreferencesModule
{
    NSPopUpButton *defaultFormatButton;
    NSButton *alwaysCCMyselfSwitch;
    NSPopUpButton *ccOrBccButton;
    NSButton *replyUsingSameFormatSwitch;
    NSButton *expandAliasesSwitch;
    NSButton *useQuoteBarsSwitch;
    NSPopUpButton *spellCheckingPopUpButton;
    NSButton *replyQuotingSwitch;
    NSMatrix *quotingBehaviorMatrix;
    NSTextField *quotingBehaviorLabel;
    NSButton *matchDomainsSwitch;
    NSTextField *matchingDomainField;
    NSPopUpButton *sendingAccountButton;
    NSButton *useAddressCompletionSwitch;
    NSButton *editServerListButton;
    NSPanel *ldapServerPanel;
    NSView *placeHolderView;
    ABLDAP_ConfigController *serverListController;
    BOOL endEditingSimply;
}

- (BOOL)isResizable;
- (id)titleForIdentifier:(id)fp8;
- (id)windowTitle;
- (void)_postComposePreferencesChanged;
- (void)_sizeToFitWithinSuperview:(id)fp8;
- (void)initializeFromDefaults;
- (void)replyUsingSameFormatClicked:(id)fp8;
- (void)useQuoteBarsClicked:(id)fp8;
- (void)replyQuotingBehaviorChanged:(id)fp8;
- (void)quotingBehaviorChanged:(id)fp8;
- (void)spellCheckingBehaviorChanged:(id)fp8;
- (void)alwaysCCMyselfClicked:(id)fp8;
- (void)expandAliasesClicked:(id)fp8;
- (void)defaultMessageFormatChanged:(id)fp8;
- (void)setMessageFormat:(int)fp8;
- (void)useAddressCompletionClicked:(id)fp8;
- (void)_ldapServerListChanged;
- (void)editServerListClicked:(id)fp8;
- (void)matchDomainsClicked:(id)fp8;
- (void)controlTextDidEndEditing:(id)fp8;
- (void)okClicked:(id)fp8;
- (void)sendingAccountClicked:(id)fp8;

@end

@interface MailApp (ApplescriptComposingPreferences)
- (int)defaultMessageFormat;
- (void)setDefaultMessageFormat:(int)fp8;
- (BOOL)autosaveComposeWindows;
- (void)setAutosaveComposeWindows:(BOOL)fp8;
- (int)spellCheckingBehavior;
- (void)setSpellCheckingBehavior:(int)fp8;
- (BOOL)expandGroupAddresses;
- (void)setExpandGroupAddresses:(BOOL)fp8;
- (BOOL)useAddressCompletion;
- (void)setUseAddressCompletion:(BOOL)fp8;
- (id)ldapServerNamed:(id)fp8;
- (id)ldapServers;
- (void)insertInLdapServers:(id)fp8 atIndex:(unsigned int)fp12;
- (void)insertInLdapServers:(id)fp8;
- (void)removeFromLdapServersAtIndex:(unsigned int)fp8;
- (BOOL)replyInSameFormat;
- (void)setReplyInSameFormat:(BOOL)fp8;
- (BOOL)alwaysCCMyself;
- (void)setAlwaysCCMyself:(BOOL)fp8;
- (BOOL)alwaysBCCMyself;
- (void)setAlwaysBCCMyself:(BOOL)fp8;
- (BOOL)includeOriginalMessage;
- (void)setIncludeOriginalMessage:(BOOL)fp8;
- (BOOL)includeAllOfOriginalMessage;
- (void)setIncludeAllOfOriginalMessage:(BOOL)fp8;
- (BOOL)shouldCheckIntranetDomains;
- (BOOL)signOutgoingMessages;
- (void)setSignOutgoingMessages:(BOOL)fp8;
- (BOOL)encryptOutgoingMessages;
- (void)setEncryptOutgoingMessages:(BOOL)fp8;
- (BOOL)inlineSpellCheckingEnabled;
- (void)setInlineSpellCheckingEnabled:(BOOL)fp8;
- (id)intranetDomains;
- (void)setShouldCheckIntranetDomains:(BOOL)fp8 withString:(id)fp12;
@end

@interface ViewerPreferences : NSPreferencesModule
{
    NSButton *_highlightThreadCheckbox;
    NSColorWell *_threadHighlightColorWell;
    NSButton *loadURLsSwitch;
    NSButton *showPresenceSwitch;
    NSButton *showUnreadMessagesInBoldSwitch;
    NSButton *useSmartAddressesSwitch;
    NSPopUpButton *headerDetailPopup;
    NSTableView *customHeaderTable;
    NSButton *addHeaderButton;
    NSButton *removeHeaderButton;
    NSPanel *customHeaderPanel;
    NSMutableArray *filteredHeaders;
    int nextRowToSelectAfterEditing;
    BOOL isEditingHeader;
}

+ (void)postViewingPreferencesChanged;
+ (void)postPresencePreferenceChanged;
- (void)awakeFromNib;
- (void)dealloc;
- (BOOL)isResizable;
- (id)titleForIdentifier:(id)fp8;
- (id)windowTitle;
- (void)_initializeHeaderDetailLevelPopup;
- (void)_updateCustomHeaderUI;
- (void)initializeFromDefaults;
- (void)loadURLsClicked:(id)fp8;
- (void)showPresenceClicked:(id)fp8;
- (void)useSmartAddressesClicked:(id)fp8;
- (void)editCustomHeadersClicked;
- (void)_customHeaderSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)_headerTableBeganEditing:(id)fp8;
- (void)_headerTableEndedEditing:(id)fp8;
- (void)_removeInvalidHeaders;
- (void)_endEditingHeader;
- (void)okClicked:(id)fp8;
- (void)cancelClicked:(id)fp8;
- (void)removeHeaderClicked:(id)fp8;
- (void)addHeaderClicked:(id)fp8;
- (int)numberOfRowsInTableView:(id)fp8;
- (id)tableView:(id)fp8 objectValueForTableColumn:(id)fp12 row:(int)fp16;
- (void)tableView:(id)fp8 setObjectValue:(id)fp12 forTableColumn:(id)fp16 row:(int)fp20;
- (void)headerDetailLevelChanged:(id)fp8;
- (void)highlightThreadClicked:(id)fp8;
- (void)threadHighlightColorChanged:(id)fp8;
- (void)showUnreadMessagesInBoldChanged:(id)fp8;

@end

@interface MailApp (ApplescriptViewerPreferences)
- (BOOL)downloadHTMLAttachments;
- (void)setDownloadHTMLAttachments:(BOOL)fp8;
- (int)headerDetail;
- (void)setHeaderDetail:(int)fp8;
- (BOOL)shouldShowPresence;
- (void)setShouldShowPresence:(BOOL)fp8;
- (BOOL)shouldHighlightThreads;
- (void)setShouldHighlightThreads:(BOOL)fp8;
- (BOOL)shouldShowMailboxesAtLeft;
- (void)setShouldShowUnreadMessagesInBold:(BOOL)fp8;
- (BOOL)shouldShowUnreadMessagesInBold;
@end

@interface AccountDisplayCell : NSTextFieldCell
{
    AccountPreferences *_accountPreferences;
    NSTextFieldCell *_descriptionTextCell;
    NSTextFieldCell *_activeTextCell;
    NSImageCell *_imageCell;
    MailAccount *_account;
}

- (id)initWithAccountPreferences:(id)fp8;
- (id)copyWithZone:(struct _NSZone *)fp8;
- (void)dealloc;
- (void)setAccountPreferences:(id)fp8;
- (void)setMailAccount:(id)fp8;
- (BOOL)trackMouse:(id)fp8 inRect:(struct _NSRect)fp12 ofView:(id)fp28 untilMouseUp:(BOOL)fp32;
- (void)drawInteriorWithFrame:(struct _NSRect)fp8 inView:(id)fp24;

@end

@interface AccountPreferences : NSPreferencesModule <SyncableDataInterestedParty>
{
    NSMutableArray *_accounts;
    AccountDetails *_accountDetails;
    NSTabView *detailTabView;
    NSTableView *accountsTable;
    NSButton *createAccountButton;
    NSButton *removeAccountButton;
    NSPopUpButton *accountTypePopup;
    NSTextField *accountTypeString;
    NSTextField *accountName;
    NSTextField *fullNameField;
    NSTextField *emailAddressField;
    NSTextField *username;
    NSTextField *hostname;
    NSTextField *password;
    NSPopUpButton *smtpAccountPopup;
    NSButton *deliveryOptionsButton;
    NSButton *removeDeliveryAccountButton;
    NSTableView *deliveryAccountsTable;
    NSPanel *editDeliveryAccountPanel;
    NSView *outlookWebAccessView;
    NSTextField *outlookWebAccessServerName;
    NSButton *editAliasesButton;
    MailAccount *_accountBeingEdited;
    MailAccount *_accountBeingValidated;
    BOOL _accountBeingEditedWasEnabledWhenEditingStarted;
    BOOL _creatingNewAccount;
    int _indexOfNewAccount;
    struct {
        unsigned int userWantsToQuit:1;
        unsigned int userWantsToClosePrefsPanel:1;
        unsigned int userWantsToChangeSelection:1;
        unsigned int userWantsToCreateNewAccount:1;
        unsigned int userWantsToOpenNewAccountAssistant:1;
    } _flags;
    NSIndexSet *_selectedRows;
    NSString *_selectedToolbarIdentifier;
    BOOL _ignoreTableViewSelectionCallbacks;
    BOOL _registeredForNotifications;
    BOOL _lastPopupSelectionWasITools;
    NSMutableDictionary *_userEnteredInfo;
    NSTextView *accountSupportURLField;
}

+ (void)addAccountType:(id)fp8 class:(Class)fp12;
+ (void)addISPAccountTypes:(id)fp8;
+ (void)initialize;
+ (void)configureAccountTypePopUp:(id)fp8;
+ (void)selectAccoutType:(Class)fp8 inTypePopup:(id)fp12;
+ (Class)accountClassOfSelectedItemInAccountTypePopup:(id)fp8;
+ (id)ispAccountInfoOfSelectedItemInAccountTypePopup:(id)fp8;
- (id)titleForIdentifier:(id)fp8;
- (id)windowTitle;
- (void)dealloc;
- (void)awakeFromNib;
- (void)accountsDidChange:(id)fp8;
- (void)initializeFromDefaults;
- (void)nowWouldBeAGoodTimeToTerminate:(id)fp8;
- (void)moduleWasInstalled;
- (BOOL)moduleCanBeRemoved;
- (BOOL)preferencesWindowShouldClose;
- (void)_saveAccountInfo;
- (void)toggleAccountEnabled:(id)fp8;
- (void)toggleIncludeWhenCheckingForNewMail:(id)fp8;
- (BOOL)validateMenuItem:(id)fp8;
- (void)createNewAccount:(id)fp8;
- (void)_removeAccountBeingCreated;
- (void)editAccount:(id)fp8;
- (void)editMailAccount:(id)fp8;
- (void)removeAccountSheetDidEnd:(id)fp8 returnCode:(int)fp12 account:(id)fp16;
- (void)removeAccount:(id)fp8;
- (BOOL)isAccountInformationDirty;
- (void)_handleRequestToSwitchAwayFromSelectedAccountWithResponse:(BOOL)fp8;
- (BOOL)saveAccountSheetDidEnd:(id)fp8 returnCode:(int)fp12 context:(void *)fp16;
- (BOOL)allowSwitchingAwayFromSelectedAccount;
- (void)setUIElementsEnabled:(BOOL)fp8;
- (void)_clearAccountUI;
- (void)_reloadDeliveryAccountPopup:(id)fp8;
- (id)accountTypeNameForAccount:(id)fp8;
- (void)_setupUIForAccountBeingEdited;
- (void)_runAccountDetailPanelForAccount:(id)fp8;
- (void)saveAccountBeingEdited;
- (void)tabView:(id)fp8 didSelectTabViewItem:(id)fp12;
- (void)_setupAccountFromValuesInUI:(id)fp8 forValidation:(BOOL)fp12;
- (void)_updateAccountTypePopup;
- (BOOL)newSettingsAreValid;
- (void)accountTypePopupWillPopup:(id)fp8;
- (void)accountTypeChanged:(id)fp8;
- (id)_accountsCurrentlyUsingDeliveryAccount:(id)fp8;
- (void)changeDeliveryOptions:(id)fp8;
- (void)addDeliveryAccount:(id)fp8;
- (void)editAliases:(id)fp8;
- (void)smtpSettings:(id)fp8 sheetDidEndWithResponse:(int)fp12;
- (void)editDeliveryAccountList:(id)fp8;
- (void)sheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)removeDeliveryAccount:(id)fp8;
- (void)doneEditingDeliveryAccountList:(id)fp8;
- (int)numberOfRowsInTableView:(id)fp8;
- (void)tableView:(id)fp8 willDisplayCell:(id)fp12 forTableColumn:(id)fp16 row:(int)fp20;
- (id)tableView:(id)fp8 toolTipForCell:(id)fp12 rect:(struct _NSRect *)fp16 tableColumn:(id)fp20 row:(int)fp24 mouseLocation:(struct _NSPoint)fp28;
- (id)tableView:(id)fp8 objectValueForTableColumn:(id)fp12 row:(int)fp16;
- (BOOL)selectionShouldChangeInTableView:(id)fp8;
- (void)tableViewSelectionDidChange:(id)fp8;
- (BOOL)tableView:(id)fp8 writeRows:(id)fp12 toPasteboard:(id)fp16;
- (unsigned int)tableView:(id)fp8 validateDrop:(id)fp12 proposedRow:(int)fp16 proposedDropOperation:(int)fp20;
- (BOOL)tableView:(id)fp8 acceptDrop:(id)fp12 row:(int)fp16 dropOperation:(int)fp20;
- (void)controlTextDidChange:(id)fp8;
- (BOOL)dataWillBeSynced;
- (void)dataWasSynced;

@end

@interface MailApp (ApplescriptAccountPreferences)
- (void)_insertInAccounts:(id)fp8 atIndex:(unsigned int)fp12;
- (void)insertInAccounts:(id)fp8 atIndex:(unsigned int)fp12;
- (void)insertInAccounts:(id)fp8;
- (void)insertInIToolsAccounts:(id)fp8 atIndex:(unsigned int)fp12;
- (void)insertInIToolsAccounts:(id)fp8;
- (void)insertInImapAccounts:(id)fp8 atIndex:(unsigned int)fp12;
- (void)insertInImapAccounts:(id)fp8;
- (void)insertInPopAccounts:(id)fp8 atIndex:(unsigned int)fp12;
- (void)insertInPopAccounts:(id)fp8;
- (void)removeFromAccountsAtIndex:(unsigned int)fp8;
- (id)deliveryAccounts;
@end

@interface IMAPAccountDetails : AccountDetails
{
    NSButton *_compactWhenClosing;
    NSPopUpButton *_messageCaching;
    NSTextField *_serverPathPrefix;
    NSButton *_overaggressiveCaching;
    BOOL warnedAboutCachingAndIndexing;
    NSButton *_keepDraftsOnServer;
    NSButton *_keepSentMessagesOnServer;
    NSButton *_keepTrashOnServer;
    NSButton *_keepJunkOnServer;
}

- (Class)accountClass;
- (void)setupUIFromValuesInAccount:(id)fp8;
- (void)setupAccountFromValuesInUI:(id)fp8 forValidation:(BOOL)fp12;
- (void)setUIElementsEnabled:(BOOL)fp8;
- (BOOL)isAccountInformationDirty:(id)fp8;
- (void)didDisplayTabViewItem:(id)fp8;
- (void)_confirmCacheChangeSheetEnded:(id)fp8 alertReturn:(int)fp12 context:(void *)fp16;
- (void)cachePolicyChanged:(id)fp8;

@end

@interface AccountDetails : NSObject
{
    NSView *_detailView;
    NSButton *_enableAccountCheckbox;
    NSTextField *_directory;
    NSButton *_chooseDirectoryButton;
    NSTextField *_portNumberField;
    NSButton *_autoFetch;
    NSButton *_sslSwitch;
    NSPopUpButton *_authenticationPopup;
    NSTextField *_domainLabel;
    NSTextField *_domainField;
    SpecialMailboxes *_specialMailboxes;
    MailAccount *_account;
    AuthScheme *_authScheme;
}

+ (id)accountDetailsForAccountClass:(Class)fp8;
+ (id)accountDetailsNibName;
- (id)init;
- (void)dealloc;
- (Class)accountClass;
- (void)setupAccountFromValuesInUI:(id)fp8 forValidation:(BOOL)fp12;
- (void)_updateDomainUI;
- (void)setupUIFromValuesInAccount:(id)fp8;
- (void)setUIElementsEnabled:(BOOL)fp8;
- (id)detailView;
- (void)setupAccountFromValuesInSpecialMailboxesUI:(id)fp8;
- (BOOL)isAccountInformationDirty:(id)fp8;
- (id)setupSpecialMailboxesUIFromValuesInAccount:(id)fp8;
- (void)didDisplayTabViewItem:(id)fp8;
- (void)openAccountPathDialog:(id)fp8;
- (void)accountPathDialogDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (id)accountPath;
- (void)setAccountPath:(id)fp8;
- (BOOL)userWantsAccountActive;
- (void)sslChanged:(id)fp8;
- (void)authenticationChanged:(id)fp8;
- (void)_specialMailboxesDidChange:(id)fp8;

@end

@interface POPAccountDetails : AccountDetails
{
    NSButton *_deleteMessagesOnServer;
    NSTextField *_bigMessageWarningSize;
    NSButton *_removeSeenMessagesButton;
    NSPopUpButton *_removeIntervalPopup;
    ActivityMonitor *_deleteMessagesMonitor;
    BOOL _deleteObserverActive;
}

- (id)init;
- (Class)accountClass;
- (void)setupUIFromValuesInAccount:(id)fp8;
- (void)setUIElementsEnabled:(BOOL)fp8;
- (int)_popDeletionPolicyFromUI;
- (void)setupAccountFromValuesInUI:(id)fp8 forValidation:(BOOL)fp12;
- (BOOL)isAccountInformationDirty:(id)fp8;
- (void)_confirmDeleteSheetDidEnd:(id)fp8 returnValue:(int)fp12 sender:(id)fp16;
- (void)warnIfDeleteMessages:(id)fp8;
- (void)deleteSeenMessagesNow:(id)fp8;
- (void)deleteSeenMessagesSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)removeMessagesButtonClicked:(id)fp8;
- (void)_deleteServerMessagesCompleted:(id)fp8;
- (void)_deleteServerMessagesStarted:(id)fp8;

@end

@interface SignatureBundle : MVMailBundle <SyncableDataOwner>
{
    NSMutableDictionary *_signatures;
    NSMutableArray *accounts;
    BOOL _isDirty;
    BOOL _isSavingSyncResults;
    NSMutableDictionary *_lastDefaultSignatures;
    int fileVersionNumber;
}

+ (void)initialize;
+ (id)allSignaturesAccount;
+ (id)_reallyOldSignaturesPath;
+ (id)_oldSignaturesPath;
+ (id)signaturesFolderPath;
+ (id)signaturesPlistPath;
- (id)init;
- (void)dealloc;
- (void)loadLastDefaultSignatures;
- (id)signatureAccounts;
- (BOOL)updateAccountList;
- (id)loadFromDictionary:(id)fp8;
- (BOOL)deleteSignaturesNotPresentInNewSignatures:(id)fp8;
- (id)signatures;
- (id)fixAccountIdsInPlist:(id)fp8;
- (unsigned int)numberOfSignatures;
- (id)signaturesForAccount:(id)fp8;
- (id)signatureAtIndex:(int)fp8 forAccount:(id)fp12;
- (id)signatureAtIndex:(int)fp8;
- (void)removeSignatureAtIndex:(int)fp8;
- (void)removeSignature:(id)fp8;
- (void)removeSignatureAtIndex:(int)fp8 forAccount:(id)fp12;
- (void)insertSignature:(id)fp8 atIndex:(int)fp12 forAccount:(id)fp16;
- (void)insertSignature:(id)fp8 atIndex:(int)fp12;
- (void)addSignature:(id)fp8;
- (void)signatureNameChanged:(id)fp8;
- (void)saveChangesToDisk;
- (id)dictionaryRepresentationIncludingSyncInformation:(BOOL)fp8;
- (void)setDefaultSignatureId:(id)fp8 forAccountId:(id)fp12;
- (void)setDefaultSignature:(id)fp8 forAccount:(id)fp12;
- (id)defaultSignatureForAccount:(id)fp8;
- (int)signatureSelectionMethodForAccount:(id)fp8;
- (void)setSignatureSelectionMethod:(int)fp8 forAccount:(id)fp12;
- (id)activeSignatureWithName:(id)fp8;
- (id)activeSignatureWithId:(id)fp8;
- (BOOL)showComposeAccessoryView:(char *)fp8;
- (BOOL)showComposeAccessoryView;
- (void)setShowsComposeAccessoryView:(BOOL)fp8;
- (void)unsetShowsComposeAccessoryView;
- (BOOL)placeSignatureAboveQuotedText;
- (void)setPlaceSignatureAboveQuotedText:(BOOL)fp8;
- (void)configurePopUpButton:(id)fp8 forAccount:(id)fp12 defaultSignature:(id)fp16 selectionMethod:(int)fp20 showAccount:(BOOL)fp24;
- (void)syncSignatures;
- (BOOL)dataWillBeSyncedVersion:(id *)fp8 data:(id *)fp12;
- (BOOL)dataWasSyncedVersion:(id)fp8 newData:(id)fp12 acceptedChanges:(id)fp16;

@end

@interface AllSignaturesAccount : NSObject
{
}

- (id)uniqueId;
- (id)displayName;

@end

@interface SignaturePreferences : NSPreferencesModule
{
    NSTableView *_signaturesTable;
    NSTableView *_accountsTable;
    NSPopUpButton *_selectPopup;
    ColorBackgroundView *_grayLine;
    ColorBackgroundView *_webViewBackground;
    EditingMessageWebView *_webView;
    EditingWebMessageController *_controller;
    NSButton *_textRichnessButton;
    NSTextField *_textRichnessMessageField;
    NSButton *_addButton;
    NSButton *_removeButton;
    NSButton *_placeSignatureAboveQuote;
    unsigned int _addingNewSignature:1;
    unsigned int _appIsTerminating:1;
    unsigned int _loadedInitialHTML:1;
    MailAccount *_selectedAccount;
    MailAccount *_allSignaturesAccount;
    NSString *defaultFontName;
    WebArchive *savedWebArchive;
    BOOL _currentSignatureHasChanges;
}

- (void)dealloc;
- (id)titleForIdentifier:(id)fp8;
- (id)windowTitle;
- (id)imageForPreferenceNamed:(id)fp8;
- (void)_validateButtonState;
- (void)defaultSignatureChanged:(id)fp8;
- (void)initializeFromDefaults;
- (void)setSelectedAccount:(id)fp8;
- (void)saveChanges;
- (void)nowWouldBeAGoodTimeToTerminate:(id)fp8;
- (void)willBeDisplayed;
- (void)moduleWasInstalled;
- (BOOL)moduleCanBeRemoved;
- (void)moduleWillBeRemoved;
- (BOOL)preferencesWindowShouldClose;
- (void)registerForNotifications;
- (void)unregisterForNotifications;
- (void)accountsDidChange:(id)fp8;
- (void)awakeFromNib;
- (void)determineDefaultFontName;
- (void)defaultFontMayHaveChanged:(id)fp8;
- (void)createSignature:(id)fp8;
- (id)defaultSignatureContentForSelectedAccount;
- (BOOL)endEditingOfSignatureOkayToReload:(BOOL)fp8;
- (void)removeSignatureSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)deleteKey:(id)fp8;
- (void)removeSignature:(id)fp8;
- (BOOL)allowsRichText;
- (void)changeSignatureRichness:(id)fp8;
- (id)webView:(id)fp8 plainTextEquivalentForNode:(id)fp12;
- (BOOL)dataWillBeSynced;
- (void)dataWasSynced;
- (void)webViewDidChangeTypingStyle:(id)fp8;
- (void)webViewDidChange:(id)fp8;
- (void)_updatePopup;
- (BOOL)validateMenuItem:(id)fp8;
- (void)placeSignatureAboveQuotedText:(id)fp8;
- (BOOL)_validateValuesInUI;
- (void)_updateWebView;
- (void)webView:(id)fp8 didFinishLoadForFrame:(id)fp12;
- (BOOL)webView:(id)fp8 shouldInsertNode:(id)fp12 replacingDOMRange:(id)fp16 givenAction:(int)fp20;
- (id)webView:(id)fp8 shouldReplaceSelectionWithWebArchive:(id)fp12 givenAction:(int)fp16;
- (void)webView:(id)fp8 didFailLoadWithError:(id)fp12 forFrame:(id)fp16;
- (void)webView:(id)fp8 didFailProvisionalLoadWithError:(id)fp12 forFrame:(id)fp16;
- (id)webArchiveForEditedSignature;
- (void)displaySelectedSignatureDetails;
- (int)numberOfRowsInTableView:(id)fp8;
- (void)tableView:(id)fp8 willDisplayCell:(id)fp12 forTableColumn:(id)fp16 row:(int)fp20;
- (id)truncatingAttributes;
- (id)tableView:(id)fp8 objectValueForTableColumn:(id)fp12 row:(int)fp16;
- (void)tableView:(id)fp8 setObjectValue:(id)fp12 forTableColumn:(id)fp16 row:(int)fp20;
- (BOOL)control:(id)fp8 textView:(id)fp12 doCommandBySelector:(SEL)fp16;
- (BOOL)selectionShouldChangeInTableView:(id)fp8;
- (void)tableViewSelectionDidChange:(id)fp8;
- (BOOL)tableView:(id)fp8 writeRows:(id)fp12 toPasteboard:(id)fp16;
- (unsigned int)tableView:(id)fp8 validateDrop:(id)fp12 proposedRow:(int)fp16 proposedDropOperation:(int)fp20;
- (BOOL)tableView:(id)fp8 acceptDrop:(id)fp12 row:(int)fp16 dropOperation:(int)fp20;
- (float)splitView:(id)fp8 constrainMinCoordinate:(float)fp12 ofSubviewAt:(int)fp16;
- (float)splitView:(id)fp8 constrainMaxCoordinate:(float)fp12 ofSubviewAt:(int)fp16;
- (void)splitView:(id)fp8 resizeSubviewsWithOldSize:(struct _NSSize)fp12;

@end

@interface DeletingTableView : NSTableView
{
}

- (void)keyDown:(id)fp8;
- (void)_userSelectIndexesInRange:(struct _NSRange)fp8 toIndex:(int)fp16 byExtendingSelection:(BOOL)fp20 indexType:(int)fp24;

@end

@interface MailApp (ApplescriptSignaturePreferences)
- (id)signatures;
- (BOOL)chooseSignatureWhenComposing;
- (void)setChooseSignatureWhenComposing:(BOOL)fp8;
- (id)selectedSignature;
- (void)setSelectedSignature:(id)fp8;
@end

@interface MailSorterPreferences : NSPreferencesModule <SyncableDataInterestedParty>
{
    NSTableView *rulesTable;
    NSButton *createButton;
    NSButton *editButton;
    NSButton *duplicateButton;
    NSButton *removeButton;
    NSPanel *ruleDetailPanel;
    NSTextField *ruleNameField;
    NSMutableArray *_actionViews;
    NSMenu *_actionMenu;
    NSScrollView *_actionContainer;
    NSView *_soundActionView;
    NSView *_colorActionView;
    NSView *_transferActionView;
    NSView *_copyActionView;
    NSView *_autoReplyActionView;
    NSView *_autoForwardActionView;
    NSView *_autoRedirectActionView;
    NSView *_markDeletedActionView;
    NSView *_markAsReadActionView;
    NSView *_markAsFlaggedActionView;
    NSView *_stopEvaluatingRulesActionView;
    NSView *_runAppleScriptActionView;
    NSView *_notifyUserActionView;
    NSPopUpButton *colorPopup;
    NSPopUpButton *colorStylePopup;
    SoundPopUpButton *soundPopup;
    AddressTextField *_forwardRecipientsField;
    AddressTextField *_redirectRecipientsField;
    NSPanel *responseMessageTextPanel;
    NSTextView *responseMessageTextView;
    NSTextField *appleScriptPathField;
    OldCompletionController *completionController;
    CriteriaUIHelper *criteriaUIHelper;
    MailboxesChooser *destinationChooser;
    MailboxesChooser *copyDestinationChooser;
    BOOL colorPanelShouldBeHidden;
    int currentlySelectedRow;
    MessageRule *_ruleBeingValidated;
    MessageRule *_ruleBeingEdited;
    DraggingTextView *addressFieldEditor;
    BOOL isEditingHeader;
    BOOL isDuplicatingRule;
}

- (void)dealloc;
- (id)titleForIdentifier:(id)fp8;
- (id)windowTitle;
- (void)awakeFromNib;
- (id)windowWillReturnFieldEditor:(id)fp8 toObject:(id)fp12;
- (id)viewForPreferenceNamed:(id)fp8;
- (id)preferencesNibName;
- (id)imageForPreferenceNamed:(id)fp8;
- (BOOL)dataWillBeSynced;
- (void)dataWasSynced;
- (void)_validateButtonState;
- (void)initializeFromDefaults;
- (void)saveChanges;
- (void)createRule:(id)fp8;
- (void)duplicateRule:(id)fp8;
- (void)editRule:(id)fp8;
- (void)removeRuleSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)removeRule:(id)fp8;
- (int)numberOfRowsInTableView:(id)fp8;
- (id)tableView:(id)fp8 objectValueForTableColumn:(id)fp12 row:(int)fp16;
- (void)tableView:(id)fp8 setObjectValue:(id)fp12 forTableColumn:(id)fp16 row:(int)fp20;
- (int)tableView:(id)fp8 highlightStyleForRow:(int)fp12 inRect:(struct _NSRect *)fp16 color:(id *)fp20;
- (void)tableView:(id)fp8 willDisplayCell:(id)fp12 forTableColumn:(id)fp16 row:(int)fp20;
- (BOOL)tableView:(id)fp8 doCommandBySelector:(SEL)fp12;
- (BOOL)tableView:(id)fp8 writeRows:(id)fp12 toPasteboard:(id)fp16;
- (unsigned int)tableView:(id)fp8 validateDrop:(id)fp12 proposedRow:(int)fp16 proposedDropOperation:(int)fp20;
- (BOOL)tableView:(id)fp8 acceptDrop:(id)fp12 row:(int)fp16 dropOperation:(int)fp20;
- (void)tableViewSelectionDidChange:(id)fp8;
- (void)_setOtherColor:(id)fp8;
- (void)removeAction:(id)fp8;
- (id)_actionViewForTag:(int)fp8;
- (void)addActionForTag:(int)fp8 atIndex:(int)fp12;
- (void)_configureColorPopupForColorStyle:(int)fp8;
- (void)_configureActionsForRule:(id)fp8;
- (void)addressesNeedRedisplay:(id)fp8;
- (void)addAction:(id)fp8;
- (void)_validateActionMenuItem:(id)fp8 currentTag:(int)fp12;
- (void)runRuleDetailPanelForRule:(id)fp8 inWindow:(id)fp12;
- (void)_ruleDetailSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)applyRulesSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)okClicked:(id)fp8;
- (void)alertDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)cancelClicked:(id)fp8;
- (void)colorChanged:(id)fp8;
- (void)colorPicked:(id)fp8;
- (void)colorStyleChanged:(id)fp8;
- (void)setResponseMessageClicked:(id)fp8;
- (void)responseMessageOKClicked:(id)fp8;
- (void)responseMessageCancelClicked:(id)fp8;
- (void)flagsToApplyChanged:(id)fp8;
- (void)chooseAppleScriptPanelSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(void *)fp16;
- (void)chooseAppleScriptClicked:(id)fp8;
- (void)mailboxSelected:(id)fp8;
- (void)actionPopupWillPopup:(id)fp8;
- (void)actionPopupChanged:(id)fp8;
- (id)titleForSoundFile:(id)fp8;

@end

@interface MailApp (ApplescriptMailSorterPreferences)
- (id)rules;
- (void)insertInRules:(id)fp8 atIndex:(unsigned int)fp12;
- (void)insertInRules:(id)fp8;
- (void)removeFromRulesAtIndex:(unsigned int)fp8;
@end

@interface _AutosizingClipView : NSClipView
{
}

- (void)viewFrameChanged:(id)fp8;

@end

@interface AutosizingScrollView : NSScrollView
{
    float _maxHeight;
    unsigned int _resizingContent:1;
    unsigned int _UNUSED:31;
}

+ (struct _NSSize)frameSizeForContentSize:(struct _NSSize)fp8 hasHorizontalScroller:(BOOL)fp16 hasVerticalScroller:(BOOL)fp20 borderType:(int)fp24;
+ (struct _NSSize)contentSizeForFrameSize:(struct _NSSize)fp8 hasHorizontalScroller:(BOOL)fp16 hasVerticalScroller:(BOOL)fp20 borderType:(int)fp24;
- (id)initWithFrame:(struct _NSRect)fp8;
- (void)drawRect:(struct _NSRect)fp8;
- (void)tile;
- (void)docViewFrameChanged;
- (void)setMaxHeight:(float)fp8;
- (float)maxHeight;
- (void)setTag:(int)fp8;
- (int)tag;

@end

@interface NSClipView (AutosizingScrollViewAdditions)
- (void)setAutomagicallyResizes:(BOOL)fp8;
@end

@interface AutosizingTextField : NSTextField
{
    float _minimumHeight;
}

- (void)_editorResized;
- (void)_adjustWidth:(float)fp8 ofEditor:(id)fp12;
- (void)_adjustWidthBy:(float)fp8;
- (void)setFrameSize:(struct _NSSize)fp8;
- (void)resizeWithOldSuperviewSize:(struct _NSSize)fp8;
- (void)sizeToFit;
- (void)_setupTextView:(id)fp8;
- (void)didAddSubview:(id)fp8;
- (void)willRemoveSubview:(id)fp8;
- (float)minimumHeight;
- (void)setMinimumHeight:(float)fp8;
- (void)dealloc;

@end

@interface FocusView : NSView
{
    struct _NSSize _inset;
    struct _NSSize _thickness;
    NSColor *_color;
    BOOL _alwaysVisible;
}

- (void)_setFocusNeedsDisplay;
- (void)setRepresentedView:(id)fp8;
- (void)dealloc;
- (void)removeFromSuperview;
- (id)initWithFrame:(struct _NSRect)fp8;
- (BOOL)isOpaque;
- (void)drawRect:(struct _NSRect)fp8;
- (void)setNeedsDisplayInRect:(struct _NSRect)fp8;
- (void)setInset:(struct _NSSize)fp8;
- (void)setThickness:(struct _NSSize)fp8;
- (void)setColor:(id)fp8;
- (void)setAlwaysVisible:(BOOL)fp8;
- (BOOL)isAlwaysVisible;
- (id)hitTest:(struct _NSPoint)fp8;

@end

@interface NSView (FocusViewSupport)
- (BOOL)hasFocusView;
- (id)focusView;
- (void)setHasFocusView:(BOOL)fp8;
@end

@interface DeliveryQueue : NSObject
{
    unsigned int _isBackgroundProcessingEnabled:1;
    unsigned int _resetDeliveryQueueWhenDoneWithCurrentMessage:1;
    MessageStore *_outboxStore;
    int _indexOfLastMessageToProcess;
    NSMutableDictionary *_errorResponses;
    NSMutableSet *_potentialAlternateDeliveryAccounts;
    NSMutableSet *_accountsOnHold;
    NSMutableDictionary *_alternateDeliveryAccounts;
    BOOL _queueIsActive;
    double _beginDeliveryTime;
}

+ (id)sharedDeliveryQueue;
- (id)init;
- (void)dealloc;
- (void)setBackgroundProcessingEnabled:(BOOL)fp8;
- (BOOL)isBackgroundProcessingEnabled;
- (void)nowWouldBeAGoodTimeToTerminate:(id)fp8;
- (void)resetStateAndReprocessQueue;
- (void)resetStateAndReprocessQueueIfNecessary;
- (void)_resetStateAndReprocessQueueIfNecessary;
- (void)_closeOutboxStore;
- (void)processDeliveryQueueStartingAtIndex:(unsigned int)fp8;
- (int)_performDeliveryOfMessage:(id)fp8 usingAccount:(id)fp12 accountUsed:(id *)fp16;
- (BOOL)_isMessageBeingEdited:(id)fp8;
- (void)_deliverQueuedMessages:(unsigned int)fp8;
- (int)appendMessageToQueue:(id)fp8 replacingOriginalMessage:(id)fp12;
- (void)cancelDeliveryOfMessage:(id)fp8;
- (void)_networkConfigurationChanged:(id)fp8;
- (id)potentialAlternateDeliveryAccounts;
- (void)setAlternateDeliveryAccount:(id)fp8 forAccount:(id)fp12;
- (void)unfreezeDeliveryAccount:(id)fp8 reprocessQueue:(BOOL)fp12;
- (id)alternateDeliveryAccountForAccount:(id)fp8;
- (BOOL)deliveryQueueContainsMessage:(id)fp8;

@end

@interface TextComposeBackEnd (ScriptingSupport)
+ (id)_messageEditorForComposeBackEnd:(id)fp8 window:(id *)fp12;
- (BOOL)isVisible;
- (void)setIsVisible:(BOOL)fp8;
- (id)appleScriptSender;
- (void)setAppleScriptSender:(id)fp8;
- (id)appleScriptSubject;
- (void)setAppleScriptSubject:(id)fp8;
- (id)content;
- (void)setContent:(id)fp8;
- (id)messageSignature;
- (void)setMessageSignature:(id)fp8;
- (void)_addRecipientsForKey:(id)fp8 toArray:(id)fp12;
- (id)recipients;
- (id)toRecipients;
- (id)ccRecipients;
- (id)bccRecipients;
- (void)insertRecipient:(id)fp8 atIndex:(unsigned int)fp12 inHeaderWithKey:(id)fp16;
- (void)insertInToRecipients:(id)fp8 atIndex:(unsigned int)fp12;
- (void)insertInToRecipients:(id)fp8;
- (void)insertInCcRecipients:(id)fp8 atIndex:(unsigned int)fp12;
- (void)insertInCcRecipients:(id)fp8;
- (void)insertInBccRecipients:(id)fp8 atIndex:(unsigned int)fp12;
- (void)insertInBccRecipients:(id)fp8;
- (void)removeFromToRecipientsAtIndex:(unsigned int)fp8;
- (void)removeFromCcRecipientsAtIndex:(unsigned int)fp8;
- (void)removeFromBccRecipientsAtIndex:(unsigned int)fp8;
- (void)replaceFormattedAddress:(id)fp8 withAddress:(id)fp12 forKey:(id)fp16;
- (id)handleSaveMessageCommand:(id)fp8;
- (id)handleSendMessageCommand:(id)fp8;
- (id)handleCloseScriptCommand:(id)fp8;
- (id)uniqueID;
- (id)objectSpecifier;
- (void)setHtmlContent:(id)fp8;
- (void)setVcardPath:(id)fp8;
@end

@interface MouseTrackingWindow : NSWindow
{
}

- (id)initWithContentRect:(struct _NSRect)fp8 styleMask:(unsigned int)fp24 backing:(int)fp28 defer:(BOOL)fp32;
- (void)displayIfNeeded;
- (BOOL)performKeyEquivalent:(id)fp8;

@end

@interface NSWindow (MailSwizzle)
- (void)changeToMouseTrackingWindow;
@end

@interface NSWindow (BetterDescription)
- (id)debugDescription;
@end

@interface FlippedView : NSView
{
}

- (BOOL)isFlipped;
- (BOOL)isOpaque;

@end

@interface ActivityViewer : NSObject
{
    id _docView;
    id _scrollView;
    id _window;
    NSMutableArray *entries;
    int _numActiveEntries;
    NSTimer *_updateTimer;
}

- (id)init;
- (void)dealloc;
- (void)initializeFromDefaults;
- (void)awakeFromNib;
- (void)_handleNewActivity:(id)fp8;
- (void)_updateAllEntries;
- (void)_addViewToViewerWindow:(id)fp8;
- (void)_appendEntry:(id)fp8;
- (void)removeEntry:(id)fp8;
- (void)_tileViews;
- (BOOL)hasBackgroundActivity;
- (int)countOfBackgroundActivities;
- (void)nowWouldBeAGoodTimeToTerminate:(id)fp8;
- (BOOL)isActivityViewerVisible;
- (void)toggleActivityViewerVisible;
- (id)statusMessageForTarget:(id)fp8;
- (BOOL)windowShouldClose:(id)fp8;
- (struct _NSRect)windowWillUseStandardFrame:(id)fp8 defaultFrame:(struct _NSRect)fp12;

@end

@interface MailApp (ActivityViewerScripting)
- (int)backgroundThreadCount;
@end

@interface MailNotificationCenter : NSNotificationCenter
{
    struct _NSHashTable *_nameTable;
}

- (void)addObserver:(id)fp8 selector:(SEL)fp12 name:(id)fp16 object:(id)fp20;
- (void)addObserverInMainThread:(id)fp8 selector:(SEL)fp12 name:(id)fp16 object:(id)fp20;
- (void)postNotification:(id)fp8;
- (void)postNotificationName:(id)fp8 object:(id)fp12 userInfo:(id)fp16;
- (void)_postNotificationWithMangledName:(id)fp8 object:(id)fp12 userInfo:(id)fp16;
- (void)removeObserver:(id)fp8 name:(id)fp12 object:(id)fp16;

@end

@interface NSNotificationCenter (ToReplaceCenterWithOurOwn)
+ (id)allocWithZone:(struct _NSZone *)fp8;
@end

@interface Signature : NSObject <NSCopying>
{
    NSString *_uniqueId;
    NSString *_name;
    NSData *_webArchiveData;
    unsigned int _isRich:1;
    unsigned int _isSavedAsRich:1;
    unsigned int _readFromTextFile;
    unsigned int _isDirty:1;
}

+ (id)newUniqueId;
- (void)dealloc;
- (id)initWithName:(id)fp8;
- (id)initWithName:(id)fp8 uniqueId:(id)fp12;
- (id)initWithDictionary:(id)fp8;
- (BOOL)saveContentToDisk;
- (void)removeContentFromDisk;
- (id)dictionaryRepresentationIncludingWebArchiveData:(BOOL)fp8;
- (id)dictionaryRepresentation;
- (id)copyWithZone:(struct _NSZone *)fp8;
- (id)uniqueId;
- (void)setName:(id)fp8;
- (id)name;
- (id)webArchive;
- (void)setWebArchive:(id)fp8;
- (id)attributedString;
- (id)textValue;
- (void)setTextValue:(id)fp8;
- (void)setIsRich:(BOOL)fp8;
- (BOOL)isRich;
- (BOOL)isEqual:(id)fp8;
- (unsigned int)hash;

@end

@interface MailApp (ApplescriptSignature)
- (void)insertInSignatures:(id)fp8 atIndex:(unsigned int)fp12;
- (void)insertInSignatures:(id)fp8;
- (void)removeFromSignaturesAtIndex:(unsigned int)fp8;
@end

@interface Signature (Applescript)
- (id)signatureName;
- (void)setSignatureName:(id)fp8;
- (id)signatureContents;
- (id)objectSpecifier;
@end

@interface FontMenu : NSMenu
{
}

- (id)initWithTitle:(id)fp8 fixedPitchOnly:(BOOL)fp12;

@end

@interface iToolsAccountDetails : IMAPAccountDetails
{
}

+ (id)accountDetailsNibName;
- (Class)accountClass;
- (void)setupUIFromValuesInAccount:(id)fp8;

@end

@interface AttachmentManager : NSObject
{
    NSMutableArray *_openedAttachmentPaths;
    NSMutableDictionary *_openedAttachmentMessageIDs;
    NSMutableArray *_messageIDPurgeQueue;
    NSTimer *_purgeTimer;
    int _purgeBehavior;
}

+ (void)_registerDefaults;
+ (id)sharedInstance;
+ (id)openedAttachmentListPath;
+ (BOOL)attachmentPurgingIsEnabled;
- (int)attachmentPurgingBehavior;
- (id)init;
- (void)dealloc;
- (void)initializeAttachmentPurging;
- (void)enableAttachmentPurging;
- (void)disableAttachmentPurging;
- (void)setAttachmentPurgingBehavior:(int)fp8;
- (id)uniquedPathForFile:(id)fp8 inDirectory:(id)fp12;
- (void)beginLoadingInlineAttachmentsInView:(id)fp8;
- (void)cancelLoadingInlineAttachmentsInView:(id)fp8;
- (BOOL)dragAbortedBecauseOneOrMoreAttachmentsNotDownloaded:(id)fp8 inView:(id)fp12;
- (void)_confirmDownloadSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(struct SheetContext *)fp16;
- (BOOL)dragAttachments:(id)fp8 startPoint:(struct _NSPoint)fp12 view:(id)fp20 event:(id)fp24 image:(id)fp28 delegate:(id)fp32;
- (BOOL)gatekeeperApprovalForAttachments:(id)fp8 draggedFromView:(id)fp12 delegate:(id)fp16;
- (void)draggedAttachmentsWereGatekeeperApproved:(id)fp8;
- (id)pathsForDraggedAttachments:(id)fp8 fromView:(id)fp12;
- (void)_openFromDownloadedNotification:(id)fp8;
- (void)_downloadCompleted:(id)fp8;
- (void)openAttachments:(id)fp8 applicationURL:(struct __CFURL *)fp12 window:(id)fp16 delegate:(id)fp20;
- (void)openAttachmentsWithDictionary:(id)fp8;
- (id)_savePanelForFilename:(id)fp8 directory:(id)fp12;
- (void)saveAttachmentsFromMessages:(id)fp8 window:(id)fp12;
- (void)runSavePanelForAttachments:(id)fp8 window:(id)fp12 gatekeeperApproved:(BOOL)fp16;
- (void)runSavePanelForAttachments:(id)fp8 window:(id)fp12;
- (void)runSavePanelForAttachmentsFromDictionary:(id)fp8;
- (void)saveAttachmentsToDownloadDirectory:(id)fp8 window:(id)fp12 gatekeeperApproved:(BOOL)fp16;
- (void)saveAttachmentsToDownloadDirectory:(id)fp8 window:(id)fp12;
- (void)saveAttachmentsToDownloadDirectoryFromDictionary:(id)fp8;
- (BOOL)openTemporaryAttachments:(id)fp8 applicationBundle:(id)fp12 window:(id)fp16;
- (BOOL)openInvitationAttachments:(id)fp8 openImmediately:(BOOL)fp12;
- (void)chooseApplicationToOpenAttachments:(id)fp8 needsSave:(BOOL)fp12 window:(id)fp16 delegate:(id)fp20;
- (void)prepareAttributedString:(id)fp8 forPrinter:(id)fp12;
- (void)_confirmExecutableSheetDidEnd:(id)fp8 alertReturn:(int)fp12 context:(id)fp16;
- (BOOL)openFileURL:(id)fp8 stayInBackground:(BOOL)fp12 window:(id)fp16;
- (BOOL)openFileAtPath:(id)fp8 withApplication:(id)fp12 stayInBackground:(BOOL)fp16;
- (void)configureOpenWithMenu:(id)fp8 forAttachments:(id)fp12;
- (id)contextualMenuForAttachments:(id)fp8 forEditing:(BOOL)fp12;
- (void)saveAttachments:(id)fp8 toDirectory:(id)fp12 makePathsUnique:(BOOL)fp16 window:(id)fp20 gatekeeperApproved:(BOOL)fp24;
- (void)saveAttachments:(id)fp8 toDirectory:(id)fp12 makePathsUnique:(BOOL)fp16 window:(id)fp20;
- (void)saveAttachmentsToDirectoryMakePathsUniqueWindowFromDictionary:(id)fp8;
- (BOOL)gatekeeperApprovalForAttachments:(id)fp8 target:(id)fp12 didEndSelector:(SEL)fp16 userInfo:(id)fp20;
- (void)_gatekeeperApprovalDidEnd:(id)fp8;

@end

@interface AttachmentManager (DiskImageSupport)
- (void)_checkDiskImageFileAtPath:(id)fp8 privately:(BOOL)fp12 didEndSelector:(SEL)fp16 contextInfo:(id)fp20;
- (void)_reallyCheckDiskImageFileAtPath:(id)fp8 privately:(BOOL)fp12 didEndSelector:(SEL)fp16 contextInfo:(id)fp20;
@end

@interface AttachmentManager (Internal)
- (long)_openFullPath:(id)fp8 withAppURL:(struct __CFURL *)fp12 options:(unsigned int)fp16;
- (void)_openPathsForAttachmentsWithDictionary:(id)fp8;
- (void)_chooseApplicationSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(struct SheetContext *)fp16;
- (void)_immediatelySaveFileWrapper:(id)fp8 path:(id)fp12 window:(id)fp16;
- (void)_saveAttachment:(id)fp8 path:(id)fp12 window:(id)fp16;
- (id)_saveAttachments:(id)fp8 toDirectory:(id)fp12 makePathsUnique:(BOOL)fp16;
- (id)_saveAttachments:(id)fp8 toDirectory:(id)fp12;
- (void)_saveAttachmentsFromMessages:(id)fp8 toDirectory:(id)fp12;
- (void)_savePanelSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(struct SheetContext *)fp16;
- (void)_reportCantOpenSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(struct SheetContext *)fp16;
- (BOOL)_sameAttachmentAsBefore:(id)fp8 path:(id)fp12;
- (BOOL)_immediatelyOpenAttachment:(id)fp8 path:(id)fp12 window:(id)fp16 application:(struct __CFURL *)fp20 reason:(int)fp24 gatekeeperApproved:(BOOL)fp28 exists:(BOOL)fp32;
- (BOOL)_immediatelyOpenAttachment:(id)fp8 path:(id)fp12 window:(id)fp16 application:(struct __CFURL *)fp20 reason:(int)fp24;
- (void)_immediatelyOpenAttachmentWithDictionary:(id)fp8;
- (void)_setupOpenedAttachmentsMessageIDMap;
- (void)_addOrReplaceEntry:(id)fp8 inAttachmentList:(id)fp12;
- (void)_addPurgeEntryForAttachmentAtPath:(id)fp8 modDate:(id)fp12 messageID:(id)fp16;
- (void)_scheduleAttachmentListSave;
- (void)_saveOpenedAttachmentsList;
- (BOOL)_allMessagesWithMessageIDAreDeletedOrTrashed:(id)fp8;
- (void)_synchronouslyPurgeAttachments;
- (void)_reallyPurgeAttachments;
- (void)_purgeAttachments:(id)fp8;
- (void)_purgeMessageIDs;
- (void)_scheduleMessageIDPurge;
- (void)_schedulePurgeOfMessageIDs:(id)fp8;
- (void)_messageDeleted:(id)fp8;
- (void)_handleMessageDeleted:(id)fp8;
- (void)nowWouldBeAGoodTimeToTerminate:(id)fp8;
- (BOOL)_immediatelyOpenAttachment:(id)fp8 withApplicationURL:(struct __CFURL *)fp12 window:(id)fp16 attachmentDirectory:(id)fp20 reason:(int)fp24;
- (id)_pathForSavedFileWrapper:(id)fp8 directory:(id)fp12 makePathUnique:(BOOL)fp16;
- (void)_noteFileSystemChanged:(id)fp8;
- (void)_logGatekeeperInputDictionary:(id)fp8;
- (BOOL)quarantineIsGatekeeperApproved:(id)fp8 downloadController:(id *)fp12;
- (void)_checkArchiveWrapper:(id)fp8 contextInfo:(id)fp12;
- (void)_archiveCheckDidEnd:(id)fp8;
- (BOOL)runGatekeeperOnDictionary:(id)fp8;
- (void)_gatekeeperSheetDidEnd:(id)fp8 returnCode:(int)fp12 contextInfo:(id)fp16;
- (void)_finishGatekeeperSheetWithContextDictionary:(id)fp8;
- (void)runGatekeeperOnAttachments:(id)fp8 window:(id)fp12 didEndSelector:(SEL)fp16 contextDictionary:(id)fp20;
- (void)_diskImageGatekeeperCheckDidEnd:(id)fp8;
@end

@interface MessageViewer (MessageViewerToolbar)
- (void)_setupToolBar;
- (BOOL)validateToolbarItem:(id)fp8 forSegment:(int)fp12;
- (id)toolbar:(id)fp8 itemForItemIdentifier:(id)fp12 willBeInsertedIntoToolbar:(BOOL)fp16;
- (void)setupSearchView:(BOOL)fp8;
- (void)_handleCancelSearchButton:(id)fp8;
- (id)toolbarDefaultItemIdentifiers:(id)fp8;
- (id)toolbarAllowedItemIdentifiers:(id)fp8;
- (void)_reallyUpdateToolbar:(BOOL)fp8;
- (void)_updateToolbarForResizing:(BOOL)fp8;
- (void)toolbarDidRemoveItem:(id)fp8;
- (void)toolbarWillAddItem:(id)fp8;
- (void)toolbarDidMoveItem:(id)fp8;
- (void)toolbarDidReplaceAllItems:(id)fp8;
- (void)_mailboxesViewFrameChanged;
- (void)_mailboxesViewDidEndLiveResize;
@end

@interface ColorBackgroundView (MessageViewerAdditions)
- (void)viewDidEndLiveResize;
@end

@interface MessageEditor (MessageEditorToolbar)
- (BOOL)validateToolbarItem:(id)fp8 forSegment:(int)fp12;
- (void)_setupToolBarOnWindow:(id)fp8 messageType:(int)fp12;
- (void)_synchronizeChangeReplyItem:(id)fp8 messageType:(int)fp12;
- (void)toggleReplytype:(int)fp8;
- (void)_updateSendButtonStateInToolbar;
- (void)toolbarWillAddItem:(id)fp8;
- (id)toolbar:(id)fp8 itemForItemIdentifier:(id)fp12 willBeInsertedIntoToolbar:(BOOL)fp16;
- (id)toolbarDefaultItemIdentifiers:(id)fp8;
- (id)toolbarAllowedItemIdentifiers:(id)fp8;
@end

@interface MessageTextStorage : NSConcreteTextStorage
{
    BOOL _isRichText;
    unsigned int _delegateRespondsToAttachmentsAdded:1;
    unsigned int _delegateRespondsToAttachmentsDeleteded:1;
    id _delegate;
}

- (id)defaultFont;
- (BOOL)isRichText;
- (void)setRichText:(BOOL)fp8;
- (void)fixParagraphStyleAttributeInRange:(struct _NSRange)fp8;
- (void)fixQuotingDisplayAttributesInRange:(struct _NSRange)fp8;
- (void)replaceCharactersInRange:(struct _NSRange)fp8 withAttributedString:(id)fp16;
- (void)replaceCharactersInRange:(struct _NSRange)fp8 withString:(id)fp16;
- (void)deleteCharactersInRange:(struct _NSRange)fp8;
- (void)setDelegate:(id)fp8;

@end

@interface NSToolbarItem (MailAdditions)
- (BOOL)menuHasBeenSet;
- (id)menuItemRep;
- (BOOL)isInPaletteView;
@end

@interface NSToolbar (MailAdditions)
- (id)itemWithTag:(int)fp8;
- (id)configureToolbarItems;
- (void)setMinWidthOfItem:(id)fp8 alternateTitle:(id)fp12;
- (id)toolbarView;
@end

@interface SearchTextField : NSSearchField
{
    struct {
        unsigned int dontDisplaySearchScope:1;
        unsigned int reserver:31;
    } _flags;
}

- (void)awakeFromNib;
- (BOOL)isDisplayingGraySearchScope;
- (void)displayGraySearchScopeIfAppropriate:(id)fp8;
- (void)removeGraySearchScope;
- (BOOL)becomeFirstResponder;
- (void)selectText:(id)fp8;
- (void)_cancelKey:(id)fp8;
- (unsigned int)draggingEntered:(id)fp8;
- (BOOL)performDragOperation:(id)fp8;

@end

@interface NSFont (MailAdditions)
+ (id)mailboxListFont;
+ (id)mailboxListFontName;
+ (void)setMailboxListFontName:(id)fp8;
+ (float)mailboxListFontSize;
+ (void)setMailboxListFontSize:(float)fp8;
+ (id)messageListFont;
+ (id)messageListFontName;
+ (void)setMessageListFontName:(id)fp8;
+ (float)messageListFontSize;
+ (void)setMessageListFontSize:(float)fp8;
+ (id)addressFieldFont;
+ (id)prefsAddressFieldFont;
+ (id)validFontName:(id)fp8 fixedPitchOnly:(BOOL)fp12;
@end

@interface SubjectFormatter : NSFormatter
{
}

- (id)stringForObjectValue:(id)fp8;
- (id)attributedStringForObjectValue:(id)fp8 withDefaultAttributes:(id)fp12;
- (id)editingStringForObjectValue:(id)fp8;
- (BOOL)getObjectValue:(id *)fp8 forString:(id)fp12 errorDescription:(id *)fp16;
- (BOOL)isPartialStringValid:(id)fp8 newEditingString:(id *)fp12 errorDescription:(id *)fp16;

@end

@interface ActivityViewEntry : NSObject
{
    NSBox *_box;
    NSProgressIndicator *_progressBar;
    NSTextField *_statusField;
    NSButton *_stopButton;
    NSTextField *_taskNameField;
    ActivityMonitor *_activity;
    int _lastChangeCount;
    ActivityViewer *_viewer;
}

- (id)initForViewer:(id)fp8;
- (void)dealloc;
- (void)awakeFromNib;
- (void)setMonitoredActivity:(id)fp8;
- (id)monitoredActivity;
- (void)update;
- (void)_handleActivityEnded;
- (void)stop:(id)fp8;
- (BOOL)inUse;
- (void)setupUI;
- (id)view;

@end

@interface MailboxesChooser : NSObject
{
    NSPopUpButton *popUpButton;
    MailboxUid *_selectedMailbox;
    MailboxUid *_targetMailboxForCycleChecks;
    BOOL includeSmartMailboxes;
    id _realTarget;
    SEL _realAction;
}

- (void)dealloc;
- (void)setShouldCheckCyclesToSmartMailbox:(id)fp8;
- (void)cellWillPopUp:(id)fp8;
- (void)disableCyclicItemsInMenu:(id)fp8;
- (void)disableCyclicMailboxesInItems:(id)fp8;
- (void)reset;
- (void)awakeFromNib;
- (void)_cancelMenuTracking:(id)fp8;
- (id)popUpButton;
- (void)setPopUpButton:(id)fp8;
- (void)_mailboxWasRenamed:(id)fp8;
- (void)_ensureSelectionIsValid:(id)fp8;
- (void)_popUpPressed:(id)fp8;
- (void)setSelectedMailbox:(id)fp8;
- (id)selectedMailbox;
- (void)setIncludesSmartMailboxes:(BOOL)fp8;

@end

@interface MouseTracker : NSObject
{
    NSView *_view;
    struct _NSRect _trackingRect;
    int _trackingRectTag;
    BOOL _mouseOver;
    id _delegate;
}

- (id)initWithTrackingRect:(struct _NSRect)fp8 inView:(id)fp24;
- (void)dealloc;
- (void)setDelegate:(id)fp8;
- (struct _NSRect)trackingRect;
- (id)view;
- (BOOL)mouseOver;
- (void)_updateMouseIsOver;
- (void)mouseEntered:(id)fp8;
- (void)mouseExited:(id)fp8;
- (void)mouseMoved:(id)fp8;

@end

@interface VisibleStateObject : NSObject
{
    struct visible_state vs;
    NSMutableDictionary *selectedMessageIDs;
    NSMutableArray *openThreadIDs;
}

- (void)dealloc;

@end

@interface TableViewManager (FilteredList_Management)
- (void)mallStructureWillChange:(id)fp8;
- (void)setMailboxUids:(id)fp8;
- (BOOL)_allMailboxes:(id)fp8 areOfTypes:(int *)fp12 typeCount:(unsigned int)fp16;
- (BOOL)allMailboxesAreOutgoing:(id)fp8;
- (BOOL)allMailboxes:(id)fp8 areOfType:(int)fp12;
- (BOOL)_criterionIsLastViewedDate:(id)fp8;
- (BOOL)mailboxIsViewingHistorySmartMailbox:(id)fp8;
- (BOOL)allMailboxesAreViewingHistorySmartMailboxes:(id)fp8;
- (void)storeStructureChanged:(id)fp8;
- (void)messagesCompacted:(id)fp8;
- (void)messageFlagsChanged:(id)fp8;
- (void)_scrollToHappyPlace;
- (void)_recordVisibleState:(struct visible_state *)fp8 deletedAreGoingAway:(BOOL)fp12 considerPinToEnd:(BOOL)fp16;
- (BOOL)_restoreVisibleState:(struct visible_state *)fp8 forceSelToVisible:(BOOL)fp12;
- (void)dumpVisibleState;
- (int)indexOfTopmostVisibleMessageMustBeSelected:(BOOL)fp8 okayIfDeleted:(BOOL)fp12;
- (int)indexOfLastReadMessage;
- (id)persistentVisibleStateCreateIfNecessary:(BOOL)fp8;
- (void)_saveScrollAndSelection:(BOOL)fp8;
- (void)saveScrollAndSelection;
- (BOOL)restoreScrollAndSelection;
- (void)_setScrollAndSelectionForThreadOpenedOrClosed:(id)fp8 flag:(BOOL)fp12 clickedRow:(int)fp16 rowToSelectInOpeningThread:(int)fp20;
- (id)selectedMessageIDs;
- (id)openThreadIDs;
- (void)setSelectedMessageIDs:(id)fp8 openThreadIDs:(id)fp12;
- (void)addRanks;
- (void)removeRanks;
- (void)clearSearch;
- (BOOL)isShowingSearchResults;
- (void)searchForString:(id)fp8 in:(int)fp12 withOptions:(int)fp16;
- (BOOL)isFocused;
- (void)setFocusedMessages:(id)fp8;
- (BOOL)isSortedByRank;
- (BOOL)isSortedByDateReceived;
- (BOOL)isSortedChronologically;
- (int)sortColumn;
- (void)setSortColumn:(int)fp8 ascending:(BOOL)fp12;
- (BOOL)isSortedAscending;
- (void)setIsSortedAscending:(BOOL)fp8;
- (int)state;
- (id)filteredMessages;
- (void)restoreLocationColumnIfAppropriate;
- (void)clearTrackingRects;
- (void)updateTrackingRects;
- (int)_indexOfMemberToSelectWhenOpeningThread:(id)fp8;
- (double)_getAnimationDuration:(int)fp8;
- (id)_createHiliteImage;
- (id)_createBackgroundImage;
- (id)_createSnapshotOfRect:(struct _NSRect)fp8 styleMask:(unsigned int)fp24 backing:(int)fp28 defer:(BOOL)fp32;
- (id)_createSnapshotOfRow:(int)fp8 styleMask:(unsigned int)fp12 backing:(int)fp16 defer:(BOOL)fp20;
- (BOOL)_isRowVisible:(int)fp8;
- (struct _NSSize)_calculateTruncationAmountUsingRowHeight:(float)fp8 collapseOrExpandAmount:(float)fp12 invisibleThreadAmountAbove:(float)fp16 invisibleThreadAmountBelow:(float)fp20;
- (void)_animateThreadCollapsing:(int)fp8 threadRow:(int)fp12 clickedRow:(int)fp16;
- (float)_animateThreadOpening:(id)fp8 threadMessageCount:(int)fp12 threadRow:(int)fp16 rowToBeSelected:(int)fp20;
- (void)searchFinished:(id)fp8;
- (void)tableView:(id)fp8 willMoveToWindow:(id)fp12;
- (void)tableViewDidMoveToWindow:(id)fp8;
- (BOOL)selectMessageWithIDIfExists:(id)fp8;
@end

@interface MVMailBundle : NSObject
{
}

+ (id)allBundles;
+ (id)composeAccessoryViewOwners;
+ (void)registerBundle;
+ (id)sharedInstance;
+ (BOOL)hasPreferencesPanel;
+ (id)preferencesOwnerClassName;
+ (id)preferencesPanelName;
+ (BOOL)hasComposeAccessoryViewOwner;
+ (id)composeAccessoryViewOwnerClassName;
- (void)dealloc;
- (void)_registerBundleForNotifications;

@end

@interface MVComposeAccessoryViewOwner : NSObject
{
    NSView *accessoryView;
}

+ (id)composeAccessoryViewOwner;
+ (id)composeAccessoryViewNibName;
- (id)init;
- (void)setupUIForMessage:(id)fp8;
- (id)composeAccessoryView;
- (BOOL)messageWillBeDelivered:(id)fp8;
- (BOOL)messageWillBeSaved:(id)fp8;

@end

@interface OldCompletionController : NSObject
{
    NSControl *_editingField;
    NSWindow *_editingWindow;
    NSString *_currentPartialString;
    NSString *_previousString;
    NSWindow *_completionWindow;
    NSTableView *_completionTableView;
    id _selectedRecord;
    NSString *_selectedAddress;
    NSString *_completedAddress;
    NSMutableArray *_matchingRecords;
    NSMutableArray *_matchingAddresses;
    NSMutableArray *_ldapMatches;
    ABLDAP_Manager *_ldapManager;
    NSTimer *_ldapTimer;
    NSProgressIndicator *progressIndicator;
    ActivityMonitor *completionMonitor;
    BOOL showListAsSoonAsPossible;
    BOOL ldapSearchIsComplete;
    BOOL ldapSearchIsPending;
    BOOL localSearchIsComplete;
    BOOL showingPartialLDAPSearchResults;
}

+ (void)initialize;
+ (void)_doCompletionWindowPlacement:(id)fp8;
- (id)init;
- (void)setProgressIndicatorVisible:(BOOL)fp8;
- (void)awakeFromNib;
- (void)_stopTimer;
- (void)_startTimer;
- (void)_disconnectAllLDAPConnections:(id)fp8;
- (void)userDidSelectText:(id)fp8;
- (void)_reset:(id)fp8;
- (id)selectedRecord;
- (id)completedAddress;
- (void)setCompletedAddress:(id)fp8;
- (void)textFieldDidAtomicizeAllAddresses:(id)fp8;
- (void)cancelAllCompletions;
- (void)cancelThisCompletion;
- (BOOL)_acceptCurrentCompletion;
- (void)selectTableViewRow:(id)fp8;
- (void)setEditingField:(id)fp8;
- (id)stringToComplete:(id)fp8;
- (void)_showSelectedLineInField;
- (void)_showSelectedLine;
- (void)_showCompletionListWindow:(unsigned int)fp8;
- (void)orderOutCompletionWindow:(id)fp8;
- (void)placementViewFrameChanged:(id)fp8;
- (void)_displayFilteredResultsShowList:(BOOL)fp8 showSelectedLine:(BOOL)fp12;
- (void)updateList:(id)fp8;
- (void)endUpdateList:(id)fp8;
- (void)appendLDAPResultsToMatchingRecords;
- (void)mergeLDAPMatchesIntoMatchingRecords;
- (void)completeStringUsingLDAP:(id)fp8;
- (void)completeString:(id)fp8;
- (void)addressBookSearchCompleted:(id)fp8;
- (void)forceListToPopup;
- (int)numberOfRowsInTableView:(id)fp8;
- (id)tableView:(id)fp8 objectValueForTableColumn:(id)fp12 row:(int)fp16;
- (BOOL)control:(id)fp8 textShouldEndEditing:(id)fp12;
- (void)controlTextDidChange:(id)fp8;
- (BOOL)shouldChangeTextInRange:(struct _NSRange)fp8 replacementString:(id)fp16;
- (void)tableViewSelectionDidChange:(id)fp8;
- (BOOL)control:(id)fp8 textView:(id)fp12 doCommandBySelector:(SEL)fp16;
- (BOOL)control:(id)fp8 textShouldBeginEditing:(id)fp12;
- (void)dealloc;

@end

@interface AttachmentLoader : NSObject
{
    MessageStore *_store;
    ActivityMonitor *_monitor;
    NSMutableArray *_entries;
}

+ (id)loaderForAttachment:(id)fp8 window:(id)fp12 reason:(int)fp16 application:(id)fp20 attachmentDirectory:(id)fp24;
+ (id)loaderForSavingAttachment:(id)fp8 window:(id)fp12 path:(id)fp16;
+ (void)startLoadingInlineAttachments:(id)fp8 window:(id)fp12 delegate:(id)fp16;
+ (void)cancelInlineLoads:(id)fp8 window:(id)fp12;
- (void)dealloc;

@end

@interface _AttachmentQueueEntry : NSObject
{
    NSWindow *window;
    NSTextAttachment *attachment;
    int reason;
    NSString *attachDir;
    union {
        NSURL *applicationURL;
        NSString *savePath;
    } opSpecific;
}

+ (id)newWithWindow:(id)fp8 attachment:(id)fp12 reason:(int)fp16 opSpecific:(id)fp20 attachmentDirectory:(id)fp24;
- (BOOL)isEqual:(id)fp8;
- (void)dealloc;

@end

@interface AttachmentLoader (Internal)
+ (id)_loaderForStore:(id)fp8;
+ (id)_makeLoaderForStore:(id)fp8;
- (id)init;
- (void)_cancelInlineLoadsForWindow:(id)fp8;
- (void)_didFetchFileWrapper:(id)fp8 forQueueEntry:(id)fp12;
- (void)_processAttachmentQueue;
- (void)_setMonitor:(id)fp8;
- (void)_monitorQuit;
- (void)_mailboxBecameInvalid;
- (void)_setStore:(id)fp8;
- (void)_startBackgroundThreadIfNeeded;
- (void)_addAttachmentsToFetch:(id)fp8 fromWindow:(id)fp12 delegate:(id)fp16;
- (BOOL)_addOrReprioritizeEntryEqualTo:(id)fp8;
@end

@interface AddressCommentCommand : NSScriptCommand
{
}

- (id)_getAddressCommentForObject:(id)fp8;
- (id)executeCommand;
- (id)performDefaultImplementation;

@end

@interface UncommentedAddressCommand : NSScriptCommand
{
}

- (id)_getUncommentedAddressForObject:(id)fp8;
- (id)executeCommand;
- (id)performDefaultImplementation;

@end

@interface MailToCommand : NSScriptCommand
{
}

- (id)performDefaultImplementation;

@end

@interface MailApp : NSApplication <SyncableApp>
{
    id selectionOwner;
    NSMenu *_mailboxesContextMenu;
    NSMenu *_messageViewerContextMenu;
    NSMenu *_composeAttachmentContextMenu;
    NSMenu *_viewAttachmentContextMenu;
    NSMenuItem *textEncodingMenuItem;
    MailboxesController *mailboxesController;
    NSString *_noMailSoundPath;
    NSString *_fetchErrorSoundPath;
    NSImage *unbadgedApplicationImage;
    NSPanel *_selectMailboxPanel;
    MailboxesChooser *_selectMailboxChooser;
    DeliveryQueue *_deliveryQueue;
    ActivityViewer *_activityViewer;
    NSMutableArray *_terminationHandlers;
    unsigned int _autoLaunchHidden:1;
    unsigned int _shouldPlayNoMailSound:1;
    unsigned int _shouldPlayFetchErrorSound:1;
    unsigned int _appHasFinishedLaunching:1;
    unsigned int _synchronizingAllAccounts:1;
    unsigned int _groupingByThreadDefaultsToOn:1;
    unsigned int _updateEmailAliasesOnNextActivation:1;
    unsigned int _terminateReply:4;
    unsigned int _currentHandlerIndex:24;
    NSMutableSet *_accountsCurrentlySynchronizing;
    int numberOfAccountsEmptyingTrash;
    int currentPasswordPanelCount;
    NSMutableDictionary *_composeMessages;
    id _syncer;
    BOOL accountsAreNew;
    BOOL useAddressAtoms;
    BOOL runningEmptyTrashSheet;
}

+ (void)_forceClassInitialization;
- (id)init;
- (void)awakeFromNib;
- (void)sendEvent:(id)fp8;
- (void)presencePreferenceChanged:(id)fp8;
- (void)setAppImageForUnreadCount:(int)fp8;
- (void)_unreadCountChanged:(id)fp8;
- (void)_accountInfoDidChange:(id)fp8;
- (BOOL)showViewerWindow:(id)fp8;
- (BOOL)applicationOpenUntitledFile:(id)fp8;
- (void)configurePerformanceLoggingDefaults;
- (void)_systemTimeChanged;
- (void)_midnightPassed;
- (void)_setupMidnightTimer;
- (void)_checkTimerAndFireDate:(id)fp8;
- (void)checkTimersAfterSleeping;
- (void)_setupMenus;
- (void)_updateEmailAliases;
- (void)performDelayedInitialization;
- (void)applicationDidFinishLaunching:(id)fp8;
- (void)reallyFinishLaunching;
- (BOOL)accountsAreNew;
- (void)_restoreMessagesFromDefaults;
- (void)_setupInitialState;
- (int)_loadBundlesFromPath:(id)fp8;
- (void)_loadBundles;
- (id)_mailboxBeingViewed;
- (id)_accountBeingViewed;
- (id)_selectedMailboxes;
- (BOOL)validateToolbarItem:(id)fp8 forSegment:(int)fp12;
- (BOOL)validateMenuItem:(id)fp8;
- (BOOL)moreThanOneAccountCanGoOffline;
- (void)disconnectAllAccounts:(id)fp8;
- (void)connectAllAccounts:(id)fp8;
- (void)connectThisAccount:(id)fp8;
- (void)disconnectThisAccount:(id)fp8;
- (void)disconnectAllAccountsFromContextMenu:(id)fp8;
- (void)connectAllAccountsFromContextMenu:(id)fp8;
- (void)connectThisAccountFromContextMenu:(id)fp8;
- (void)disconnectThisAccountFromContextMenu:(id)fp8;
- (void)connectAllAccountsFromToolbar:(id)fp8;
- (void)disconnectAllAccountsFromToolbar:(id)fp8;
- (void)toggleAccountOnlineStatus:(id)fp8;
- (void)performSynchronizationForAccounts:(id)fp8;
- (void)synchronizeAccount:(id)fp8;
- (void)_networkConfigurationChanged:(id)fp8;
- (void)handleNetworkConfigurationChange;
- (void)_emailAddressesApproved:(id)fp8;
- (void)_emailsRejected:(id)fp8;
- (void)showConnectionDoctor:(id)fp8;
- (void)showInfoPanel:(id)fp8;
- (void)showComposeWindow:(id)fp8;
- (void)newViewerWindow:(id)fp8;
- (void)selectMailbox:(id)fp8;
- (void)showAddressPanel:(id)fp8;
- (void)showAddressHistoryPanel:(id)fp8;
- (void)showSearchPanel:(id)fp8;
- (void)findNext:(id)fp8;
- (void)findPrevious:(id)fp8;
- (void)showActivityViewer:(id)fp8;
- (void)showPreferencesPanel:(id)fp8;
- (void)addAccount:(id)fp8;
- (void)importMailboxes:(id)fp8;
- (void)showReleaseNotes:(id)fp8;
- (void)showAccountInfo:(id)fp8;
- (void)alwaysSendWindowsFriendlyAttachments:(id)fp8;
- (void)sendWindowsFriendlyAttachments:(id)fp8