[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sup-talk] More accounts, more send folders, etc.
Excerpts from Vojtěch Aschenbrenner's message of Mon Jul 19 14:55:21 -0400 2010:
> is it possible to configure sup to save sent messages to different
> folders according to mail account? For example if I send mail from
> school account save message to school/sent and if I send mail from
> personal account save it to personal/sent?
Not sure. Maybe somebody else can help with this.
> Next think is, when writing new mail, how to specify which account use?
> Everytime is used default account.
I think you can do this with ~/.sup/hooks/before-send.rb . Here's mine
(actual company name replaced with "widgets"):
unless header["In-reply-to"]
if header["To"] =~ /widgets/
header["From"] = "Mark Alexander <marka@widgets.com>"
else
header["From"] = "Mark Alexander <marka@pobox.com>"
end
end
There are two corresponding accounts in ~/.sup/config.yaml.
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk