mhonarc-dev

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

2007-06-10 12:19:10

URL:
  <http://savannah.nongnu.org/bugs/?20142>

                 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: 

    _______________________________________________________

Details:

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
pages.

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.
 
http://www.mail-archive.com/ubuntu-bugs(_at_)lists(_dot_)ubuntu(_dot_)com/msg121886.html

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





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?20142>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV

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