⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmdf.man

📁 mutt-1.5.12 源代码。linux 下邮件接受的工具。
💻 MAN
字号:
.\" Project   : tin.\" Module    : mmdf.5.\" Author    : U. Janssen.\" Created   : 2002-02-18.\" Updated   :.\" Notes     : needs a lot of work.\".TH mmdf 5 "February 18th, 2002" "Unix" "User Manuals".\".SH NAMEMMDF \- Multi\-channel Memorandum Distribution Facility mailbox format.\".SH DESCRIPTIONThis document describes the.B MMDFmailbox format used by some MTAs and MUAs (i.e..BR scomail (1))to store mail messages locally..PPAn.B MMDFmailbox is a text file containing an arbitrary number of e-mail messages.Each message consists of a postmark, followed by an e-mail message formattedaccording to \fBRFC822\fP / \fBRFC2822\fP, followed by a postmark. The fileformat is line-oriented. Lines are separated by line feed characters (ASCII10). A postmark line consists of the four characters "^A^A^A^A" (Control-A;ASCII 1)..TPExample of a \fBMMDF\fP mailbox holding two mails:.RS.nf.sp^A^A^A^A.brFrom: example@example.com.brTo: example@example.org.brSubject: test.br.sp.br>From what I learned about the MMDF-format:.br....br^A^A^A^A.br^A^A^A^A.brFrom: example@example.com.brTo: example@example.org.brSubject: test 2.br.sp.brbar.br^A^A^A^A.fi.RE.PPIn contrast to most other single file mailbox formats likeMBOXO and MBOXRD (see.BR mbox (5))there is no need to quote/dequote "From "-lines in.B MMDFmailboxes as such lines have no special meaning in this format..PPIf the modification-time (usually determined via.BR stat (2))of a nonempty mailbox file is greater than the access-timethe file has new mail. Many MUAs place a Status: header ineach message to indicate which messages have already beenread..\".SH LOCKINGSince.B MMDFfiles are frequently accessed by multiple programs in parallel,.B MMDFfiles should generally not be accessed without locking..PPThree different locking mechanisms (and combinations thereof) are ingeneral use:.IP "\(bu".BR fcntl (2)locking is mostly used on recent, POSIX-compliant systems. Use ofthis locking method is, in particular, advisable if.B MMDFfiles are accessed through the Network File System (NFS), since itseems the only way to reliably invalidate NFS clients' caches..IP "\(bu".BR flock (2)locking is mostly used on BSD-based systems..IP "\(bu"Dotlocking is used on all kinds of systems. In order to lock an.B MMDFfile named \fIfolder\fR, an application first creates a temporary filewith a unique name in the directory in which the\fIfolder\fR resides. The application then tries to use the.BR link (2)system call to create a hard link named \fIfolder.lock\fRto the temporary file. The success of the.BR link (2)system call should be additionally verified using.BR stat (2)calls. If the link has succeeded, the mail folder is considereddotlocked. The temporary file can then safely be unlinked..IP ""In order to release the lock, an application just unlinks the\fIfolder.lock\fR file..PPIf multiple methods are combined, implementors should make sure touse the non-blocking variants of the.BR fcntl (2)and.BR flock (2)system calls in order to avoid deadlocks..PPIf multiple methods are combined, an.B MMDFfile must not be considered to have been successfully locked beforeall individual locks were obtained. When one of the individuallocking methods fails, an application should release all locks itacquired successfully, and restart the entire locking procedure fromthe beginning, after a suitable delay..PPThe locking mechanism used on a particular system is a matter oflocal policy, and should be consistently used by all applicationsinstalled on the system which access.B MMDFfiles. Failure to do so may result in loss of e-mail data, and incorrupted.B MMDFfiles..\".\" .SH FILES.\" /usr/spool/mmdf/lock/home.\" $HOME/Mail/.\".\" .SH SECURITY.\".SH "CONFORMING TO".B MMDFis not part of any currently supported standard..\".SH HISTORY.B MMDFwas developed at the University of Delaware by Dave Crocker..\".SH "SEE ALSO".BR scomail (1),.BR fcntl (2),.BR flock (2),.BR link (2),.BR stat (2),.BR mbox (5),.BR RFC822 ,.BR RFC2822.SH AUTHORUrs Janssen <urs@tin.org>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -