lbdb-fetchaddr(1) - Linux man page
Name
lbdb-fetchaddr - grab addresses from mails add append them to lbdb databaseSynopsis
lbdb-fetchaddr [-d dateformat] [-x headerfieldlist] [-a]lbdb-fetchaddr [-v|-h]
Description
lbdb-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-fetchaddrlbdb-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".
Options
- -v
- Print version number of lbdb-fetchaddr.
- -h
- Print short help of lbdb-fetchaddr.
- -d dateformat
- Use the given date format using strftime(3) syntax.
- -x headerfields
- A colon separated list of header fields, which should be searched for mail addresses. If this option isn't given, we fall back to 'from:to:cc:resent-from:resent-to'.
- -a
- Also grab addresses without a real name. Use the local part of the mail address as real name.
Files
$HOME/.lbdb/m_inmail.list/usr/lib64/lbdb/fetchaddr
/usr/lib64/lbdb/m_inmail