[imp] newline problem

Michael Redinger Michael.Redinger@uibk.ac.at
Mon, 19 Mar 2001 15:54:08 +0100 (CET)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I found the answer - it's the old PHP version ... took a newer RPM, now
everything works fine.

Michael


On Mon, 19 Mar 2001, Michael Redinger wrote:

>
> Hi,
>
> I'm having some problems with IMP 2.2.4.
>
> When composing a mail, newline characters (rn) are appended to every
> field. I saw that some such cases are catched in compose.php3 while
> others (cc, bcc etc.) wheren't. Some of them are easily fixed by
> inserting
> if (isset($cc)) $cc = str_replace("rn", "", $cc);
> ...
> etc. right before the case statement for the action stuff.
>
> However, I noticed that this also happens with attachments and therefore
> destroying the MIME part, e.g. (note the newlines):
>
> ---MOQ98500880037dab365204da92503892a8604a6c419
> Content-Type:
> /; name="
> cy74.jpg"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment; filename="
> cy74.jpg"
>
> Q29udGV....
>
>
>
> When doing a compose, I do get an error message
> "Warning: Undefined index: Nachricht senden in ...". Then the windows
> is refreshed; however, the subject (without my changes) looks like
> <br>[subject here]
> ^^^^
>
> (The problem indicated by the warning message can easily be fixed by
> doing a
> $actionID=trim($actionID);
> right after
> if (strcspn($actionID, '0123456789')) {
> - however, suppose this is a very similar problem ...).
>
>
> I could reproduce the problem with standard IMP 2.2.4 without any
> local adaptions (except for the config files).
>
> The problem seems to have been introduced in this release, IMP 2.2.3
> worked fine.
>
>
>
> Ideas, anyone?
>
>
>
> Server:	Red Hat Linux 7.0 with latest updates
> 	Apache 1.3.14
> 	PHP 4.0.4pl1
>
>
> Client: Netscape on Linux, Windows, doesn't matter.
>
>
> _______________________________________
> Michael Redinger
> Computer Centre University of Innsbruck
>
> He deserves death.
> Deserves it! I dare say he does. Many that live deserve death. And some that
> die deserve life. Can you give it to them? Then do not be too eager to deal
> out death in judgment. For even the very wise cannot see all ends.
>                                                 -- The Lord of the Rings
>
>
>
>
> *** Not encrypted nor signed data is left
>
>
>
>

- -- 

_______________________________________
Michael Redinger
Computer Centre University of Innsbruck

He deserves death.
Deserves it! I dare say he does. Many that live deserve death. And some that
die deserve life. Can you give it to them? Then do not be too eager to deal
out death in judgment. For even the very wise cannot see all ends.
                                                -- The Lord of the Rings

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv
Filter: gpg4pine 4.0 (http://azzie.robotics.net)

iQA/AwUBOrYdlA/XqdllwsEdEQJyCQCgupYSieHWfloHDHKoBILiYO81sdIAoL6a
VP9O72CmYQ7WddXMLWXsDR5a
=tmRa
-----END PGP SIGNATURE-----