From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Thu, 24 Jan 2008 20:03:58 -0800 Subject: [sup-talk] return-path In-Reply-To: <20080123224712.GB32356@manheim.library.drexel.edu> References: <20080123211318.GB31529@manheim.library.drexel.edu> <1201125726-sup-1297@south> <20080123224712.GB32356@manheim.library.drexel.edu> Message-ID: <1201233750-sup-2616@south> Reformatted excerpts from Gabriel Sean Farrell's message of 2008-01-23: > I've added the line and applied the patch. Now I see "Return-Path" in > the headers of my message before I send it, but when I receive it the > return-path is still the one I was trying to override. Could the one > I set still be getting stripped out? I don't think so... you can apply the patch below and see exactly what Sup is sending sendmail. In my case, that header is intact. So it must be getting overwritten somewhere else in the system. There's some crazy interaction between this header, the From: and Sender: headers, and the -f option of sendmail. Maybe you should use a -f with sendmail (in your ~/.sup/config.yaml file)? Did you have a particular way of calling sendmail with Mutt? diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mod index 6a7f273..0e50724 100644 --- a/lib/sup/modes/edit-message-mode.rb +++ b/lib/sup/modes/edit-message-mode.rb @@ -279,6 +279,7 @@ protected date = Time.now m = build_message date IO.popen(acct.sendmail, "w") { |p| p.puts m } + File.open("sent-copy.txt", "w") { |f| f.puts m } raise SendmailCommandFailed, "Couldn't execute #{acct.sendmail}" unless $ SentManager.write_sent_message(date, from_email) { |f| f.puts sanitize_bo BufferManager.kill_buffer buffer -- William