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

Re: Email addresses with spaces



Michelle Konzack <linux4michelle@xxxxxxxxxxxxxxx> wrote:
> Am 2008-05-28 10:43:41, schrieb Clayton Scott Kern:
> > I'm not sure if this is the right place to address this.
> > 
> > I use fetchmail -> sendmail -> procmail -> mutt.
> 
> First of all:  Why do you use "sendmail" between
>                "fetchmail" and "procmail"?
> 
> > I have problem with emails that have spaces in the user name.
> > For example  joe doe@xxxxxxxxxxx
> 
> Such messages should be rejected by your ISP on SMTP-Level since they
> are invalid.

They're only invalid if they're not encoded correctly.  RFC822/2822 allows
spaces to be included if they're part of a quoted string.

i.e., this is an rfc822-valid header field:

  To: "joe doe"@mymail.com

Mutt handles this case correctly.

Either the message you're retrieving with fetchmail has the header encoded
incorrectly by the server it's retrieving from, or one of the programs you're
passing it through (including fetchmail) is munging the message header and
leaving it invalid.

You can check whether the message is already invalid on your mail server by
capturing the POP/IMAP conversation off the wire when you run fetchmail.  If
it's clean there, you need to figure out which of your mail-processing
programs is breaking it.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at:               http://pyropus.ca/software/
-----------------------------------------------------------------------