(alias: message x of y) added to wrong place

General discussion re sg.

(alias: message x of y) added to wrong place

Postby Annya » Sat Mar 12, 2005 9:48 am

I discovered a little bug in your program. The
(alias: message x of y)
string that is added to the Subject: line of the
forwarded messages should be put on a line of its
own and not appended at the end of the Subject: line,
as that header could be occupying more than one lines.


Example:

A message containing the following headers:

From: .....
Subject: This is a msg with a ridiculously long subject header.
This is a msg with a ridiculously long subject header.
This is a msg with a ridiculously long subject header.
Date: .....

becomes:

From: .....
Subject: This is a msg with a ridiculously long subject header. (testalias: message 1 of 4)
This is a msg with a ridiculously long subject header.
This is a msg with a ridiculously long subject header.
Date: .....

which is obviously incorrect. It's easier to add the (alias: message x of y)
part on a line of its own, after all other Subject: lines, like this:

From: .....
Subject: This is a msg with a ridiculously long subject header.
This is a msg with a ridiculously long subject header.
This is a msg with a ridiculously long subject header.
(testalias: message 1 of 4)
Date: .....




Thanks for providing such a great service.
Annya
 
Posts: 1
Joined: Sat Mar 12, 2005 9:42 am

Postby SysKoll » Sat Mar 12, 2005 6:12 pm

That's right, we are not handling the continuation lines correctly in all cases. I think it's a problem in the library we're using.

Thanks for the heads-up.
-- SysKoll
SysKoll
 
Posts: 893
Joined: Thu Aug 28, 2003 9:24 pm

Postby josh » Sat Mar 12, 2005 10:35 pm

Is it really OK to have newlines in the subject?
josh
 
Posts: 1371
Joined: Fri Aug 29, 2003 2:28 pm

Postby SysKoll » Sat Mar 12, 2005 11:05 pm

Lines in the SMTP header can be broken. The continuation characters are blanks at the beginning of the line. Any header line beginning with blanks is a continuation of the current header field.
-- SysKoll
SysKoll
 
Posts: 893
Joined: Thu Aug 28, 2003 9:24 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 82 guests

cron