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

Re: [1.5.9 bug] Mutt discards the \ character before a digit in "To:"



* Sun May 22 2005 TAKAHASHI Tamotsu <ttakah@xxxxxxxxxxxxxxxxx>
> * Wed May 11 2005 Vincent Lefevre <vincent@xxxxxxxxxx>
> > On 2005-05-10 13:32:47 -0400, Derek Martin wrote:
> > > On Tue, May 10, 2005 at 06:20:11PM +0200, Vincent Lefevre wrote:
> > > > With Mutt 1.5.9, if I try to send a mail to
> > > > 
> > > >   "blah\1" <a@xxx>
> > > > 
> > > > (whether I write this from Mutt or from the editor), Mutt writes:
> > > > 
> > > >       To: blah1 <a@xxx>
> > > > 
> > > > in the Compose window.
> > > 
> > > I'm pretty sure that's expected behavior.
> > 
> > Why would this be the expected behavior?
> 
> rfc822.c has rfc822_dequote_comment().
> After experimenting it a little, I found it was a bad thing.
> If we need to dequote personal names in headers,
> we should do it while displaying it; Never while parsing it.
> So I made a patch. (attached)

Updated: http://www.momonga-linux.org/~tamo/patch-1.5.9.tamo.namequot.2
- Dequote personal names when viewing messages, too
- Dequote backslashed characters, too

-- 
tamo