词条 | Maildir |
释义 |
The Maildir e-mail format is a common way of storing e-mail messages, where each message is kept in a separate file with a unique name, and each folder is a directory. The local filesystem handles file locking as messages are added, moved and deleted. A major design goal of Maildir is to eliminate program code having to handle locking, which is often difficult.[1] SpecificationsA Maildir directory (often named MaildirThe original Maildir specification was written by Daniel J. Bernstein, the author of qmail, djbdns, and other software. Although the original specification was written specifically for Bernstein's qmail, it is general enough to be implemented in many programs. Maildir++Sam Varshavchik, the author of the Courier Mail Server and other software, wrote an extension[3][4] to the Maildir format called Maildir++ to support subfolders and mail quotas. Maildir++ directories contain subdirectories with names that start with a '.' (dot) that are also Maildir++ folders. This extension is not a violation of the Maildir specification, which explicitly provides for the possibility to add more than tmp, new, cur to a maildir. Technical operationThe program that delivers an email message, a mail delivery agent, writes it to a file in the
As of November 2018, Bernstein had made no further changes to these filename generation recommendations.[12] The delivery process stores the message in the maildir by creating and writing to When a cognizant maildir reading process (either a POP or IMAP server, or a mail user agent acting locally) finds messages in the Although Maildir was intended to allow lockless usage, in practice some software that uses Maildirs also uses locks, such as Dovecot.[17] Filesystem Compatibility IssuesThe Maildir standard can only be implemented on systems that accept colons in filenames. Systems that don't allow colons in filenames (This includes Microsoft Windows and some configurations of Novell Storage Services.) can use an alternative separator, such as ";", or "-". It is often trivial to patch free and open source software to use a different separator.[18] As there is currently no agreement on what character this alternative separator should be, there can be interoperability difficulties between different Maildir-supporting programs on these systems. However, not all Maildir-related software needs to know what the separator character is, because not all Maildir-related software needs to be able to read or modify the flags of a message ("read", "replied to" etc.); software that merely delivers to a Maildir, or archives old messages from it based only on date, should work no matter what separator is in use. If only the MUA needs to read or modify message flags, and only one is used, then non-standard alternative separators may be used without interoperability problems. Software that supports Maildir directlyMail servers
Delivery agents
Mail readers
Notes and references1. ^1 2 {{cite web |first=Daniel J. |last=Bernstein. |author-link=Daniel J. Bernstein |year=2003|url=http://cr.yp.to/proto/maildir.html |title=Using maildir format |archive-url=https://web.archive.org/web/20030401082238/https://cr.yp.to/proto/maildir.html |archive-date=2003-04-01 |orig-year=The earliest version of this document was first published in 2000 or earlier |dead-url=no |access-date=2018-11-23}} [1][2][3][4][5][6][7][8][9][10][11]2. ^1 {{cite web |url=https://web.archive.org/cdx/search/cdx?url=cr.yp.to/proto/maildir.html |publisher=Internet Archive |access-date=2018-11-23 |title=Wayback Machine snapshots of cr.yp.to/proto/maildir.html |year=2018}} 3. ^1 2 {{cite web |url=http://www.courier-mta.org/maildir.html |title=maildir |author=Sam Varshavchik |year=2009 |access-date=24 July 2016}} 4. ^1 {{cite mailing list |url=http://www.mail-archive.com/courier-users@lists.sourceforge.net/msg38512.html |title=Management of maildir structures |date=25 July 2016 |accessdate=26 July 2016 |mailing-list=courier-users |author=Sam Varshavchik }} 5. ^1 {{cite web |url=http://www.courier-mta.org/imap/README.maildirquota.html |title=Maildir++ |author=Sam Varshavchik |year=2011 |access-date=24 July 2016}} 6. ^1 2 Dovecot Wiki: maildir format 7. ^1 mutt maildir support: workaround for filesystems that don't accept colons 8. ^1 {{cite web |url=https://wiki2.dovecot.org/MailboxFormat/Maildir?action=diff&rev1=11&rev2=12 |title=Diff for 'MailboxFormat/Maildir' |first=Timo |last=Sirainen |author-link=Timo Sirainen |access-date=2018-11-23 |date=2006-12-05}} 9. ^1 {{cite web |url=https://wiki2.dovecot.org/MailboxFormat/Maildir?action=diff&rev1=13&rev2=14 |title=Diff for 'MailboxFormat/Maildir' |first=Timo |last=Sirainen |author-link=Timo Sirainen |access-date=2018-11-23 |date=2006-12-05}} 10. ^1 {{cite web |url=http://pubs.opengroup.org/onlinepubs/9699919799/functions/rename.html |title=rename |author= |year=2013 |publisher=The Open Group |access-date=23 July 2016 |quote=That specification requires that the action of the function be atomic.}} 11. ^1 2 {{cite web |archive-url=https://web.archive.org/web/19971012032244/http://www.qmail.org:80/qmail-manual-html/man5/maildir.html |url=http://www.qmail.org/qmail-manual-html/man5/maildir.html |first=Daniel J. |last=Bernstein |author-link=Daniel J. Bernstein |title=maildir(5) |archive-date=1997-10-12 |year=1995 |access-date=2018-11-23 |dead-url=no}} }} See also
External links
1 : Email storage formats |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。