Email Line Formatting

  • Thread starter Thread starter afrinspray
  • Start date Start date
A

afrinspray

I couldn't find a general email questions newsgroup, so I apologize if
this is a little off-topic.

I'm building a list-server program, and I'm parsing the email bodies
from incoming messages. I'm having problems determining if lines are
wrapped automatically or if the user pressed enter. I read some RFCs
on the matter, and they say that lines can be folded in the headers. I
couldn't find anything about the body of messages, so I was wondering
if anyone knew an easy way to determine if the line has been folded vs.
hard returned by the sender?

Even if it's just a "please post in [this] newsgroup, you jerk", I
appreciate your comments in advance.

Mike
 
I'm building a list-server program, and I'm parsing the email bodies
from incoming messages. I'm having problems determining if lines are
wrapped automatically or if the user pressed enter. I read some RFCs
on the matter, and they say that lines can be folded in the headers.
I couldn't find anything about the body of messages, so I was
wondering if anyone knew an easy way to determine if the line has
been folded vs. hard returned by the sender?

If the message is plain text, there's no way to determine that. If the
message is encoded in MIME's Quoted-Printable format, it's obvious.
 
Back
Top