Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] return-path
Date: Thu, 24 Jan 2008 20:03:58 -0800	[thread overview]
Message-ID: <1201233750-sup-2616@south> (raw)
In-Reply-To: <20080123224712.GB32356@manheim.library.drexel.edu>

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 <wmorgan-sup at masanjin.net>


  reply	other threads:[~2008-01-25  4:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-23 21:13 Gabriel Sean Farrell
2008-01-23 22:12 ` William Morgan
2008-01-23 22:47   ` Gabriel Sean Farrell
2008-01-25  4:03     ` William Morgan [this message]
2008-01-25  7:50       ` Gabriel Sean Farrell
2008-01-27 20:03         ` Marcus Williams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1201233750-sup-2616@south \
    --to=wmorgan-sup@masanjin.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox