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

Re: aliasing mailing lists



Rocco Rutte wrote:
> I have lines like these in .procmailrc:
> 
>   #subscribe mutt-users@xxxxxxxx
>   #list mutt-users@xxxxxxxxx
>   :0
>   * ^Sender: owner-mutt-users@mutt\.org
>   IN.mutt-users/
> 
>   #subscribe mutt-dev@xxxxxxxx
>   #list mutt-dev@xxxxxxxxx
>   :0
>   * ^Sender: owner-mutt-dev@mutt\.org
>   IN.mutt-dev/

Those are very static rules however.  I prefer the following approach.

  :0
  * ^Sender: owner-mutt-[-a-zA-Z0-9]+@xxxxxxxx
  * ^Sender: owner-mutt-\/[-a-zA-Z0-9]+
  $MAILDIR/Lists/mutt/$MATCH/

That matches all of the mutt lists and stores them in the matching
subdirectory.  One rule handles the entire site.  I will include a
partial list of popular mail list sites for examples.

Bob

################################################################

:0
* ^Sender: owner-mutt-[-a-zA-Z0-9]+@xxxxxxxx
* ^Sender: owner-mutt-\/[-a-zA-Z0-9]+
$MAILDIR/Lists/mutt/$MATCH/

################################################################

:0
* ^list-post: <mailto:[-a-zA-Z0-9]+@xxxxxxxxxxxxxxxxxxxxx>
* ^list-post: <mailto:\/[-a-zA-Z0-9]+
$MAILDIR/Lists/svn/$MATCH/

################################################################

:0
* ^X-BeenThere: [-a-zA-Z0-9]+@xxxxxxx
* ^X-BeenThere: \/[-a-zA-Z0-9]+
$MAILDIR/Lists/gnu/$MATCH/

################################################################

:0
* ^X-BeenThere: ubuntu-[-a-zA-Z0-9]+@xxxxxxxxxxxxxxxx
* ^X-BeenThere: ubuntu-\/[-a-zA-Z0-9]+
$MAILDIR/Lists/ubuntu/$MATCH/

################################################################

:0
* ^X-Mailing-List: <debian-[-a-zA-Z0-9]+@xxxxxxxxxxxxxxxx>
* ^X-Mailing-List: <debian-\/[-a-zA-Z0-9]+
$MAILDIR/Lists/debian/$MATCH/

################################################################

:0
* ^X-BeenThere: [-a-zA-Z0-9]+@xxxxxxxxxxxxxxxxxxx
* ^X-BeenThere: \/[-a-zA-Z0-9]+
$MAILDIR/Lists/debian/$MATCH/

################################################################

:0
* ^X-BeenThere: [-a-zA-Z0-9]+@xxxxxxxxxxxxxxxxxxxxxxx
* ^X-BeenThere: \/[-a-zA-Z0-9]+
$MAILDIR/Lists/debian/$MATCH/

################################################################