]> granicus.if.org Git - neomutt/commitdiff
Write Sender header if specified (closes #2682)
authorJohn Hawkinson <jhawk@mit.edu>
Tue, 3 Apr 2007 01:17:06 +0000 (18:17 -0700)
committerJohn Hawkinson <jhawk@mit.edu>
Tue, 3 Apr 2007 01:17:06 +0000 (18:17 -0700)
sendlib.c

index 7c67353558ecccf5fc9b630170c1bd1a5547229e..7077bd79f6f63bbc9495ba17d24fd523d01d8627 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -1731,6 +1731,13 @@ int mutt_write_rfc822_header (FILE *fp, ENVELOPE *env, BODY *attach,
     fprintf (fp, "From: %s\n", buffer);
   }
 
+  if (env->sender && !privacy)
+  {
+    buffer[0] = 0;
+    rfc822_write_address (buffer, sizeof (buffer), env->sender, 0);
+    fprintf (fp, "Sender: %s\n", buffer);
+  }
+
   if (env->to)
   {
     fputs ("To: ", fp);