From: marco-oweber@gmx.de (Marc Weber)
Subject: [sup-talk] Handling big mailing lists
Date: Wed, 29 Jul 2009 14:54:11 +0200 [thread overview]
Message-ID: <1248871866-sup-9988@nixos> (raw)
In-Reply-To: <m3zlaovx3t.fsf@iny.iki.fi>
You can use hooks to add labels:
my "~/.sup/hooks/before-add-message.rb":
def matchR(email)
not message.recipients.find{ |to| /^#{email}$/i =~ to.email}.nil?
end
def matchRAddLabel(email, label, inbox = 0)
if matchR email then
message.add_label label
message.remove_label :inbox unless inbox
end
end
def importantFrom(email)
message.add_label :Starred if message.from.email == email
end
importantFrom "info at webkos.de"
matchRAddLabel("mod_python at modpython.org","mod-python", 1)
matchRAddLabel("mod_python at modpython.org","mod-python", 0)
if message.subj =~ /^Project Notification$/ && message.from.email == "info at guru.com" then
message.add_label "GURU_PROJECT_NOTIFICATION"
message.add_label "delete_after_one_month"
end
if message.subj =~ /^WEBKOS_/ then
message.remove_label :inbox
message.add_label "WEBKOS_"
end
So adding labels onle if a contsraint is met is easy.
About deleting mails: There is sup-sync-back. So there must be a way to delete
"old" / whatever mails. I haven't used it yet.
I'm new to sup myself.
Yours
Marc Weber
next prev parent reply other threads:[~2009-07-29 12:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-29 6:09 Ilpo Nyyssönen
2009-07-29 12:54 ` Marc Weber [this message]
2009-07-29 13:46 ` William Morgan
2009-07-29 17:24 ` Ilpo Nyyssönen
2009-08-03 17:31 ` 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=1248871866-sup-9988@nixos \
--to=marco-oweber@gmx.de \
/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