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
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 at OBFUSCATED" else "bwalton at 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20091231/53710179/attachment-0001.bin>
Ben Walton, 2009-12-31 20:12:> You can use one or both of the before-edit and reply-from hooksAnd of course you can hack the headers too when in editor. -- Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
Ah... hacking of the headers is probably what I want. Thanks! On Fri, Jan 1, 2010 at 10:01 AM, Tero Tilus <tero at tilus.net> 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 > sup-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/sup-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20100104/bb29e09e/attachment.html>