[jp] mutt aliases and jpilot address book

David Williamson nospam3 at starband.net
Mon Jun 16 11:38:21 EDT 2003


Colin - 

	Thanks ... you just saved me a lot of work <g>

		dave w

* Colin Brough <Colin.Brough at blueyonder.co.uk> [2003-06-16 14:41:52 +0100]:
> Something like:
> 
>     jpilot-dump +A'alias %f.%l %f %l <%p5>' -A | grep '@'
> 
> would get you some of the way there... Where there are e-mail
> addresses in the jpilot address book (cruduly, which have an '@' in
> them; assumption, no '@'s in names!) then an alias line like this will
> be generated:
> 
> 	alias FirstName.LastName    FirstName LastName <email at address.com>
> 
> If you dumped this into a file '.aliases_jpilot' and then included the
> line:
> 
> 	source .aliases_jpilot
> 
> in your .muttrc, you'd be away....
> 
> Problems arise if what is in the fields in jpilot won't dovetail into
> mutt's alias format:
> 
>  - if there is no first or last name - you've then got a spare '.' in
>    the alias which you probably don't want;
> 
>  - if there are two e-mail addresses in jpilot, then you get something
>    like <address1 at somewhere.com, address2 at somewhere.com> which won't
>    make much sense.
> 
> If you are able to control/keep consistent the data in jpilot, then
> this may be enough.
> 
> Cheers
> 
> Colin
> 
> ----------------------------------------------------------------------
> Colin Brough                             Colin.Brough at blueyonder.co.uk
> _______________________________________________
> jpilot mailing list
> jpilot at jpilot.org
> http://www.jpilot.org/mailman/listinfo/jpilot



More information about the Jpilot mailing list