<<< Date Index >>>     <<< Thread Index >>>

bug#1804: marked as done (mutt-1.5.5.1+cvs20040112i: mutt's mail viewer cuts first letter from To: and From: if there's no blank after the colon.)



Your message dated Mon, 12 Apr 2004 22:39:59 +0200
with message-id <20040412203959.GR5807@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
and subject line bug#1804: mutt-1.5.5.1+cvs20040112i: mutt's mail viewer cuts 
first letter from To: and From: if there's no blank after the colon.
has caused the attached bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(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.)

Herr der Kaefer
(administrator, GUUG bugs database)

--------------------------------------
Received: (at submit) by bugs.guug.de; 14 Feb 2004 10:11:45 +0000
>From trikalio@xxxxxxxxxxxxxxx Sat Feb 14 11:11:17 2004
Received: from moutng.kundenserver.de ([212.227.126.171])
        by trithemius.gnupg.org with esmtp (Exim 3.35 #1 (Debian))
        id 1ArwlZ-0006gb-00
        for <submit@xxxxxxxxxxxx>; Sat, 14 Feb 2004 11:11:17 +0100
Received: from [212.227.126.207] (helo=mrelayng.kundenserver.de)
        by moutng.kundenserver.de with esmtp (Exim 3.35 #1)
        id 1ArwoG-0004CB-00; Sat, 14 Feb 2004 11:14:04 +0100
Received: from [80.136.43.193] (helo=mail)
        by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1)
        id 1ArwoG-0004R4-00; Sat, 14 Feb 2004 11:14:04 +0100
Received: from trikalio by mail with local (Exim 3.35 #1 (Debian))
        id 1Arwn1-0006Mk-00; Sat, 14 Feb 2004 11:12:47 +0100
From: trik-news@xxxxxx
Subject: mutt-1.5.5.1+cvs20040112i: mutt's mail viewer cuts first letter from 
To: and From: if there's no blank after the colon.
To: submit@xxxxxxxxxxxx
Message-Id: <E1Arwn1-0006Mk-00@mail>
Date: Sat, 14 Feb 2004 11:12:47 +0100
X-Provags-ID: kundenserver.de abuse@xxxxxxxxxxxxxxx 
auth:3d2eeabd0c2821ae800fb0ab220b0ce9
X-Spam-Status: No, hits=2.0 required=4.0
        tests=NO_REAL_NAME,UPPERCASE_25_50
        version=2.55
X-Spam-Level: **
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

Package: mutt
Version: 1.5.5.1-200401
Severity: normal

-- Please type your report below this line

When I receive a malformed mail without a blank after the From: or the To:,
mutt cuts off the first letter and does not show it in its internal viewer.

Examples: 

From:abc@xxxxxx  shows as From: bc@xxxxxx
From:ABC <abc@xxxxxx> shows as From: BC <abc@xxxxxx>

Other header lines might be affected, too. Indeed, the Subject: line is not.


The pager seems not to be affected by this.


An example mailbox (mbox format) can be found here:
http://www.trikaliotis.net/mutt.test.gz

I tried it while removing /etc/Muttrc and ~/.mutt/muttrc, but the problem
remained, so I'm sure it is not based on my settings.


Spiro.

-- System Information
System Version: Linux mail 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i586 
unknown

-- Build environment information

(Note: This is the build environment installed on the system
muttbug is run on.  Information may or may not match the environment
used to build mutt.)

- gcc version information
cc
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)

- CFLAGS
-Wall -pedantic -g -O2

-- Mutt Version Information

Mutt 1.5.5.1+cvs20040112i (2003-11-05)
Copyright (C) 1996-2002 Michael R. Elkins und andere.
Mutt übernimmt KEINERLEI GEWÄHRLEISTUNG. Starten Sie `mutt -vv', um
weitere Details darüber zu erfahren. Mutt ist freie Software. 
Sie können es unter bestimmten Bedingungen weitergeben; starten Sie
`mutt -vv' für weitere Details.

System: Linux 2.4.18-bf2.4 (i586) [using ncurses 5.2] [using libidn 0.3.4 
(compiled with 0.3.4)]
Einstellungen bei der Compilierung:
-DOMAIN
-DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
+USE_FCNTL  -USE_FLOCK
+USE_POP  +USE_IMAP  +IMAP_EDIT_THREADS  -USE_GSS  -USE_SSL  +USE_GNUTLS  
+USE_SASL  +USE_SASL2  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  -CRYPT_BACKEND_GPGME  
-BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET 
 +HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +HAVE_GETADDRINFO  
ISPELL="/usr/bin/ispell"
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc"
EXECSHELL="/bin/sh"
MIXMASTER="mixmaster"
Um die Entwickler zu kontaktieren, schicken Sie bitte
eine Nachricht (in englisch) an <mutt-dev@xxxxxxxx>.
Um einen Bug zu melden, verwenden Sie bitte das Programm flea(1).

patch-1.5.5.1.tt.compat.1-cl
patch-1.5.4.vk.pgp_verbose_mime
patch-1.5.3.rr.compressed.1
patch-1.5.4.helmersson.incomplete_multibyte
patch-1.5.4.fw.maildir_inode_sort
patch-1.3.23.1.ametzler.pgp_good_sign
patch-1.5.1.cd.edit_threads.9.2
patch-1.5.3.Md.gpg_status_fd
patch-1.4.Md.gpg-agent
patch-1.5.3.Md.etc_mailname_gethostbyname
patch-1.3.27.bse.xtitles.1
Md.use_debian_editor
Md.muttbug
patch-1.4.admcd.gnutlsdlopen.53d
patch-1.4.admcd.gnutlsbuild.53d
patch-1.4.admcd.gnutls.56d

---------------------------------------
Received: (at 1804-done) by bugs.guug.de; 12 Apr 2004 20:37:57 +0000
>From roessler+bounce@xxxxxxxxxxxxxxxxxx Mon Apr 12 22:37:46 2004
Received: from does-not-exist.info ([217.160.221.198] 
helo=kamino.does-not-exist.org)
        by trithemius.gnupg.org with esmtp (Exim 3.35 #1 (Debian))
        id 1BD8Be-0003Fa-00
        for <1804-done@xxxxxxxxxxxx>; Mon, 12 Apr 2004 22:37:46 +0200
Received: from raktajino.does-not-exist.org (p5085647F.dip0.t-ipconnect.de 
[80.133.100.127])
        (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
        (No client certificate requested)
        by kamino.does-not-exist.org (Postfix) with ESMTP
        id C1F93193368; Mon, 12 Apr 2004 22:40:42 +0200 (CEST)
Received: by raktajino.does-not-exist.org (Postfix, from userid 500)
        id 444E98497D; Mon, 12 Apr 2004 22:39:59 +0200 (CEST)
Date: Mon, 12 Apr 2004 22:39:59 +0200
From: Thomas Roessler <roessler@xxxxxxxxxxxxxxxxxx>
To: trik-news@xxxxxx, 1804-done@xxxxxxxxxxxx
Subject: Re: bug#1804: mutt-1.5.5.1+cvs20040112i: mutt's mail viewer cuts first 
letter from To: and From: if there's no blank after the colon.
Message-ID: <20040412203959.GR5807@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <E1Arwn1-0006Mk-00@mail>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="TYecfFk8j8mZq+dy"
Content-Disposition: inline
In-Reply-To: <E1Arwn1-0006Mk-00@mail>
User-Agent: Mutt/1.5.6i
X-Spam-Status: No, hits=-108.2 required=4.0
        tests=AWL,BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,
              PATCH_UNIFIED_DIFF,REFERENCES,REPLY_WITH_QUOTES,
              USER_AGENT_MUTT,USER_IN_WHITELIST
        autolearn=ham version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)


--TYecfFk8j8mZq+dy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On 2004-02-14 11:12:47 +0100, trik-news@xxxxxx wrote:

> When I receive a malformed mail without a blank after the From: or the To:,
> mutt cuts off the first letter and does not show it in its internal viewer.

The attached patch should take care of this.

-- 
Thomas Roessler                       <roessler@xxxxxxxxxxxxxxxxxx>

--TYecfFk8j8mZq+dy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch-1.5.6.tlr.1804.1"

? err
? mutt-1.5.5-extra.tgz
? patch
? patch-1.5.3-CVS.tlr.idna.1
? patch-1.5.4.nr.tag_prefix_cond
? patch-1.5.4.tlr.nodots.1
? patch-1.5.4.tlr.pgpsmimeautoselect.1
? patch-1.5.4.tlr.query_mem.1
? patch-1.5.4.tlr.save_attachment.1
? patch-1.5.4.tlr.tag_prefix.1
? patch-1.5.5.1.regexp_lists.1
? patch-1.5.5.1.tlr.libidncompat.1
? patch-1.5.5.1.tlr.partsign.1
? patch-1.5.5.1.tlr.retainable_sigs.1
? patch-1.5.5.1.tlr.thread_free.1
? patch-1.5.5.1.tlr.unbind.1
? patch-1.5.5.1692
? patch-1.5.6.tlr.1804.1
? patch-1.5.6.tlr.1808.1
? pgpring.sample
? send.c.new
? sort.c.new
? stamp-h1
? typescript
Index: copy.c
===================================================================
RCS file: /cvs/mutt/mutt/copy.c,v
retrieving revision 3.12
diff -u -r3.12 copy.c
--- copy.c      19 Sep 2003 13:03:25 -0000      3.12
+++ copy.c      12 Apr 2004 20:37:12 -0000
@@ -906,7 +906,7 @@
     default: return 0;    
   }
 
-  if ((a = rfc822_parse_adrlist (a, s + l + 1)) == NULL)
+  if ((a = rfc822_parse_adrlist (a, s + l)) == NULL)
     return 0;
   
   mutt_addrlist_to_local (a);

--TYecfFk8j8mZq+dy--