[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mailing list vs "the futur"



On Fri, Aug 10, 2018 at 08:29:34AM -0400, Rich Kulawiec wrote:
> Correct.  Procmail uses a set of rules to decide what to go with messages
> presented to it; those rules are usually based on the contents of message
> headers, but don't have to be.  For example, for this mailing list:
> 
> 	:0:
>         * ^X-Mailing-List:.*<debian-user@lists.debian.org>
>         /home/rsk/linux/debian-user
> 
> Translating, this means that any message which has the specified header
> will be appended to the file named in the last line.

I used to use procmail a couple decades ago, then I switched to Debian,
and Debian installed exim by default, and I started using exim to sort
my mail instead.  My corresponding rule is:

if $h_X-Mailing-List: contains "debian-" then
  save $home/Mail/deb/
  finish
endif

No translation required.  (And I prefer a single mailbox for all my
debian lists, which is why I just match on "debian-" instead of the full
name/address of the list.)

-- 
Dave Sherohman


Reply to: