Hi all,

For basic usage, I use abook and have

  set query_command="abook --datafile $XDG_CONFIG_HOME/Email/Mutt/addresses  
--mutt-query '%s'"
  macro index a "|abook --datafile $XDG_CONFIG_HOME/Email/Mutt/addresses 
--add-email\n" 'add sender to abook'
  macro pager a "|abook --datafile $XDG_CONFIG_HOME/Email/Mutt/addresses 
--add-email\n" 'add sender to abook'

in my config file, so that I can press Q to search for a "To" address
when I want to send a new email (and a to add addresses in emails I've
received to my address book). I think this is a fairly standard setup.

How do I set Cc and Bcc addresses in new emails though, please? I
haven't been able to find this information *anywhere* (of course, it's
entirely possible that I'm a myopic idiot!).

Or am I supposed to do this in the resulting editor buffer?

If so, I use mail-mode in emacs for composing emails, and I know that
C-c C-f C-c will take me to the Cc header, for example, and one can
then do

  C-u M-! abook --datafile ~/.config/Email/Mutt/addresses --mutt-query <some 
text>

and the resulting address entry will be inserted into the buffer, but
it's... icky (in at least a couple of ways). I'm rather hoping that
there's a better way, preferably using mutt to facilitate querying and
inserting, but if there's decent emacs/abook integration that someone
reading this happens to know about, I'd be happy to hear about that
too.

Thanks.

Reply via email to