dovecot - Maildir 內的 file

最後更新: 2018-05-04

File

  • dovecot.index.cache
  • dovecot.index.log
  • dovecot.index.log.2
  • dovecot-acl-list
  • dovecot-uidlist
  • dovecot-keywords

 


File

 

dovecot-uidlist

裡面的內容是 permanent unique UID <---> 檔名的對應

基本上它與 courierimapuiddb 一樣

If the messages get new UIDs, the IMAP clients will invalidate their local cache and

download the messages all over again.

 * 在 IMAP 上, 每一封信都有獨立的 UID

Example:

# V3

3 V1446660062 N891 Gc9411e16de473a566f06000061f01900
891 :1511442247.M529702P32470.mail.datahunter.org,S=201,W=206
892 :1511442438.M141759P32632.mail.datahunter.org,S=201,W=206

第一行第一列: format version

 

dovecot-keywords:

filename flag (a..z = 0..25) <-> keyword name mapping

The mapping from single letters to keyword names is stored in dovecot-keywords file.

dovecot.index:

Main index file

IMAP UID
Current flags and keywords
Pointer to cache file

dovecot.index.cache

Cached mailbox data

Message headers
Sent, Received date
Physical and virtual message sizes
Message's parsed MIME structure, allowing to quickly read only a specific MIME part
IMAP's BODY and BODYSTRUCTURE fields

dovecot.index.log

Transaction log file

All changes to the main index go through transaction log first.

dovecot.index.log.2

.log file is rotated to .log.2 file when it grows too large.

dovecot-acl-list

file lists all mailboxes that have "l" rights assigned.

 


Telnet  測試

 

當帳戶 login 成功後, eml 會由 new 目錄移至 cur 目錄內

之後新入到 new/cur 的 mail 都 STAT/LIST 唔到

直到 quit 時, new 內的 eml 才會入回 cur

retr 過的 eml 會在 quit 時在檔尾加上 "S", 代表已被看過

 


Doc

http://wiki2.dovecot.org/MailboxFormat/Maildir