Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

zpuskas/abook2procmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTICE: This project has been migrated to Codeberg! This repository has been archived, will receive no further updates, and will be deleted on 2026-09-01!

abook2procmail

A simple script to generate procmail rules from abook based address books.

Usage

Generate an address book rule by running:

$ abook2procmail --procmailrc ~/.procmail/abook.rc

Then in the ~/.procmailrc, close to the top of the file, add the following line:

INCLUDERC=$HOME/.procmail/abook.rc

and enjoy e-mail from senders in the address book landing in the INBOX.

If there are multiple address books, one can use the --address-book option to override the source and the --action option to override what to do with the messages. If multiple rc files are generated, multiple includes will have to be added into ~/.procmailrc.

To ensure that the filtering rules are up to date one can set up a periodic cron job (e.g. once a day) to regenerate the rc file.

Dependencies

  • Python 3.7 or later
  • click 7.x or later

License

Copyright (C) 2020 Zoltan Puskas
Licensed under GPLv3

About

A simple script to generate procmail rules from abook based address books.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages