On Tue, May 17, 2016 at 10:25:39AM +0100, Paul Tansom wrote:
> ** Chris Green <[email protected]> [2016-05-17 08:31]:
> > On Mon, May 16, 2016 at 04:37:52PM -0700, Ian Zimmerman wrote:
> > > On 2016-05-16 08:31 +0100, Chris Green wrote:
> > > 
> > > FWIW, after using procmail and sieve, and my own module libraries for
> > > both perl and python for a long time, this is exactly what I do now: I
> > > have my own python script driven by a JSON file to do the job.  I find
> > > this the most flexible and liberating way ever, and besides the script
> > > has grown complex enough that I can show it as example code for job
> > > applications :)
> > > 
> > Mines not that complex but does what I need, adding what I asked for
> > originally won't be all that difficult.
> > 
> > I wrote mine to simplify the operation of joining a new mailing list,
> > I just subscribe to the list and add one line to my configuration
> > file.  That routes the list messages to a specific destination and
> > adds a short alias for sending mail to the list.
> > 
> ** end quote [Chris Green]
> 
> For comparison my line from my Sieve configuration for automatically filling
> mail into my list folder is:
> 
> if header :contains ["List-Post"] ["[email protected]"] {
>         fileinto "lists.mutt"; stop; }
> 
> and in Mutt I just use L to reply to the list. Of course this relies on the
> list being setup properly. I have other versions for some lists (mainly using
> List-Id instead of List-Post) and some based on subject for my own automated
> mails from cron jobs. If I wanted to send the mail on to another acount I 
> could
> just use something like:
> 
> if header :contains ["List-Post"] ["[email protected]"] {
>         redirect "[email protected]"; stop; }
> 
> As with most things it is a combination of what you are used to and your
> personal setup that dictates the best solution!
> 
My configuration file (which is all that changes if I add/remove a
mailing list) just has lines like:-

audacity        Li      [email protected]     Audacity-users

The first field becomes my alias for sending messages to the list and
is also the destination mailbox for received messages.  The second
column is the directory the mailbox is in (there's an In and a Tm as
well as Li).  The third field (obviously) is the full list E-Mail
address and the fourth (optional) field is text to be removed from the
subject line if it's found there between [].

The muttrc configuration also automatically uses the above
configuration file to set the 'lists', 'subscribe' and 'mailboxes'
entries.  It's this that tools like procmail (and sieve?) can't do.

-- 
Chris Green

Reply via email to