[imp] first line of message with colon ends up in header?
ip@ariel.utcc.utoronto.ca
ip at ariel.utcc.utoronto.ca
Wed Oct 18 10:21:30 PDT 2006
Hi
We're running IMP 4.1.3.
If you send a message with the first line that looks like a header line,
e.g.
http://horde.org
it will end up in the header of the message instead of the body.
I think the fix is simple: I've attached a patch for imp/lib/Compose.php
Peter
_____________________________________________________
Peter Ip, PhD
Computing and Network Services, University of Toronto
-------------- next part --------------
*** Compose.php.dist Fri Aug 25 13:52:21 2006
--- Compose.php Tue Oct 17 17:17:28 2006
***************
*** 134,139 ****
--- 134,144 ----
$msg .= "\n";
}
+ /* If the first line looks like a header line, add a blank line */
+ if (preg_match("/[^ :]+:/", $msg)) {
+ $msg = "\n" . $msg;
+ }
+
$mailer = Mail::factory($driver, $params);
if (is_a($mailer, 'PEAR_Error')) {
return $mailer;
More information about the imp
mailing list