develooper Front page | perl.beginners | Postings from April 2010

How to properly fold a subject header in email

Thread Next
From:
Harry Putnam
Date:
April 17, 2010 18:42
Subject:
How to properly fold a subject header in email
Message ID:
87zl11a641.fsf@newsguy.com
I've acquired a massive headache from trying to look thru some of the
mail related modules on cpan that where my searches on header folding
lead me.  Needless to say I was a little overcome by the attempt.

I'm working on my own little home boy perl script that looks through
an `events' file in ~/ and extracts information I've put there, to
notify me by email and/or text message when one of these events is close.

A todo calender kind of tool.
I've got it working but I had hoped when there were more than 1 or 2
things being sent out, that I could put several lines in the subject
field and fold them like you see in some email headers.

The idea being that the all the events would then be in the subject
line for quick eyeball parsing.

I tried a few ways of folding the lines, but really had no idea how it
was supposed to be done.

I did start to google on it, but right away it was apparent that
several rfcs for mail are involved, trying read and understand one of
those looked like a lifetime occupation.

That goes for the hefty mail tools on cpan as well,

I wondered if someone here happens to know or can explain how to fold
lines in an email header such that email tools won't scream or unfold
them.  I know folded lines make it thru my sendmail MTA and `gnus' 
(that is the news/mail reader packaged with emacs)
mail/news reader.  But not sure about the format involved.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About