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

Re: .signature without newline bug



* TAKAHASHI Tamotsu <ttakah@xxxxxxxxxxxxxxxxx> [Oct 02. 2005 16:06]:
> > > Make a .signature without a newline in the end.
> > > 
> > > Press reply to a given mail.
> > > Quit the editor without saving anything.
> > > Mutt thinks the mail have changed. <---- bug
> > > 
> > > If there's a newline at the end of the signature, quitting the editor
> > > without saving changes makes mutt abort unmodified message.
> > 
> > Ah, because of fix_end_of_file() in curs_lib.c.
> > fix_end_of_file() is used by mutt_edit_file().
> 
> > Hmm, maybe fix_end_of_file() should check mtime??
> > Or make an option $fix_eof for you?
> > Otherwise, it's feature.
> 
> Here is a patch to move fix_end_of_file from curs_lib.c to send.c,
> and to check mtime before the call.

Thanks, this fixes it. Thomas, can you please apply?

-- 
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
 and totally illogical, with just a little bit more effort?"
                                -- A. P. J.