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

Re: Email addresses with spaces



on 05-30-2008, Rocco Rutte wrote:
> Hi,
> 
> * Clayton Scott Kern wrote:
> 
> >Thank you.  I suspected that the regex looked for letters, numbers and
> >periods, then an @, then more letters, numbers and periods, but couldn't
> >find anything explicitly stating such.
> 
> These From_ lines are parsed using a hand-written parser. It doesn't try 
> to parse the mail address as a mail address at that stage, so it 
> doesn't look for letters and numbers or the @ symbol. My quick look at 
> the source reveals the format mutt expects:
> 
>   /*
>    * A valid message separator looks like:
>    *
>    * From [ <return-path> ] <weekday> <month> <day> <time> [ <timezone> ] 
>    <year>
>    */
> 
> Looking at the source, it seems to support quoting the return path part 
> using double quotes. This is untested, but quoting the whole part as in:
> 
>   From "foo bar@host" ...
> 
> could help. I can't help you on making your MDA produce that, though...
> 
> Rocco

Rocco, thank you, this is very helpful.

Since these message are from a mail list, I did a test last night.  I
had getmail put incoming emails into a mbox file and getmail replaced
tha spaces with underscores.  Thus, it's procmail that's creating the
From_ line with the spaces, so that gives me a place to start.  I'll see
what I can do to have procmail either properly quote the return address
or keep the underscores provided by getmail.  Another option is to look
at maildrop.

Thank you to all who responded, you're inputs have been very helpful.
One of the great reasons for using open source software.

-- 
Clayton Scott Kern
ckern1@xxxxxxxxxxxxxx              |  The software stated it required 
Firewall/UNIX System Administrator |  Microsoft Windows 98SE or higher,
Cisco ASA/PIX, FreeBSD & Linux     |  so I installed FreeBSD