On Fri, Aug 10, 2018 at 07:55:00AM -0500, Dave Sherohman wrote: > 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
And maildrop says: if (/^X-Mailing-List:.*debian-/:h) to $home/Mail/deb/ although I would recommend sorting each Debian list to a different folder. -dsr-