<<< Date Index >>>     <<< Thread Index >>>

Re: procmail failed to sort messages



On Wed, Jul 27, 2005 at 12:06:42AM -0600, Bob Proulx wrote:
> And I hate to encourage the off-topic posting.  But I can't resist
> sharing.  And I will bring it back on-topic at the end.  Here is my
> recipe.
> 
>   :0
>   * ^X-Mailing-List: <debian-[-a-zA-Z0-9]+@xxxxxxxxxxxxxxxx>
>   * ^X-Mailing-List: <debian-\/[-a-zA-Z0-9]+
>   Lists/debian/$MATCH/
> 
> Because this uses $MATCH it works for all of the lists from that site.
> Each are stored in their own folder based upon the match pattern.  I
> can subscribe and unsubscribe and not change anything in my filtering.
> 
Coo, clever that, only works for a set of mailing lists with a common
part in the header of course.  I suppose one could look for the common
parts of the major mailing list software in the headers.


> To bring this back on-topic I configure mutt to dynamically set the
> mailboxes based upon what exists in the directory.
> 
>   mailboxes `echo $HOME/Mail/Lists/debian/*`
> 
I do this too with a very similar mailboxes line in my muttrc, I also
set the 'lists' and 'subscribe' dynamically by using the aliases I
have (in a file called 'lists') thus:-

    lists `awk '!/#/ {printf("%s ", $2)}' ~/.mutt/lists`
    subscribe `awk '!/#/ {printf("%s ", $2)}' ~/.mutt/lists`

This means that when I subscribe to a new list all I have to do is add
a procmail recipe (I subscribe to lists from all over the place) and
an alias in the lists file.


> This allows me to walk through all of the new mail in the current list
> of subscribed mailboxes.  I don't need to change any configuration
> when subscribing to new lists or unsubscribing.  It is very convenient.
> 
> Bob

-- 
Chris Green (chris@xxxxxxxxxxx)

    "Never ascribe to malice that which can be explained by incompetence."