[Dovecot] [1.0.rc6] Bug in deliver (still exists)
Hi,
The bug reported in http://dovecot.org/list/dovecot/2006-July/014786.html still exists in 1.0.rc6
% grep "$ ./configure" dovecot-1.0.rc6/config.log $ ./configure --prefix=/srv/software/dovecot
Install prefix ...................... : /srv/software/dovecot File offsets ........................ : 64bit I/O loop method ..................... : poll File change notification method ..... : dnotify Building with SSL support ........... : no Building with IPv6 support .......... : yes Building with pop3 server ........... : yes Building with mail delivery agent .. : yes Building with GSSAPI support ........ : no Building with user database modules . : static prefetch passwd passwd-file checkpassword (modules) Building with password lookup modules : passwd passwd-file shadow checkpassword (modules) Building with SQL drivers ............:
I'm letting 'qmail' deliver one copy of the message and dovecot's 'deliver' another copy to the same maildir.
% cat /home/csa/.qmail |preline /srv/software/dovecot/libexec/dovecot/deliver ./Maildir/
Then I'm sending this mail to myself. % cat /tmp/mail.txt From: csa@csa-net.dk To: csa@csa-net.dk Subject: Test mail
Testing - mail
From csa@csa-net.dk Mon Aug 07 08:01:49 2006 This part of the body will be zapped by Dovecot's deliver... This is bad....
Injecting the message: % cat /tmp/mail.txt | /var/qmail/bin/qmail-inject
Having qmail process the message: % sudo /var/qmail/rc status: local 0/10 remote 0/20 new msg 1596241 info msg 1596241: bytes 364 from csa@csa-net.dk qp 23105 uid 1000 starting delivery 1: msg 1596241 to local csa@csa-net.dk status: local 1/10 remote 0/20 delivery 1: success: did_1+0+1/ status: local 0/10 remote 0/20 end msg 1596241
Looking at the result: % cd /home/csa/Maildir/new/
% ls -l total 8 -rw------- 1 csa csa 423 2006-08-07 10:21 1154938875.23114.silver -rw------- 1 csa csa 334 2006-08-07 10:21 1154938875.P23113Q0M326713.silver
First one (delivered by 'qmail') looks good: % cat 1154938875.23114.silver Return-Path: csa@csa-net.dk Delivered-To: csa@csa-net.dk Received: (qmail 23105 invoked by uid 1000); 7 Aug 2006 08:21:02 -0000 Date: 7 Aug 2006 08:21:02 -0000 Message-ID: 20060807082102.23104.qmail@csa-net.dk From: csa@csa-net.dk To: csa@csa-net.dk Subject: Test mail
Testing - mail
From csa@csa-net.dk Mon Aug 07 08:01:49 2006 This part of the body will be zapped by Dovecot's deliver... This is bad....
/Claus A
Second one (delivered by Dovecot's 'deliver') doesn't look good: % cat 1154938875.P23113Q0M326713.silver
From csa@csa-net.dk Mon Aug 07 08:21:15 2006 Return-Path: csa@csa-net.dk Delivered-To: csa@csa-net.dk Received: (qmail 23105 invoked by uid 1000); 7 Aug 2006 08:21:02 -0000 Date: 7 Aug 2006 08:21:02 -0000 Message-ID: 20060807082102.23104.qmail@csa-net.dk From: csa@csa-net.dk To: csa@csa-net.dk Subject: Test mail
Testing - mail
As we see, Dovecot's 'deliver' zapped everything in the message from and including the MBOX From line....
If more info is needed, please let me know.
Regards /Claus A
On 2006-08-07 12:55:28 +0200, Claus Alboege wrote:
The bug reported in http://dovecot.org/list/dovecot/2006-July/014786.html still exists in 1.0.rc6
% grep "$ ./configure" dovecot-1.0.rc6/config.log $ ./configure --prefix=/srv/software/dovecot
Install prefix ...................... : /srv/software/dovecot File offsets ........................ : 64bit I/O loop method ..................... : poll File change notification method ..... : dnotify Building with SSL support ........... : no Building with IPv6 support .......... : yes Building with pop3 server ........... : yes Building with mail delivery agent .. : yes Building with GSSAPI support ........ : no Building with user database modules . : static prefetch passwd passwd-file checkpassword (modules) Building with password lookup modules : passwd passwd-file shadow checkpassword (modules) Building with SQL drivers ............:
I'm letting 'qmail' deliver one copy of the message and dovecot's 'deliver' another copy to the same maildir.
% cat /home/csa/.qmail |preline /srv/software/dovecot/libexec/dovecot/deliver ./Maildir/
Then I'm sending this mail to myself. % cat /tmp/mail.txt From: csa@csa-net.dk To: csa@csa-net.dk Subject: Test mail
Testing - mail
i just tested it here postfix + dovecot-lda dont show that behavior.
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
Hi,
Marcus Rueckert rueckert@informatik.uni-rostock.de writes:
On 2006-08-07 12:55:28 +0200, Claus Alboege wrote:
The bug reported in http://dovecot.org/list/dovecot/2006-July/014786.html still exists in 1.0.rc6
% grep "$ ./configure" dovecot-1.0.rc6/config.log $ ./configure --prefix=/srv/software/dovecot
Install prefix ...................... : /srv/software/dovecot File offsets ........................ : 64bit I/O loop method ..................... : poll File change notification method ..... : dnotify Building with SSL support ........... : no Building with IPv6 support .......... : yes Building with pop3 server ........... : yes Building with mail delivery agent .. : yes Building with GSSAPI support ........ : no Building with user database modules . : static prefetch passwd passwd-file checkpassword (modules) Building with password lookup modules : passwd passwd-file shadow checkpassword (modules) Building with SQL drivers ............:
I'm letting 'qmail' deliver one copy of the message and dovecot's 'deliver' another copy to the same maildir.
% cat /home/csa/.qmail |preline /srv/software/dovecot/libexec/dovecot/deliver ./Maildir/
Then I'm sending this mail to myself. % cat /tmp/mail.txt From: csa@csa-net.dk To: csa@csa-net.dk Subject: Test mail
Testing - mail
i just tested it here postfix + dovecot-lda dont show that behavior.
If the above was all you saw of my original email, then your setup show the exact same behavior :-)
For people using dovecot's 'deliver' my original message can be seen here:
http://csa-net.dk/dovecot-deliver.txt
The web arvhive of this list on dovecot.org doesn't show my entire message either...
Timo, I'll test the CVS version, and report back later tonight.
/Claus A
On 2006-08-07 16:21:04 +0200, Claus Alboege wrote:
If the above was all you saw of my original email, then your setup show the exact same behavior :-)
For people using dovecot's 'deliver' my original message can be seen here:
http://csa-net.dk/dovecot-deliver.txt
The web arvhive of this list on dovecot.org doesn't show my entire message either...
Timo, I'll test the CVS version, and report back later tonight.
that that might be a different issue. but forward as attachment from mutt didnt break it here.
updating the dovecot-snapshot rpm for suse users. :)
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
On 7.8.2006, at 13.55, Claus Alboege wrote:
The bug reported in http://dovecot.org/list/dovecot/2006-July/014786.html still exists in 1.0.rc6
Hmm.. It's because internally Dovecot creates an mbox stream from the
input mail so it's easier to handle it. I didn't think of extra
correct looking From-lines in messages..
The correct way to do this would be to add support for some kind of
"plain" mailbox format which allows treating one file/stream as one
message, but since that's not that simple to implement, I guess I'll
add some kludge to mbox code which makes it read only the first From-
line and ignore the rest.
On Mon, 2006-08-07 at 15:06 +0300, Timo Sirainen wrote:
On 7.8.2006, at 13.55, Claus Alboege wrote:
The bug reported in http://dovecot.org/list/dovecot/2006-July/014786.html still exists in 1.0.rc6
Hmm.. It's because internally Dovecot creates an mbox stream from the
input mail so it's easier to handle it. I didn't think of extra
correct looking From-lines in messages..The correct way to do this would be to add support for some kind of
"plain" mailbox format which allows treating one file/stream as one
message, but since that's not that simple to implement, I guess I'll
add some kludge to mbox code which makes it read only the first From- line and ignore the rest.
Implemented the kludge in CVS.
Hi,
Timo Sirainen tss@iki.fi writes:
On Mon, 2006-08-07 at 15:06 +0300, Timo Sirainen wrote:
On 7.8.2006, at 13.55, Claus Alboege wrote:
The bug reported in http://dovecot.org/list/dovecot/2006-July/014786.html still exists in 1.0.rc6
Hmm.. It's because internally Dovecot creates an mbox stream from the
input mail so it's easier to handle it. I didn't think of extra
correct looking From-lines in messages..The correct way to do this would be to add support for some kind of
"plain" mailbox format which allows treating one file/stream as one
message, but since that's not that simple to implement, I guess I'll
add some kludge to mbox code which makes it read only the first From- line and ignore the rest.Implemented the kludge in CVS.
Works fine, thanks :)
/Claus A
participants (3)
-
Claus Alboege
-
Marcus Rueckert
-
Timo Sirainen