[imp] Re: Bug#116111: imp: Address headers containing realnames get mungled, impossible to save sent messages

Steeman Philip philip.steeman@kh.khbo.be
Fri, 26 Oct 2001 18:03:27 +0200


I think it is the same problem I had. There is a bug in the newest
PHP-versions with the imap_rfc822_parse_adrlist function. That functions
alters its parameter (puts a null-char in between).
I have reported it to the buglist of PHP, for the moment with no aswer.

I solved the problem (in fact, fixed the symptoms) in IMP 2.2.

In horde/horde/lib
   I put the following line as the first instruction of the function
'mailfrom'
   strtr($rcpt, "\0", " ");

In imp/compose.php3
   I put the line
     strtr($fcc, "\0", " ");
   just before 
     $fcc .= $msg;

Philip

Ola Lundqvist wrote:
> 
> Hi forwarding this to upstream.
> 
> The entire bugreport (quite extensive testing there) can be found
> at http://bugs.debian.org/116111
> 
> Regards,
> 
> // Ola
> 
> PS.
> Please Cc 116111@bugs.debian.org or me directly.
> DS.
> 
> On Thu, Oct 18, 2001 at 06:26:17PM +0200, Christian Blum wrote:
> > Package: imp
> > Version: 3:2.2.6-1
> > Severity: normal
> >
> > Hello Ola,
> >
> > since a recent upgrade (some weeks ago, cannot tell exactly
> > what introduced this bug) users are no longer able to use
> > from or to addresses in IMP that contain real names besides
> > the address itself.  If they do, the realname parts
> > get mangled as addresses, and mail is also sent to them
> > with a @localhost appended.
> >
> > Another bug that popped up after the same upgrade is that
> > IMP reports that it could send the message successfully but
> > was not able to store it in the Sent folder.  The IMP and
> > Horde configs are exactly the same as before the upgrade.
> >
> > cheers,
> > Chris
> >
> >
> > -- System Information
> > Debian Release: testing/unstable
> > Architecture: i386
> > Kernel: Linux deepthought 2.4.6 #8 Fri Jul 13 18:59:45 CEST 2001 i686
> > Locale: LANG=C, LC_CTYPE=de_DE
> >
> > Versions of packages imp depends on:
> > ii  apache-ssl               1.3.20.1+1.44-1 Versatile, high-performance HTTP s
> > ii  apache-ssl [httpd]       1.3.20.1+1.44-1 Versatile, high-performance HTTP s
> > ii  binutils                 2.11.92.0.5-3   The GNU assembler, linker and bina
> > ii  debconf                  1.0.13          Debian configuration management sy
> > ii  grep                     2.4.2-2         GNU grep, egrep and fgrep.
> > ii  horde                    3:1.2.6-1       Core elements for the Horde Web Ap
> > ii  mysql-client             3.23.43-2       mysql database client binaries
> > ii  perl                     5.6.1-5         Larry Wall's Practical Extraction
> > ii  php4                     3:4.0.6.7rc3-1  A server-side, HTML-embedded scrip
> > ii  php4-imap                3:4.0.6.7rc3-1  IMAP module for php4
> > ii  php4-mysql               3:4.0.6.7rc3-1  MySQL module for php4
> > ii  sed                      3.02-8          The GNU sed stream editor.
> > ii  sendmail [mail-transport 8.12.1-2        A powerful, efficient, and scalabl
> > ii  wwwconfig-common         0.0.10          Debian web auto configuration.
> >
> >
> 
> --
>  --------------------- Ola Lundqvist ---------------------------
> /  opal@debian.org                     Björnkärrsgatan 5 A.11   \
> |  opal@lysator.liu.se                 584 36 LINKÖPING         |
> |  +46 (0)13-17 69 83                  +46 (0)70-332 1551       |
> |  http://www.opal.dhs.org             UIN/icq: 4912500         |
> \  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
>  ---------------------------------------------------------------
> 
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org