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 at csa-net.dk To: csa at csa-net.dk Subject: Test mail Testing - mail>From csa at csa-net.dk Mon Aug 07 08:01:49 2006This 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 at csa-net.dk> qp 23105 uid 1000 starting delivery 1: msg 1596241 to local csa at 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 at csa-net.dk> Delivered-To: csa at 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 at csa-net.dk> From: csa at csa-net.dk To: csa at csa-net.dk Subject: Test mail Testing - mail>From csa at csa-net.dk Mon Aug 07 08:01:49 2006This 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 at csa-net.dk Mon Aug 07 08:21:15 2006Return-Path: <csa at csa-net.dk> Delivered-To: csa at 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 at csa-net.dk> From: csa at csa-net.dk To: csa at 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 at csa-net.dk > To: csa at csa-net.dk > Subject: Test mail > > Testing - maili 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
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.rc6Hmm.. 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20060807/562ac186/attachment.bin>