Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
Message.framework: Difference between revisions - iPhone Development Wiki

Message.framework: Difference between revisions

From iPhone Development Wiki
No edit summary
(fixing for the sake of uniformity)
 
Line 12: Line 12:


=== Mailbox ===
=== Mailbox ===
'''Mailbox'''es are email-storing "folders" in an account. Each mailbox has an associated URL like <tt>imap://user@imap.server.com/INBOX</tt> and <tt>as://user@server.com/uuid/Mail:DEFAULT</tt>. The database records only the number of total, unread and deleted downloaded messages.
'''Mailboxes''' are email-storing "folders" in an account. Each mailbox has an associated URL like <tt>imap://user@imap.server.com/INBOX</tt> and <tt>as://user@server.com/uuid/Mail:DEFAULT</tt>. The database records only the number of total, unread and deleted downloaded messages.


=== Messages ===
=== Messages ===
'''Message'''s are the actual emails. The metadata are stored in the <tt>messages</tt> and the actual messages themselves are in <tt>message_data</tt>, and if they're too big, the file system.  
'''Messages''' are the actual emails. The metadata are stored in the <tt>messages</tt> and the actual messages themselves are in <tt>message_data</tt>, and if they're too big, the file system.  


{{Navbox Classes}}
{{Navbox Classes}}
{{Navbox Frameworks}}
{{Navbox Frameworks}}

Latest revision as of 07:01, 21 January 2014

Message.framework
Private Framework
Availabile 2.0 – present
Headers [headers.cynder.me]


Message is the framework that manages mail messages.

Structure of Email messages storage

Email messages are mainly stored in the SQLite3 database ~/Library/Mail/Envelope Index (or anything returned in -[MailMessageLibrary defaultDatabasePath]), and supplemented by the file hierarchy in this directory. The correct database will be used only when you login as mobile.

The database has 6 tables, the main 3 are mailboxes, messages and message_data.

Mailbox

Mailboxes are email-storing "folders" in an account. Each mailbox has an associated URL like imap://user@imap.server.com/INBOX and as://user@server.com/uuid/Mail:DEFAULT. The database records only the number of total, unread and deleted downloaded messages.

Messages

Messages are the actual emails. The metadata are stored in the messages and the actual messages themselves are in message_data, and if they're too big, the file system.