Your message dated Sun, 26 Nov 2006 10:18:33 +1100
with message-id <[EMAIL PROTECTED]>
has caused the Debian Bug report #213493,
regarding libmailtools-perl: ill-advised normalization of capitalization of
headers
to be marked as having been forwarded to the upstream software
author(s) Mark Overmeer <[EMAIL PROTECTED]>.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
On Tue, Sep 30, 2003 at 04:20:17PM -0400, Matt Swift wrote:
>Package: libmailtools-perl
>Version: 1.58-1
>Severity: normal
>
>Header.pm (lines 147-162) "normalizes" the case of header names;
>comments claim that this normalization is an RFC822 requirement, but
>that is not true. Changing the header can cause unexpected problems
>in other packages. Please see Debian bug 165673
>(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=165673) for an
>example. The following email quotes the relevant section of RFC822
>and refers to the problem mentioned in the bug report above.
>
>
> From: Matthias Klose <[EMAIL PROTECTED]>
> Subject: Re: [patch] make mail headers rfc822 conformant
> To: MailScanner mailing list <[EMAIL PROTECTED]>
> CC: Antony Stone <[EMAIL PROTECTED]>, Matthew Swift <[EMAIL PROTECTED]>
> Date: Sun Aug 31 12:37:41 2003 -0400
> In-Reply-To: <[EMAIL PROTECTED]>
> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
>
> Antony Stone writes:
> > On Sunday 31 August 2003 4:32 pm, Matthias Klose wrote:
> >
> > > rfc822 doesn't allow mixed-case words
> >
> > Er, from http://www.faqs.org/rfcs/rfc822.html :
> >
> > 3.4.7. CASE INDEPENDENCE
> >
> > Except as noted, alphabetic strings may be represented in any
> > combination of upper and lower case. The only syntactic units
> > which requires preservation of case information are:
> >
> > - text
> > - qtext
> > - dtext
> > - ctext
> > - quoted-pair
> > - local-part, except "Postmaster"
> >
> > When matching any other syntactic unit, case is to be ignored.
> > For example, the field-names "From", "FROM", "from", and even
> > "FroM" are semantically equal and should all be treated ident-
> > ically.
> >
> > When generating these units, any mix of upper and lower case
> > alphabetic characters may be used. The case shown in this
> > specification is suggested for message-creating processes.
> >
> > Note: The reserved local-part address unit, "Postmaster", is
> > an exception. When the value "Postmaster" is being
> > interpreted, it must be accepted in any mixture of
> > case, including "POSTMASTER", and "postmaster".
> >
> >
> > My reading of this is that MixedCase is perfatcly acceptable, although
> mail
> > programs are not required to pay any attention to the particular case
> chosen.
> > "Mail Header = X-MailScanner:" should be treated just the same as
> > "Mail Header = X-Mailscanner:", and both are equally valid.
> >
> > Please redirect me if I didn't find the correct bit of RFC822 which says
> that
> > mixed case is disallowed.
>
> Got this from MailTools (Header.pm):
>
> # attempt to change the case of a tag to that required by RFC822. That
> # being all characters are lowercase except the first of each word. Also
> # if the word is an `acronym' then all characters are uppercase. We decide
> # a word is an acronym if it does not contain a vowel.
>
> sub _tag_case
> {
> my $tag = shift;
> $tag =~ s/\:$//;
>
> join('-',
> map { /^[b-df-hj-np-tv-z]+$|^MIME$/i ? uc($_) : ucfirst(lc($_)) }
> split('-', $tag));
> }
>
>
> It's a small matter, but since I noticed it, I might as well report
> it. I noticed that the "disinfected" header field name used different
> capitalization than the "clean" header. The reason is that
> mailscanner itself adds the "clean" header, while it calls
> MIME::Entity to add the "disinfected" header. That Perl package
> normalizes the capitalization.
>
>-- System Information:
>Debian Release: testing/unstable
>Architecture: i386
>Kernel: Linux beth 2.4.21 #1 Mon Sep 22 11:16:17 EDT 2003 i686
>Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8
>
>Versions of packages libmailtools-perl depends on:
>ii libnet-perl 1:1.17-1 Implementation of Internet protoco
>ii libtimedate-perl 1.1400-1 Time and date functions for Perl
>ii perl 5.8.1-1 Larry Wall's Practical Extraction
>ii perl-modules [libnet-perl] 5.8.1-1 Core Perl modules.
>
>-- no debconf information
Hello Mark,
I'm forwarding this bug report to you as upstream author.
Please preserve the CC to [EMAIL PROTECTED] when you
reply, so that the bug tracking system will file your reply with the
original report.
The corresponding web page of this bug report is at:
http://bugs.debian.org/213493
The debian bmailtools-perl bug reports are at:
http://bugs.debian.org/libmailtools-perl
Kind Regards,
AnĂbal Monsalve Salazar
--
http://v7w.com/anibal
signature.asc
Description: Digital signature
--- End Message ---