[Dovecot] Bug in Deliver v1.2
Steffen Kaiser
skdovecot at smail.inf.fh-brs.de
Mon Feb 2 13:15:47 EET 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
if deliver is started with:
deliver -f sender -d user
(no -a option) and no Envelope-To header exists in the mail, two problems
show up in this block in main():
if (destaddr == NULL) {
destaddr = deliver_get_address(mail, "Envelope-To");
if (destaddr == NULL) {
destaddr = strchr(user, '@') == NULL ? user :
t_strconcat(user, "@",
deliver_set->hostname, NULL);
}
}
1) deliver_get_address(mail, "Envelope-To")
returns the argument of the -f option.
2) if no Envelope-To header is available, destaddr gets assigned
user at hostname if user contains a domain already.
Attached patches propose fixes for the problems.
Bye,
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSYbV5XWSIuGy1ktrAQJbKAgAut1Ix+lg2643lr6N6sSfRqkTPexloT7i
MrUDE8R8wZUVxA/SpemebMOph4lIGEKlnSFA4R5a69oZIJT96ieyZ0Hsi4ueMO1c
zNA3uBg3+0lo/9v7Ro7T7pPMvAsgybIrEWId0uq+YFAhNIQmqQp220cqNhzXwse/
G3UN7+BczhZS400uz88rgPzknewHr8Kl//bz7BBlPkQWhuVDRqk2sAezPQvUJqzI
zzhccp2SHyFtBX3ija3Fc16uEbhTF+cmhNTvgIPDH1rmS7tcPhwFCM0HUGrBRwb2
zsn+JtHlSOl530pnO6ppyTdB7kac46RgbquFcLuLeHwBg1zdlh5ang==
=xE9p
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deliver-1.2.tgz
Type: application/x-gtar
Size: 936 bytes
Desc:
Url : http://dovecot.org/pipermail/dovecot/attachments/20090202/7ad7c6e6/attachment.gtar
More information about the dovecot
mailing list