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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top