>> Let's say I want to save to folder "Spam.spam" all the messages that
>> have landed in folder "Spam.unsure" no matter who they're from or to.
> Or most, or even some of the messages.  [...] In other words I'm
> looking for a save-hook or fcc-save-hook based on specific folders
> alone, not on message properties, unless the message-properties
> applied to all messages.

The way I solved spam message manipulation does not involve hooks but
macros and might work for you.

First, I bind a save-to-spam-folder macro; in .muttrc:

        macro index S s=Spam.spam\n
        macro pager S s=Spam.spam\n

(“S” is arbitrary; by default bound to `skip-quoted` which I don't use).

So “Shift-S” moves the current mail message to the Spam.spam folder.

In my Spam.unsure folder, if I find no ham, I can flush everything by
matching all messages (“Shift-T“ then “.”, enter) then « S ».



-- 
 --====|====--
    --------================|================--------
        Patrice Levesque
         http://ptaff.ca/
        [email protected]
    --------================|================--------
 --====|====--
--

Attachment: signature.asc
Description: Digital signature

Reply via email to