Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extra character (=) at end of each line

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
When messages are sent to a local account on my sendmail machine the lines are all ended with an equals sign. How do I get rid of this?
This happens from some mail programs, but not all.
It happens from Groupwise, but not from Netscape.
Is there a configuration I need to set in sendmail to handle this?

Thanks for any help and ideas.

Jnauta
 
the = signs are reminents of quoted-printable email encoding. it's used to limit the length of the email lines to 75 characters (or something like that). If you look at the email source, you should see somethin like this:

Content-Transfer-Encoding: quoted-printable

if that's there, then the receiving email program has enough info to decode it. So, that's not the problem.

I wrestled with this for a long time. i was sending emails with PHP through sendmail. the problem was that the standards for quoted-printable say that the lines have to end in \r\n. The \n in my program were getting converted to \r\n because sendmail was getting called through the command line. I figured i couldn't get around the \n -> \r\n conversions, so i just got rid of all the \r in my message before sending it to the command-line sendmail. then, when the quoted-printable email with \n only was sent to the command line, the \n were converted to \r\n, and the quoted printable standard was kept, and the emails worked fine when received. The reason some email reading programs are fine with this, is because they're a little more intuitive/forgiving as to the standards. maybe it's a good thing, maybe not?

sorry, i know this is confusing, but when you figure it out, it'll be worth it. Read about quoted-printable, and look at an email message with a hex editor, you'll probably see \r\r\n, when you really want \r\n.

good luck!
please lemme know if this helps,

Blake
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top