Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Mbox

From Wikipedia, the free encyclopedia
Family of email-related file formats
For the Wikipedia template, seeTemplate:Mbox.
Not to be confused withXbox.
This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages)
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Mbox" – news ·newspapers ·books ·scholar ·JSTOR
(March 2021) (Learn how and when to remove this message)
This articlemay be too technical for most readers to understand. Pleasehelp improve it tomake it understandable to non-experts, without removing the technical details.(March 2021) (Learn how and when to remove this message)
This article needs to beupdated. Please help update this article to reflect recent events or newly available information.(March 2021)
(Learn how and when to remove this message)


Mbox is a generic term for a family of relatedfile formats used for holding collections ofemail messages. It was first implemented inFifth Edition Unix.

All messages in an mbox mailbox areconcatenated and stored asplain text in a single file. Each message starts with the four characters "From" followed by a space (the so-called "From_ line") and the sender's email address. RFC 4155 defines that aUTC timestamp follows after another separating space character.[1]

A format similar to mbox is theMH Message Handling System. Other systems, such asMicrosoft Exchange Server and theCyrus IMAP server, store mailboxes in centralized databases managed by the mail system and not directly accessible by individual users. Themaildir mailbox format is often cited as an alternative to thembox format for networked email storage systems.

Mail storage protocols

[edit]

Unlike the Internet protocols used for the exchange of email, the format used for the storage of email has never been formally defined through theRFC standardization mechanism and has been entirely left to the developer of an email client. However, thePOSIX standard defined a loose framework in conjunction with themailx program. In 2005, the application/mbox media type was standardized as RFC 4155, which hinted that mbox stores mailbox messages in their original Internet Message (RFC 2822) format, except for the used newline character, seven-bit clean data storage, and the requirement that each newly added message is terminated with a completely empty line within the mbox database.[1][2]

File locking

[edit]
This section has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages)
This sectiondoes notcite anysources. Please helpimprove this section byadding citations to reliable sources. Unsourced material may be challenged andremoved.(March 2021) (Learn how and when to remove this message)
This sectionmay be too technical for most readers to understand. Pleasehelp improve it tomake it understandable to non-experts, without removing the technical details.(March 2021) (Learn how and when to remove this message)
(Learn how and when to remove this message)

Because more than one messages are stored in a single file, some form offile locking is needed to avoid the corruption that can result from two or more processes modifying the mailbox simultaneously. This could happen if a network email delivery program delivers a new message at the same time as a mail reader is deleting an existing message.

Various mutually incompatible mechanisms have been used by different mbox formats to enable message file locking, includingfcntl() andlockf(). This does not work well with network mounted file systems, such as theNetwork File System (NFS), which is why traditionally Unix used additional "dot lock" files, which could be created atomically even over NFS.

Mbox files should also be locked while they are being read. Otherwise, the reader may see corrupted message contents if another process is modifying the mbox at the same time, even though no actual file corruption occurs.

As a patch format

[edit]

Inopen source development, it is common to sendpatches in thediff format to amailing list for discussion. The diff format allows for irrelevant "headers", such as mbox data, to be added.[3][4]Version control systems likegit have support for generating mbox-formatted patches and for sending them to the list as emails in a thread.[5][6]

See also

[edit]

References

[edit]
  1. ^abHall, E., ed. (September 2005)."Request for Comments: 4155 – The application/mbox Media Type".Internet Engineering Task Force.Archived from the original on 17 May 2021. Retrieved17 May 2021.
  2. ^Resnick, P., ed. (April 2001)."Request for Comments: 2822 – Internet Message Format".Internet Engineering Task Force.Archived from the original on 31 March 2023. Retrieved17 May 2021.
  3. ^"Submitting patches: the essential guide to getting your code into the kernel — The Linux Kernel documentation".www.kernel.org.Archived from the original on 2019-10-27. Retrieved2020-03-03.
  4. ^Randal, Allison; Sugalski, Dan; Tötsch, Leopold (2003). "Patch submission".Perl 6 Essentials. O'Reilly Media, Inc. p. 14.ISBN 978-0-596-00499-6.
  5. ^"Git - git-format-patch Documentation".git-scm.com.Archived from the original on 2020-03-07. Retrieved2020-03-03.
  6. ^"Git - git-send-email Documentation".git-scm.com.Archived from the original on 2020-02-21. Retrieved2020-03-03.

Further reading

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Mbox&oldid=1321667927"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp