Subject: Re: [sup-talk] Question About Sending New Emails

From: Bryan Richardson <[email-masked]>
Date: Mon, 4 Jan 2010 07:10:21 -0700

Ah... hacking of the headers is probably what I want. Thanks!

On Fri, Jan 1, 2010 at 10:01 AM, Tero Tilus <[email-masked]> wrote:

> Ben Walton, 2009-12-31 20:12:
> > You can use one or both of the before-edit and reply-from hooks
>
> And of course you can hack the headers too when in editor.
>
> --
> Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
> _______________________________________________
> sup-talk mailing list
> [email-masked]
> http://rubyforge.org/mailman/listinfo/sup-talk
>
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Bryan T. Richardson <[email-masked]>
Date: Thu, 31 Dec 2009 10:44:57 -0700

Hello All,

Well, I've been wanting to switch over to Sup for a long time now, and
since I finally found out about OfflineIMAP I'm able to. :)

Here's a question though... I have multiple email accounts, and I
understand how Sup will automatically select the right 'From' address to
use when replying to a previous email, which is way cool. However, is it
possible to set the 'From' address when composing a brand new email?
MSMTP has an option to select the SMTP account to use based on the
'From' address, but I can't figure out of it's possible to set the
'From' address in Sup. If so, cool. If not then oh well, I love Sup
anyway! :)

Thanks for a great piece of software... and better yet, it's in Ruby! :)

--
Bryan

---

From: Ben Walton <[email-masked]>
Date: Thu, 31 Dec 2009 13:12:11 -0500

Excerpts from Bryan T. Richardson's message of Thu Dec 31 12:44:57 -0500 2009:

Hi Bryan,

> 'From' address in Sup. If so, cool. If not then oh well, I love Sup

You can use one or both of the before-edit and reply-from hooks to do
what you need.  Here is my reply-from hook
(~/.sup/hooks/reply-from.rb):

--snip--
case [message.to, message.cc].flatten.to_s
when /opencsw/, /bolthole/ then "bwalton@OBFUSCATED"
else "bwalton@DEFAULT"
end
--snip--

HTH.
-Ben
-- 
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Tero Tilus <[email-masked]>
Date: Fri, 01 Jan 2010 19:01:22 +0200