patchThe nmh Mail Handling System - Patches: patch #3468, remove quotes from comments...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #3468: remove quotes from comments extracted from RFC2822 e-mail addresses

Submitter:  Oliver Kiddle <opk>
Submitted:  Fri 22 Oct 2004 11:12:55 AM UTC
   
 
Category:  None Priority:  1 - Later
Status:  Done Privacy:  Public
Assigned to:  opk Open/Closed:  Closed

Fri 22 Oct 2004 11:12:55 AM UTC, original submission:  

This patch was posted to nmh-workers by Carl Mummert on 19th December 2003. I'm uploading it here so that it isn't lost and because I use it.

Carl's comment in the e-mail follows:

In light of the discussion on this list a few days ago, I have changed my RFC-2822-unquoting code to more strictly follow the RFC.  There are two sorts of quoting that must be removed: quoted-pair and quoted-string.

  • quoted-pair: An ASCII character x preceded by a \ is quoted'; the string \x unquotes to the single character x.  In my code, character 0 (NUL) cannot be in a quoted-pair.  In the RFC, a NUL can be in a quoted pair (see obs-qp). Because nmh is implemented using C strings, a NUL in a quoted-pair ends the string.  So there's no point in trying

to unquote NULs.

  • quoted-string: Remove unquoted " characters.  According to the RFC, these must always be balanced and cannot nest.  So it is safe to just remove them. Note that a double quote " preceded by a \ is not removed, but is interpreted as a double quote character; this is just a special case of quoted-pair.
Oliver Kiddle <opk>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #7936:  unquote.txt added by opk (6KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 8 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-10-06 opk Assigned toNone opk
    Open/ClosedOpen Closed
2005-05-18 opk StatusNone Done
2004-10-22 opk Attached File- Added unquote.txt, #3795
2004-10-22 opk Attached File#3794 Removed
2004-10-22 opk Attached File#3793 Removed
2004-10-22 opk Attached File- Added unquote.txt, #3794
2004-10-22 opk Attached File- Added unquote, #3793

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code