Closed Bug 177808 Opened 22 years ago Closed 22 years ago

In mail filter, customize headers, colons are accepted, and several issues follow

Categories

(MailNews Core :: Filters, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 153251

People

(Reporter: om, Assigned: naving)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 I want to customize headers such as "X-Mailer:", "Reply-To:", "Received:", and so on. The interface expects that we don't include the colon ("X-Mailer" instead of "X-Mailer:"), but it is accepted anyway. After that, in prefs.js, the colons are doubled because colons are also used as separators : user_pref("mailnews.customHeaders", "X-Mailer:: Reply-To:: Received:"); Several issues then occur, for example several "undefined" lines in the list of headers. Also, I noticed on Netscape 7 (but didn't try to reproduce within Mozilla) that sometimes the line in prefs.js increases at each start with multiple occurences of the headers, and eventually it crashes. Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: Mozilla should refuse to customize a header which contains a colon. Also, the popup window should state clearly that the user must not enter the colon when typing the name of the header.
There have been a couple fixes applied since the build you're using.
Duplicates - bug 107620, bug 165470, bug 153251 *** This bug has been marked as a duplicate of 153251 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
verified as a duplicate
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.