<<< Date Index >>>     <<< Thread Index >>>

Re: Adequately read mailboxes with s/@/ at / obfuscations



On 06May2010 11:53, David Champion <dgc@xxxxxxxxxxxx> wrote:
| * On 06 May 2010, Bertrand Yvain wrote: 
| > On Tue, May 04, 2010 at 10:55:46PM -0500, David Champion wrote:
| > > Adequately read mailboxes with s/@/ at / obfuscations.
| > 
| > This kind of substitution is not reversible in the general case.
| > Consider for instance this e-mail address: "works at home"@some.dom.ain
| 
| Of course.  [...]
| This patch does not disrupt any signature system that relies on rfc822
| address headers, because it does not modify the source text of the
| message.  It only changes what is parsed into the in-memory header
| structure: what you can interact with in mutt.  The point is to be able
| to read a mangled mailbox -- currently mutt fails miserably -- without
| changing it on disk.
[...]
| > and I don't think mutt
| > should jump through hoops in order to handle them.
| 
| I just want to be able to read the mailboxes that manglers have created.

Personally, I unmangle mailman archives when I collect them (eg: join
list, suck down old archives). Then I file the de-mangled archives into
legitimate mutt mail folders. Thus:

  get-mailman-archive archive-page-url... >mlist.mbox

Then "mutt -f mlist.mbox" and save them all into the target folder where
I'll be reading this stuff in the future, and where mairix will index
it.

So mutt (and mairix and any other mail tool) gets clean mail to play with.

get-mailman-archive does two demanglings: the un-at- script and also
"fix-mail-dates", since these also seem broken in many archives.

Scripts here:

  http://www.cskk.ezoshosting.com/cs/css/bin/get-mailman-archive
  http://www.cskk.ezoshosting.com/cs/css/bin/un-at-
  http://www.cskk.ezoshosting.com/cs/css/bin/fix-mail-dates

I guess this is a vote for demangling, not teaching mutt to recognise
broken data.

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

The code was willing,
It considered your request,
But the chips were weak.
- Haiku Error Messages 
http://www.salonmagazine.com/21st/chal/1998/02/10chal2.html