* [sup-talk] Question About Sending New Emails
@ 2009-12-31 17:44 Bryan T. Richardson
2009-12-31 18:12 ` Ben Walton
0 siblings, 1 reply; 4+ messages in thread
From: Bryan T. Richardson @ 2009-12-31 17:44 UTC (permalink / raw)
To: sup-talk
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
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sup-talk] Question About Sending New Emails
2009-12-31 17:44 [sup-talk] Question About Sending New Emails Bryan T. Richardson
@ 2009-12-31 18:12 ` Ben Walton
2010-01-01 17:01 ` Tero Tilus
0 siblings, 1 reply; 4+ messages in thread
From: Ben Walton @ 2009-12-31 18:12 UTC (permalink / raw)
To: sup-talk
[-- Attachment #1.1: Type: text/plain, Size: 737 bytes --]
Excerpts from Bryan T. Richardson's message of Thu Dec 31 12:44:57 -0500 2009:
Hi Bryan,
> '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! :)
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.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-01-04 18:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-31 17:44 [sup-talk] Question About Sending New Emails Bryan T. Richardson
2009-12-31 18:12 ` Ben Walton
2010-01-01 17:01 ` Tero Tilus
2010-01-04 14:10 ` Bryan Richardson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox