Hi,
Jacek Generowicz <
jacek.ge...@googlemail.com> writes:
> Stephen Eglen <
stephe...@gmail.com> writes:
>
>> An alternative way I had thought about it was to do something like "mu
>> cfind > ~/.mailrc" periodically so that we could use the TAB
>> completion facilities already present in message-mode on the mail
>> header lines. (That would require mu cfind outputting the aliases in
>> a suitable format though, or a bit of sed/awk to fix it up.)
>
> Given that mu cfind already supports a number of output formats, perhaps
> it could add a maildir one?
Note, I think that the mutt-alias output format is the same as what
mailrc expects.
I've used mu cfind to export to org-contacts, which gives the
auto-completion etc. but it turned out that one does scale very well
(i.e.., with maybe 2000 contacts, it got really slow).
The issue is that mu cfind uses /all/ e-mail addresses, which includes
addresses seen in mailing lists etc.
So, there's also guile/examples/contacts-export which is able to sort
addresses by their 'newness' or frequency, and limit the number of
matches. I guess the 200 most frequently used addresses should be enough
for most people.
It shouldn't be hard to add some more smartness, e.g. only addresses
from messages where I am the sender + messages with my name in the
To:/Cc: field.
>> Alternatively, Message-mode does have ecomplete.el, which does 'electric
>> completion' similar to firefox et al when typing URLs. This would require
>> the output from 'mu cfind' generating the ~/.ecompleterc file (e.g. via
>> cron) and as far as I can see reading the info, there is no documentation
>> of the format of that file.
>
>> Ideally I'd like to try both of these approaches, but time is lacking,
Oh, I didn't know about ecomplete, thanks! It shouldn't be hard to hook
it up with mu4e; possibly even by filling the ecomplete database
directly from mu4e, so it will 'just work' without any user interaction,
cronscripts etc.
> I understand. I will have approximately 0 minutes available next week to
> think about mu4e, and not many more for a few weeks after that. But I
> hope to do some more tinkering on this later.
>> thought I'd just mention them if you had not seen them. Using the
>> message-mode facilities for completion might be easier for those coming to
>> mu from GNUS.
>
> It's been about a decade since I used Gnus (or Emacs to read mail) and
> have mostly forgotten what the experience was like, so I need this kind
> of pointer. Thanks. Best to avoid re-inventing the wheel.
Indeed! I already noticed a few times that I had re-implemented
message-mode functionality :/
Best wishes,
Dirk.