AMPlugin Class Reference
| Inherits from | NSObject |
| Declared in | AMPlugin.h AMPlugin.m |
Tasks
Other Methods
-
pathproperty -
bundleproperty -
preferencesproperty -
myViewproperty -
– initWithbundle:parh: -
– Load -
– pluginview -
– nametext -
– descriptiontext -
– authortext -
– versiontext -
– supportlink -
– icon -
– LogError: -
– LogTrace: -
– Enable -
– Disable -
– Invalid -
– Reload -
– loadImage: -
– suggestedpath -
– identifier -
– SavePreferences -
– preferencesPath -
– suggestedpathContents -
– bundlepathContents -
– Accounts -
– Folders: -
– OrderedFoldersWithStandardFirst: -
– ampUniqueComposerRenderHtml: -
– ampStackComposerRenderHtmlFromHtml:composerInfo: -
– ampMenuComposerItem: -
– ampPileComposerView: -
– ampPileChangedRecipients: -
– ampUniqueMessageRender: -
– ampStackMessageRenderFromHtml:message: -
– ampPileMessageView: -
– ampQueueNotify: -
– ampMenuActionItem: -
– ampRuleActionItem: -
– ampPileIsEncrypted: -
– ampStackDecrypt: -
– ampPileVerifySignature: -
– ampStackSendRfc:composer:
Other Methods
Instance Methods
Accounts
All Accounts of Airmail
- (NSArray *)AccountsReturn Value
an array of AMPAccount
Declared In
AMPlugin.hFolders:
All the folders for an account
- (NSArray *)Folders:(AMPAccount *)ampaccParameters
- ampacc
the account of the requested folders
Return Value
an array of AMPFolder
Declared In
AMPlugin.hLoad
The Load is called int the plugin init
- (BOOL)LoadReturn Value
Boolean if NO the plugin will not be loaded
Declared In
AMPlugin.hLogError:
Log an error
- (void)LogError:(NSString *)descParameters
- desc
text for the log
Declared In
AMPlugin.hLogTrace:
Trace log for debug
- (void)LogTrace:(NSString *)descParameters
- desc
text for the log
Declared In
AMPlugin.hOrderedFoldersWithStandardFirst:
All the folders for an account standard folders(inbox,starred,…) first
- (NSArray *)OrderedFoldersWithStandardFirst:(AMPAccount *)ampaccParameters
- ampacc
the account of the requested folders
Return Value
an array of AMPFolder
Declared In
AMPlugin.hSavePreferences
A method to save a preference (key,value) in a plist in the suggested path folder
- (BOOL)SavePreferencesReturn Value
Yes if successful
Declared In
AMPlugin.hampMenuActionItem:
The menu item that AM will add to the message menu
- (NSMenuItem *)ampMenuActionItem:(NSArray *)messagesParameters
- messages
the selected messages when the item is activated
Return Value
the menu item
Declared In
AMPlugin.hampMenuComposerItem:
The menu item that AM will add in the composer
- (NSMenuItem *)ampMenuComposerItem:(AMPComposerInfo *)infoReturn Value
the menu item
Declared In
AMPlugin.hampPileChangedRecipients:
Called on a recipients change in the composer
- (NSNumber *)ampPileChangedRecipients:(AMPComposerInfo *)infoParameters
- info
of the current composer
Return Value
void
Declared In
AMPlugin.hampPileComposerView:
Called to add a button on the composer
- (NSArray *)ampPileComposerView:(AMPComposerInfo *)infoParameters
- info
of the current composer
Return Value
the button to show
Declared In
AMPlugin.hampPileIsEncrypted:
Called to let AM know if the message is encrypted
- (NSNumber *)ampPileIsEncrypted:(AMPMCOMessageParser *)parserParameters
- the
parser of the rfc to analyze
Return Value
a Number with the amp_encryption_type
Declared In
AMPlugin.hampPileMessageView:
Get the a message and create an array of NSView to render in the bodyview
- (NSArray *)ampPileMessageView:(AMPMessage *)messageParameters
- message
the message to render
Return Value
the array of views to render
Declared In
AMPlugin.hampPileVerifySignature:
Called to verify the signature of the message
- (AMPSignatureVerify *)ampPileVerifySignature:(AMPMessage *)messageParameters
- the
message
Return Value
a Number with the amp_verify_signature value
Declared In
AMPlugin.hampQueueNotify:
Called after the standard AM notify. Is called for each message that AM will notify in the notification center
- (NSNumber *)ampQueueNotify:(AMPMessage *)messageParameters
- message
the message to notify
Return Value
a number with a boolean YES/NO
Declared In
AMPlugin.hampRuleActionItem:
Called as rule action
- (NSNumber *)ampRuleActionItem:(AMPMessage *)messageParameters
- message
the message filtered by the rule condition
Return Value
the Number for a bool if the rule is applied to the message
Declared In
AMPlugin.hampStackComposerRenderHtmlFromHtml:composerInfo:
Get the html for the new created composer
- (NSString *)ampStackComposerRenderHtmlFromHtml:(NSString *)html composerInfo:(AMPComposerInfo *)infoParameters
- info
of the current composer
Return Value
the html to render
Declared In
AMPlugin.hampStackDecrypt:
Called to decrypt the message
- (NSData *)ampStackDecrypt:(AMPMessage *)messageParameters
- the
message
Return Value
the decrypted rfc data to render
Declared In
AMPlugin.hampStackMessageRenderFromHtml:message:
Get the html from the html that AM create from a message, to render in the bodyview. Stack methods can be queued, so AM will call all the plugins with a stack method in a random order.
- (NSString *)ampStackMessageRenderFromHtml:(NSString *)html message:(AMPMessage *)messageParameters
- html
the html to process
Return Value
the html to render
Declared In
AMPlugin.hampStackSendRfc:composer:
Called to before to send a mail
- (AMPSendResult *)ampStackSendRfc:(NSString *)rfc composer:(AMPComposerInfo *)infoParameters
- the
builder of the rfc to change
Return Value
the builder of the rfc to send
Declared In
AMPlugin.hampUniqueComposerRenderHtml:
Get the html from a message to render in the composer Unique methods are called only one time from AM, if more than one plugin support Unique methods only one of them (randomly) will be used
- (NSString *)ampUniqueComposerRenderHtml:(AMPComposerInfo *)infoParameters
- info
the message to render
Return Value
the html to render
Declared In
AMPlugin.hampUniqueMessageRender:
Get the html from a message to render in the bodyview Unique methods are called only one time from AM, if more than one plugin support Unique methods only one of them (randomly) will be used
- (NSString *)ampUniqueMessageRender:(AMPMessage *)messageParameters
- message
the message to render
Return Value
info of the current composer
Declared In
AMPlugin.hauthortext
The plugin author (must override)
- (NSString *)authortextReturn Value
The author
Declared In
AMPlugin.hbundlepathContents
A list of the files under the plugin bundle resources
- (NSArray *)bundlepathContentsReturn Value
an array of paths
Declared In
AMPlugin.hdescriptiontext
A short description of the plugin (must override)
- (NSString *)descriptiontextReturn Value
the description
Declared In
AMPlugin.hidentifier
The plugin bundle identifier
- (NSString *)identifierReturn Value
the identifier
Declared In
AMPlugin.hloadImage:
laod an image from the plugin bundle
- (NSImage *)loadImage:(NSString *)imageNameReturn Value
the image
Declared In
AMPlugin.hnametext
The plugin name (must override)
- (NSString *)nametextReturn Value
the name
Declared In
AMPlugin.hpluginview
The view to show in the AM preference (must override)
- (AMPView *)pluginviewReturn Value
the view
Declared In
AMPlugin.hpreferencesPath
The path of the preference plist
- (NSString *)preferencesPathReturn Value
the path
Declared In
AMPlugin.hsuggestedpath
the suggested path for saving data
- (NSString *)suggestedpathReturn Value
the path
Declared In
AMPlugin.hsuggestedpathContents
A list of the files under the plugin data folder (suggested path)
- (NSArray *)suggestedpathContentsReturn Value
an array of paths
Declared In
AMPlugin.hsupportlink
The plugin support link (must override)
- (NSString *)supportlinkReturn Value
support link
Declared In
AMPlugin.hversiontext
The plugin version (from bundle)
- (NSString *)versiontextReturn Value
plugin version
Declared In
AMPlugin.h