maildir 邮件文件名 记录

根据 http://resin.csoft.net/cgi-bin/man.cgi?section=5&topic=maildir 总结下常用

默认情况下收到一封邮件,在cur目录下 生成的文件名为

1465266566.M802559P62166.localhost.localdomain,S=3683,W=3762:2,

对应

The name of the file in new should be "time.MusecPpidVdevIino.host,S=cnt", or "time.MusecPpidVdevIino_unique.host,S=cnt". "dev" is the message's device number, "ino" is the message's inode number (from the previous fstat(2) call); and "cnt" is the message's size, in bytes.

1465266566 是时间

M802559P62166 不清楚是啥

localhost.localdomain 主机名

S=3683 是文件大小,单位是bytes

W=3762:2, 这段没有说明

qmail+couier-imap 默认没看到这段,dovecot有这段,http://wiki.dovecot.org/MailboxFormat/Maildir

Look for new messages in the new subdirectory. Rename new/filename, as cur/filename:2,info. Here, info represents the state of the message, and it consists of zero or more boolean flags chosen from the following: "D" - this is a 'draft' message, "R" - this message has been replied to, "S" - this message has been viewed (seen), "T" - this message has been marked to be deleted (trashed), but is not yet removed (messages are removed from maildirs simply by deleting their file), "F" - this message has been marked by the user, for some purpose. These flags must be stored in alphabetical order. New messages contain only the :2, suffix, with no flags, indicating that the messages were not seen, replied, marked, or deleted.

http://cr.yp.to/proto/maildir.html 有详细说明

  • Flag "P" (passed): the user has resent/forwarded/bounced this message to someone else.
  • Flag "R" (replied): the user has replied to this message.
  • Flag "S" (seen): the user has viewed this message, though perhaps he didn't read all the way through it.
  • Flag "T" (trashed): the user has moved this message to the trash; the trash will be emptied by a later user action.
  • Flag "D" (draft): the user considers this message a draft; toggled at user discretion.
  • Flag "F" (flagged): user-defined flag; toggled at user discretion.

新信息默认只有**:2,前缀

查看邮件后,文件名变成 1465266566.M802559P62166.localhost.localdomain,S=3683,W=3762:2,S 回复该邮件后,文件名变成 1465266566.M802559P62166.localhost.localdomain,S=3683,W=3762:2,RS 保存到草稿箱,文件名变成 1465267912.M313889P61446.localhost.localdomain,S=1356,W=1392:2,DS

转载于:https://my.oschina.net/hxily/blog/688073

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值