+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
char *err = NULL;
int rc;
+ /* RfC 5322 mandates a From: header, so warn before bouncing
+ * messages without one */
+ if (h)
+ {
+ if (!h->env->from)
+ {
+ mutt_error _("Warning: message has no From: header");
+ mutt_sleep (2);
+ }
+ }
+ else if (Context)
+ {
+ for (rc = 0; rc < Context->msgcount; rc++)
+ {
+ if (Context->hdrs[rc]->tagged && !Context->hdrs[rc]->env->from)
+ {
+ mutt_error ("Warning: message has no From: header");
+ mutt_sleep (2);
+ break;
+ }
+ }
+ }
+
if(h)
strfcpy(prompt, _("Bounce message to: "), sizeof(prompt));
else
/* one or more messages? */
p = (cur || count_tagged (idx, idxlen) == 1);
+ /* RfC 5322 mandates a From: header, so warn before bouncing
+ * messages without one */
+ if (cur)
+ {
+ if (!cur->hdr->env->from)
+ {
+ mutt_error _("Warning: message contains no From: header");
+ mutt_sleep (2);
+ mutt_clear_error ();
+ }
+ }
+ else
+ {
+ for (i = 0; i < idxlen; i++)
+ {
+ if (idx[i]->content->tagged)
+ {
+ if (!idx[i]->content->hdr->env->from)
+ {
+ mutt_error _("Warning: message contains no From: header");
+ mutt_sleep (2);
+ mutt_clear_error ();
+ break;
+ }
+ }
+ }
+ }
+
if (p)
strfcpy (prompt, _("Bounce message to: "), sizeof (prompt));
else