1LBDB-FETCHADDR(1)                User Manuals                LBDB-FETCHADDR(1)
2
3
4

NAME

6       lbdb-fetchaddr  -  grab  addresses  from  mails add append them to lbdb
7       database
8

SYNOPSIS

10       lbdb-fetchaddr [-d dateformat] [-x headerfieldlist] [-c charset] [-a]
11       lbdb-fetchaddr [-v|-h]
12

DESCRIPTION

14       lbdb-fetchaddr is a shell script  which  reads  a  mail  on  stdin.  It
15       extracts  the  contents of some header fields (default: `From:', `To:',
16       `Cc:', `Resent-From:', and `Resent-To:') from  the  mail  header  (only
17       addresses    with    a    real    name)    and    appends    them    to
18       $HOME/.lbdb/m_inmail.list.   For  performance   issues   lbdb-fetchaddr
19       appends  new addresses to this file without removing duplicates. To get
20       rid of duplicates, the program  lbdb-munge  exists,  which  is  run  by
21       m_inmail if needed and removes duplicates.
22
23       To  use  this  program,  put the following lines into your $HOME/.proc‐
24       mailrc:
25            :0hc
26            | lbdb-fetchaddr
27
28       lbdb-fetchaddr writes the actual date to the third column of the  data‐
29       base  by  using  strftime(3).   It uses "%Y-%m-%d %H:%M" as the default
30       date format (e.g. "1999-04-29 14:33"). You can change this by using the
31       -d  option  to  select  a  different date format string as parameter of
32       lbdb-fetchaddr command like
33            :0hc
34            | lbdb-fetchaddr -d "%y-%m-%d"
35       which results in e.g. "99-04-29".
36

OPTIONS

38       -v     Print version number of lbdb-fetchaddr.
39
40       -h     Print short help of lbdb-fetchaddr.
41
42       -d dateformat
43              Use the given date format using strftime(3) syntax.
44
45       -x headerfields
46              A colon  separated  list  of  header  fields,  which  should  be
47              searched  for  mail  addresses.   If this option isn't given, we
48              fall back to `from:to:cc:resent-from:resent-to'.
49
50       -c charset
51              The charset which will be  used  to  write  the  database.  This
52              should  be  the  charset which the application expects (normally
53              the one from your current locale).  If this option isn't  given,
54              we fall back to `iso-8859-15'.
55
56       -a     Also  grab addresses without a real name.  Use the local part of
57              the mail address as real name.
58

FILES

60       $HOME/.lbdb/m_inmail.list
61       /usr/libexec/lbdb/fetchaddr
62       /usr/libexec/lbdb/m_inmail
63

SEE ALSO

65       lbdbq(1), lbdb_dotlock(1), procmail(1), procmailrc(5), strftime(3).
66

CREDITS

68       Most of the really interesting code of this program  (namely,  the  RFC
69       822  address  parser  used  by  lbdb-fetchaddr) was stolen from Michael
70       Elkins' mutt mail user agent. Additional credits go to Brandon Long for
71       putting the query functionality into mutt.
72

AUTHOR

74       The  lbdb package was written by Thomas Roessler <roessler@guug.de> and
75       is now  maintained  and  extended  by  Roland  Rosenfeld  <roland@spin‐
76       naker.de>.
77
78
79
80Unix                             October 2005                LBDB-FETCHADDR(1)
Impressum