<<< Date Index >>>     <<< Thread Index >>>

Re: addressbook and aliasfile



On date Tuesday 2007-01-16 18:48:54 +0100, Michelle Konzack muttered:
> Am 2007-01-16 12:31:11, schrieb Patrick Shanahan:
> > look at the package lbdb, especially lbdb-fetchaddr and in mutt the
> > query_command (3.245. query_command).
> > 
> > I use:    set query_command="lbdbq '%s'"  # calling lbdbq    
> 
> This is for FETCHING the E-Mail from a Database.
> Which I do already with "psql -c "SELECT ..."
> 
> What I need is a function to WRITE to the database instead
> to the ALIAS file.

You need to parse the message file for the address and then perform an
insert into the database with the fetched information (name, email
address).

You can do this with a shell/psql script and a macro as: 
macro \ca <pipe-message>your-script<return>

HTH
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)