From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Wed, 17 Dec 2008 14:46:15 -0800 Subject: [sup-talk] a few sup newbie questions In-Reply-To: <1229548441-sup-531@audrey> References: <1229548441-sup-531@audrey> Message-ID: <1229552235-sup-1046@entry> 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