PHP Classes

Odd character line breaking?

Recommend this page to a friend!

      MIME E-mail message sending  >  MIME E-mail message sending package blog  >  How Can PHP Send Emai...  >  All threads  >  Odd character line breaking?  >  (Un) Subscribe thread alerts  
Subject:Odd character line breaking?
Summary:Odd switch statement in QuotedPrintableEncode
Messages:2
Author:DavidMck
Date:2011-04-01 15:48:47
Update:2011-04-01 18:03:34
 

  1. Odd character line breaking?   Reply   Report abuse  
Picture of DavidMck DavidMck - 2011-04-01 15:48:47
I'm stepping through the code and there's a piece of code I don't understand in QuotedPrintableEncode. It starts at line 1123 in the most recent version. There's a case statment:

case 46:
case 70:
case 102:
$en=(!$h && ($l==0 || $l+1>75));
break;

It appears from the code that this decides there can be a line break here but it appears that the characters picked for the line break are . (46), F (70) and f (102). I'm not sure why F and f are special. Thanks.

david

  2. Re: Odd character line breaking?   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-04-01 18:03:37 - In reply to message 1 from DavidMck
That is because mail folder files in mbox format start with a line with pseudo header "From". If you have a line with that header in the middle of you messages it may confuse programs that handle mbox mail files.