+2009-06-11 18:34 +0200 Rocco Rutte <pdmef@gmx.net> (f60eb41ef63c)
+
+ * UPDATING: Mention maildir mtime use in browser
+
+2009-06-11 18:31 +0200 Rocco Rutte <pdmef@gmx.net> (fc60d44a5b22)
+
+ * ChangeLog, send.c: Don't allow setting Return-Path: header via
+ my_hdr
+
+ Mutt has use_envelope_from/envelope_from_address for that purpose.
+ Closes #1840.
+
2009-06-11 18:17 +0200 Rocco Rutte <pdmef@gmx.net> (8efc1cd0b8c0)
* browser.c: Use only latest mtime of new/cur for browser, not whole
FILE *fp = 0;
progress_t progress;
struct stat st;
- int r;
+ int r, term = 0;
size_t buflen;
fp = fopen (msgfile, "r");
while (fgets (buf, sizeof (buf) - 1, fp))
{
buflen = mutt_strlen (buf);
+ term = buf[buflen-1] == '\n';
if (buflen && buf[buflen-1] == '\n'
&& (buflen == 1 || buf[buflen - 2] != '\r'))
snprintf (buf + buflen - 1, sizeof (buf) - buflen + 1, "\r\n");
safe_fclose (&fp);
return smtp_err_write;
}
-
mutt_progress_update (&progress, ftell (fp), -1);
}
+ if (!term && buflen &&
+ mutt_socket_write_d (conn, "\r\n", -1, M_SOCK_LOG_FULL) == -1)
+ {
+ safe_fclose (&fp);
+ return smtp_err_write;
+ }
safe_fclose (&fp);
/* terminate the message body */