[bug #20142] strip backslash in rfc822 From: field

2007-06-10 12:19:10


                 Summary: strip backslash in rfc822 From: field
                 Project: MHonArc
            Submitted by: jab
            Submitted on: Sunday 06/10/2007 at 19:19
                Category: Resource Variables
                Severity: 3 - Normal
              Item Group: Incorrect Behavior
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: Linux
            Perl Version:  v5.8.4
       Component Version: 2.6.16
           Fixed Release: 



It is not uncommon to have an escaped character in the From: field of an
email header. I've noticed this mainly with parentheses and quotation marks,
e.g. \( \) \". Out of the last 75000 mails, approximately one in 500 have
this characteristic. Mhonarc leaves the backslash in and produces messages
that look a little funnny. Especially when one person posts a lot to a list,
and each time his or her name is littered with extra backslashes in the index

I looked over RFC822 and had a tough time deciding whether this practive is
legal or not, but I can say it is fairly common and I think it makes sense to
strip out backslashes in the FROMNAME resource variable. Or maybe only do it
for our friends \" \( and \)

I also looked at Subject: lines, and in those cases backslashes are used all
over the place in a meaninful way, so probably should not be stripped. I'm
happy to suppy additional data.

gen7:/var/mail# cat archive2 | grep ^From: | wc -l
gen7:/var/mail# cat archive2 | grep ^From: | grep '\\' | wc -l


Reply to this item at:


  Message sent via/by Savannah

To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the

<Prev in Thread] Current Thread [Next in Thread>