* Patrick Shanahan <p...@opensuse.org> [2016-06-16 00:25]:
> * Peter P. <peterpar...@fastmail.com> [06-15-16 16:32]:
> > * Marcelo Laia <marcelol...@gmail.com> [2016-06-15 21:00]:
> > > Em 15 de jun de 2016 15:41, "Peter P." <peterpar...@fastmail.com> 
> > > escreveu:
> > > >
> > > > I found out that the way lbdb collects the addresses from mails I send
> > > > from mutt via lbdb-fetchaddr will create an iso-8859-15 file unless
> > > > specified differently using the (-c) flag.
> > > > Please excuse the noise, and thanks.
> > > > Peter
> > > 
> > > Hi,
> > > 
> > > Have you solved the problem?
> > > 
> > > Please, coul you share the solution?
> > Well I add the -c flag to lbdb-fetchaddr.
> > 
> > When I send mail from mutt I do it as follows:
> > 
> > In .muttrc I have
> >     set sendmail="~/.mutt/mysendmail.sh"
> > 
> > and that script holds the line 
> >     #!/bin/bash
> >     tee >(lbdb-fetchaddr -a -c utf8 -x "to:cc")|/home/peter/bin/msmtpq -a 
> > account $@
> > 
> > which lets lbdb save all to: or cc: addresses to its database in utf8
> > encoding, which is the default locale on my system.
> 
> 
> there is also /usr/bin/lbdb-fetchaddr which contains the line:
> 
>   additional_param=""
> 
> where it can be added.  
Nice! 

Having written a database of addresses in the wrong encoding over the
last 5 years, I feel lbdb-fetchaddr could take a look at the system's
locale by itself, or post an error message if system locale and database
file have different encodings, but that is only wishful thinking.

cheers,
Peter

Reply via email to