Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Mark Alexander <marka@pobox.com>
To: "Vojtěch Aschenbrenner" <vojtech@aschenbrenner.cz>
Cc: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] More accounts, more send folders, etc.
Date: Mon, 19 Jul 2010 15:47:32 -0400	[thread overview]
Message-ID: <1279568336-sup-3126@r61> (raw)
In-Reply-To: <20100719185521.GA16709@nb-asch.cust.nbox.cz>

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

  parent reply	other threads:[~2010-07-19 20:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19 18:55 Vojtěch Aschenbrenner
2010-07-19 19:28 ` Damien Leone
2010-07-19 19:47 ` Mark Alexander [this message]
2010-07-19 19:13 Vojtěch Aschenbrenner

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=1279568336-sup-3126@r61 \
    --to=marka@pobox.com \
    --cc=sup-talk@rubyforge.org \
    --cc=vojtech@aschenbrenner.cz \
    /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