NAMElbdb-fetchaddr - grab addresses from mails add append them to lbdb database
SYNOPSISlbdb-fetchaddr [-d dateformat] [-x headerfieldlist] [-c charset] [-a]
DESCRIPTIONlbdb-fetchaddr is a shell script which reads a mail on stdin. It extracts the contents of some header fields (default: `From:', `To:', `Cc:', `Resent-From:', and `Resent-To:') from the mail header (only addresses with a real name) and appends them to $HOME/.lbdb/m_inmail.list. For performance issues lbdb-fetchaddr appends new addresses to this file without removing duplicates. To get rid of duplicates, the program lbdb-munge exists, which is run by m_inmail if needed and removes duplicates.
To use this program, put the following lines into your $HOME/.procmailrc:
:0hc | lbdb-fetchaddr
lbdb-fetchaddr writes the actual date to the third column of the database by using strftime(3). It uses "%Y-%m-%d %H:%M" as the default date format (e.g. "1999-04-29 14:33"). You can change this by using the -d option to select a different date format string as parameter of lbdb-fetchaddr command like
:0hc | lbdb-fetchaddr -d "%y-%m-%d"which results in e.g. "99-04-29".
SEE ALSOlbdbq(1), lbdb_dotlock(1), procmail(1), procmailrc(5), strftime(3).
CREDITSMost of the really interesting code of this program (namely, the RFC 822 address parser used by lbdb-fetchaddr) was stolen from Michael Elkins' mutt mail user agent. Additional credits go to Brandon Long for putting the query functionality into mutt.
AUTHORThe lbdb package was written by Thomas Roessler <email@example.com> and is now maintained and extended by Roland Rosenfeld <firstname.lastname@example.org>.
[lbdb main page]
Roland Rosenfeld <email@example.com> Last modified: 2016-03-05 12:20:58 - Last compiled: 2016-03-05 12:20:58