Subject: [sup-talk] what would be the best way to archive certain messages

From: [email-masked] (Manish Sapariya)
Date: Wed, 30 Jan 2008 19:15:21 +0530

Hi,
I dont want all the list messages in my inbox. How can I do it using hooks?
Is there any message specific interface or property which I can manipulate
in before-add-message hook?

Thanks and Regards,
Manish

---

From: [email-masked] (John Bent)
Date: Wed, 30 Jan 2008 09:09:04 -0700

> in before-add-message hook?
Hey Manish,

Currently the before-add-message hook can only apply labels but cannot be used
to archive messages.  To automatically archive messages, they must be in a
different source.  I achieved this by using fetchmail to pull my mail and
procmail to filter some messages to different mboxes.  I then used 'sup-add
--archive' for those new mboxes.  

John

---

From: [email-masked] (Marcus Williams)
Date: Wed, 30 Jan 2008 16:26:36 +0000

On 30.1.2008, John Bent wrote:
> to archive messages.

message.remove_label :inbox

... works for me :)

Marcus