maildir, how to always add size tags to filename (,S=).
Hi There,
I have thoroughly read through documentation and wiki and I simply cannot find how to force dovecot to always add the size tag to the filename when using maildir format.
We are using dovecot 2.2.9 (whatever comes from ubuntu 14.04 LTS). We are using dovecot in conjunction with exim with maidirsize file enabled and maildir quotas.
For example exim has following configuration:
maildir_tag = ,S=$message_size
Which adds the size to the filename of the message. This has enormous (orders of magnitude) performance benefit as to calculate quota one does not need to stat every single file (only getents for each directory).
I have wrote a script that adds the size tag retrospectively to files it didn't had it, and rebuild the dovecot index/cache if changes where made. This worked fine.
Behaviour of dovecot is very peculiar: it generally adds the ,S= tag (along with ,W= tag) but occasionally it does not (I wander if it depends on the IMAP client).
Is there anyway to force dovecot to add size tag to the files (like with exim example above)?
Thank you very much.
Sergei.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 27 May 2015, Sergei Franco wrote:
Behaviour of dovecot is very peculiar: it generally adds the ,S= tag (along with ,W= tag) but occasionally it does not (I wander if it depends on the IMAP client).
Please try to find out how this message arrived your system:
LDA, LMTP, IMAP APPEND, ...
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVYK03Xz1H7kL/d9rAQLQ4gf9FN7ulXXAIFKqjuYhFSVvCh59uL/l/lEe VvAhnyQcg5lemJ/b6U6Au6lvkLrJXYIoWJyKbpskmis5FCbL5pvR0GY6vDSkz14a xL34CUbJxhz99MRJwRJajZVcVZrDg5Q4RZwpcp1JTujvTXgURNzYLSG7VZdzKed6 rIKEHR4sI4meh07RUFPjpXdWD2HRsiurb708DBhjkeHDrehkVGlu1YHS2LIUiZI9 S+wzlwJzQCBqMA9zIF2IZiQRN3CPc2LM2WIVN9RbF1toY3U7hp+yZsITo1ROjvVF YoJQVk8ZCbNGH7LLZeXRMA+rNgCLL8bg/x+2xvW0FaThKnFqu5GdyA== =j8kt -----END PGP SIGNATURE-----
Hi,
the messages are delivered by exim that append maildir tag. That is easily confirmed that they do not miss messages as the hostname of the servers is in the mailidir file. When we switched the tagging on, occasional messages that were manipulated by IMAP (dovecot) did not get tagged, ie: the message was "uploaded" by clients without tags. I noticed this behaviour specifically when their other messages were not tagged.
At this stage I see no untagged messages, as I wrote a script that renamed every single maildir file on the system to have tags. I am not sure what is the logic behind tagging messages in dovecot, perhaps someone can point me to the relevant source file?
Sergei.
On 19/06/15 00:09, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 27 May 2015, Sergei Franco wrote:
Behaviour of dovecot is very peculiar: it generally adds the ,S= tag (along with ,W= tag) but occasionally it does not (I wander if it depends on the IMAP client).
Please try to find out how this message arrived your system:
LDA, LMTP, IMAP APPEND, ...
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVYK03Xz1H7kL/d9rAQLQ4gf9FN7ulXXAIFKqjuYhFSVvCh59uL/l/lEe VvAhnyQcg5lemJ/b6U6Au6lvkLrJXYIoWJyKbpskmis5FCbL5pvR0GY6vDSkz14a xL34CUbJxhz99MRJwRJajZVcVZrDg5Q4RZwpcp1JTujvTXgURNzYLSG7VZdzKed6 rIKEHR4sI4meh07RUFPjpXdWD2HRsiurb708DBhjkeHDrehkVGlu1YHS2LIUiZI9 S+wzlwJzQCBqMA9zIF2IZiQRN3CPc2LM2WIVN9RbF1toY3U7hp+yZsITo1ROjvVF YoJQVk8ZCbNGH7LLZeXRMA+rNgCLL8bg/x+2xvW0FaThKnFqu5GdyA== =j8kt -----END PGP SIGNATURE-----
participants (3)
-
sergei
-
Sergei Franco
-
Steffen Kaiser