amalfra / maildir

A Go package for reading & writing messages in maildir format
MIT License
17 stars 1 forks source link

How can I get sie and vsize, Thank you #4

Open xdkaka opened 1 year ago

xdkaka commented 1 year ago

Dovecot supports reading a few fields from the :

,S=: contains the file size. Getting the size from the filename avoids doing a system stat() call, which may improve the performance. This is especially useful with Quota Backend: maildir.

,W=: contains the file’s RFC822.SIZE, i.e., the file size with linefeeds being CR+LF characters. If the message was stored with CR+LF linefeeds, and are the same. Setting this may give a small speedup because now Dovecot doesn’t need to calculate the size itself.

amalfra commented 1 year ago

@xdkaka This lib unfortunately doesn't support that. It's created to do only basic operations like reading and writing messages.