LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-10-2019, 02:51 AM   #1
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,025

Rep: Reputation: 256Reputation: 256Reputation: 256
Share your maildrop filters?


I have been experimenting with Maildrop as a replacement for Procmail after version-bumping the older version available on SBo to version 3.0.0. (Some adjustment required to the HTML docs and also the installation of an updated courier-unicode package).

It fits neatly between fetchmail and mutt but the syntax of the ~/.mailfilter file has me a little stymied after the relative simplicity of ~/.procmailrc.

Does anybody have some of their own maildrop filters to share? I suspect this will be not only useful for myself but for other procmail users who have just realised, as I have, that there has been almost 2 decades without development for procmail...

My first working example (just to show I have made an effort!):

Code:
#-------------------------------------------#
#    Early days of my maildrop filters :)   #
#-------------------------------------------#

# --> Some Variables... <--  #

DEFAULT=/var/spool/mail/andrew
MAILBOX="$HOME/mail/mailboxes"          
SENDMAIL="/usr/bin/msmtp"
logfile "$HOME/.mailfilter.log"

# --> Sort out the mailing lists...  <--  #

if (/^List-Id:.*ffmpeg-user.ffmpeg.org>/)
    to $MAILBOX/ffmpeg

if (/^List-Id:.*slackbuilds-users.slackbuilds.org>/)
    to $MAILBOX/slackbuilds

# --> Some frequent Forums...  <--  #

if (/^From:.*forum@linuxquestions.org>/)
    to $MAILBOX/linuxquestions

# -->    cc syntax ...     <--  #

if (/^From:.*@iinet.net.au>/)
{
    cc"!another.email@gmail.com"
}
It is pretty basic with all mail going to /var/spool/mail/andrew, filtering going to my local mailboxes in $HOME, a single cc for bills from my isp and logging to $HOME/.mailfilter.log.

Last edited by andrew.46; 08-11-2019 at 12:18 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Maildrop is giving me a headache LiquidKernel Linux - Software 2 09-15-2004 07:53 AM
maildrop and qmail patch conflict mpk25 Linux - Software 1 04-28-2004 04:56 PM
installing maildrop after postfix with mysql kubicon Linux - Networking 0 02-18-2004 07:45 AM
sending mail to maildir -- maildrop kubicon Linux - Networking 4 02-06-2004 07:22 AM
Using maildrop with Courier MTA LiquidKernel Linux - Software 3 08-05-2003 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration