From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] a few sup newbie questions
Date: Wed, 17 Dec 2008 14:46:15 -0800 [thread overview]
Message-ID: <1229552235-sup-1046@entry> (raw)
In-Reply-To: <1229548441-sup-531@audrey>
Reformatted excerpts from marianne.promberger+sup-talk's message of 2008-12-17:
> Thanks for writing such a powerful app! I'm new to sup and am
> wondering whether any of the following are possible:
Hi and welcome!
> (1) Automatically apply labels to incoming mail defined on search
> patterns?
Stuff like that is handled by Sup's hook system. The plus side is that
it's very flexible; the downside is that you have to write Ruby code. In
this case, check out the before-add-message hook. ("sup -l" will list
all the hooks and some brief documentation.)
In my case, I use something like:
to_string = message.recipients.map { |t| t.email }.join(" ")
case to_string
when /\bgit at vger.kernel.org\b/
message.add_label :git
message.remove_label :inbox
when /\bsup-talk at rubyforge.org\b/
message.add_label :sup
# etc...
> (2) Save search history across sup sessions, so that I can use
> up-arrow to access terms I searched for last time I read mail in sup?
Not implemented, but a good idea, and probably pretty easy!
> (3) Are there search patterns like the "~P" and "~p" in mutt, that is,
> matching everything from or to "me", as defined by the alternates in
> ~/.sup/config.yaml?
You can search for things like "from:me" or "to:me". That should work
with :alternates, but unfortunately doesn't work if you use :regexen.
> (4) Is there any way to send several drafts at once? (I'm assuming
> there is no way to postpone a message other than saving it as a
> draft?). Tagging them and then "enter" or "y" did not work.
Not implemented, but a good idea, and definitely easy to do.
--
William <wmorgan-sup at masanjin.net>
next prev parent reply other threads:[~2008-12-17 22:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-17 21:37 Marianne Promberger
2008-12-17 22:46 ` William Morgan [this message]
2008-12-29 17:27 ` Marianne
2008-12-29 18:10 ` Marc Hartstein
2008-12-30 9:53 ` Marianne
2009-01-02 12:53 ` William Morgan
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=1229552235-sup-1046@entry \
--to=wmorgan-sup@masanjin.net \
/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