muttlib buglet



It seems that if your message body doesn't end with a spare newline (e.g. my
.signature) then muttlib's temporary file has an incomplete last line, and
some MTAs (e.g. mine) get sick because of this and drop the last character
instead.

Probably the quickest fix for this is along the lines of:

diff -c -r1.11 sendlib.c
*** libmutt/sendlib.c	1998/10/03 14:00:08	1.11
--- libmutt/sendlib.c	1998/12/17 22:28:44
***************
*** 1524,1529 ****
--- 1524,1531 ----
      return (-1);
    }
  
+   fputc ('\n', tempfp); /* tie off the body. */
+ 
    if (fclose (tempfp) != 0)
    {
      mutt_perror (tempfile);

-- 
William
wmorgan@syntony.org

PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]