[Dovecot] Problems with deliver (LDA)
Hi,
I'm using Dovecot's (1.0.rc2) 'deliver' (no sieve) as LDA - calling it from a .qmail file.
It seems that 'deliver' destroys "message/rfc822" attachments (forward as attachment).
My .qmail file looks like this, and use qmail to deliver a copy directly to my Maildir, and 'deliver' to deliver a second copy of the same message to the same Maildir:
% cat .qmail ./Maildir/ |preline /usr/libexec/dovecot/deliver
After forwarding a message (as attachment) to my account, I get the following 2 files in my Maildir. Check the difference in size:
% ls -l Maildir/new -rw------- 1 csa csa 2818 2006-07-06 09:29 1152170973.7420.silver -rw------- 1 csa csa 1372 2006-07-06 09:29 1152170973.P7422Q0M136220.silver
Grepping for ^Content-* in the 2 mails show that a part is missing.
% cd Maildir/new % grep ^Content *
1152170973.7420.silver:23:Content-Type: multipart/mixed; 1152170973.7420.silver:28:Content-Type: text/plain; charset = "iso-8859-1" 1152170973.7420.silver:29:Content-Transfer-Encoding: quoted-printable 1152170973.7420.silver:34:Content-Type: message/rfc822; name="Testing" 1152170973.7420.silver:35:Content-Transfer-Encoding: 7bit 1152170973.7420.silver:36:Content-Disposition: attachment; filename="Testing" 1152170973.7420.silver:64:Content-Transfer-Encoding: quoted-printable 1152170973.7420.silver:65:Content-Type: text/plain; charset="iso-8859-1"
1152170973.P7422Q0M136220.silver:24:Content-Type: multipart/mixed; 1152170973.P7422Q0M136220.silver:29:Content-Type: text/plain; charset = "iso-8859-1" 1152170973.P7422Q0M136220.silver:30:Content-Transfer-Encoding: quoted-printable 1152170973.P7422Q0M136220.silver:35:Content-Type: message/rfc822; name="Testing" 1152170973.P7422Q0M136220.silver:36:Content-Transfer-Encoding: 7bit 1152170973.P7422Q0M136220.silver:37:Content-Disposition: attachment; filename="Testing"
(sorry for the long lines)
The offset in linenumbers is caused the the From line added by 'deliver'.
So, am I missing something here (execpt from the attachment) - is there anything in 'deliver' that could cause this behaviour?
Please let me know if you need further information or details.
Regards /Claus A
Hi,
Claus Alboege csa@csa-net.dk writes:
I'm using Dovecot's (1.0.rc2) 'deliver' (no sieve) as LDA - calling it from a .qmail file.
It seems that 'deliver' destroys "message/rfc822" attachments (forward as attachment).
[...]
% ls -l Maildir/new -rw------- 1 csa csa 2818 2006-07-06 09:29 1152170973.7420.silver -rw------- 1 csa csa 1372 2006-07-06 09:29 1152170973.P7422Q0M136220.silver
I've looked a bit further into this problem. On delivery 'deliver' adds a "From " (not "From: ") header. Why is that btw? - This is Maildir delivery.
Anyway, when a mail with a "From " header is forwarded as a "message/rfc822" attachment and delivered with 'deliver'. 'deliver' simply kills everything from the "From " line (in the "message/rfc822" attachment).
% grep -n -A6 "message/rfc822" 1152170973.7420.silver 34:Content-Type: message/rfc822; name="Testing" 35-Content-Transfer-Encoding: 7bit 36-Content-Disposition: attachment; filename="Testing" 37- 38-From csa@csa-net.dk Thu Jul 06 07:31:13 2006 39-Return-Path: csa@csa-net.dk 40-Delivered-To: csa@csa-net.dk %
% grep -n -A6 "message/rfc822" 1152170973.P7422Q0M136220.silver 35:Content-Type: message/rfc822; name="Testing" 36-Content-Transfer-Encoding: 7bit 37-Content-Disposition: attachment; filename="Testing" %
% wc -l 1152170973.* 79 1152170973.7420.silver 37 1152170973.P7422Q0M136220.silver
Any chance to get that fixed before Dovecot 1.0?
/Claus A
participants (1)
-
Claus Alboege