[Dovecot] Log file name too with mail_log
Timo Sirainen
tss at iki.fi
Sun Sep 30 14:12:29 EEST 2007
On Thu, 2007-09-27 at 18:35 -0300, "Fábio M. Catunda" wrote:
> Hi!
>
> Is there a way to log the file that have been copied when a person move
> it from a folder to another using mail_log?
>
> Actualy this is what I get in logfile:
> dovecot: 2007-09-27 15:15:33 Info: IMAP(user at mydomain.com): copy ->
> Spam: uid=101, msgid=<46FBC6C9.1060301 at somedomain.com>, box=Dovecot
>
> What I would like to have is something like:
> dovecot: 2007-09-27 15:15:33 Info: IMAP(catunda at mydomain.com): copy ->
> Spam: uid=101, file=/cur/1190916950.P15981Q38M976125.mydomain.com:2,S,
> box=Dovecot
Having file=1190916950.P15981Q38M976125.mydomain.com logged would be
possible, but I don't really like adding maildir-specific features
there..
Why do you even want it? The filename is going to be different in the
destination mailbox anyway (unless maildir_copy_preserve_filename=yes)
and it's pretty easy to find out in the source mailbox with the UID:
grep '^101\b' dovecot-uidlist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070930/bed719e6/attachment.bin
More information about the dovecot
mailing list