1 |
On Sun, Jan 08, 2012 at 06:32:07PM +0000, Mick wrote: |
2 |
> Hi All, |
3 |
> |
4 |
> There are a few mutt users here so I thought of asking here first. |
5 |
> I've tried setting up mutt to use as a mail client instead of kmail. |
6 |
|
7 |
I actually did the change from KMail to Mutt after my KDEPIM kicked the bucket |
8 |
with 4.7.3. |
9 |
|
10 |
> […] GPG questions […] |
11 |
|
12 |
Though I myself have set up a simple GPG key, ther is currently only one person |
13 |
in my list of contacts who does, too. So I don’t have any relevant experience |
14 |
concerning mutt+gpg besides signing my own messages, except for when I’m in |
15 |
certain folders, which can be achieved with: |
16 |
|
17 |
folder-hook . set pgp_autosign |
18 |
folder-hook +some_folder unset pgp_autosign |
19 |
|
20 |
> Finally, kmail has an auto-completion feature for the recipient address and it |
21 |
> suggests as I type the person to send to. Down arrow and enter is all that I |
22 |
> need to press. |
23 |
> […] |
24 |
> Mutt also does not seem to auto-complete any addresses. It uses aliases, but |
25 |
> that implies that I must set up such aliases and use these every time I want |
26 |
> to enter a particular address. This creates the problem of having to remember |
27 |
> each and every alias, rather than typing "fre" and getting a list of Freds, |
28 |
> Freddies, Frederics, etc. or part of the Surname, or part of the email |
29 |
> address itself. |
30 |
|
31 |
Mutt has a completion feature; when you enter an address, you can press ^t to |
32 |
trigger autocompletion. Now the trick is to get mutt to use your contacts. For |
33 |
that you need to install lbdb, which is a contacts management thingy, featuring |
34 |
a number of storage backends (almost like what akonadi was originally intended |
35 |
to do, lol). I simply set lbdb up to use KAddressBook’s std.vcf file and then I |
36 |
can query it using lbdbq. |
37 |
|
38 |
Like so: |
39 |
--------- file: ~/.lbdbrc ----------- |
40 |
METHODS="m_inmail m_vcf m_abook m_muttalias" |
41 |
MUTT_DIRECTORY="$HOME/.mutt" |
42 |
MUTTALIAS_FILES="aliases" |
43 |
VCF_FILES="$HOME/.kde4/share/apps/kabc/std.vcf" |
44 |
|
45 |
Now, using lbdbq, I can query the VCF file, my mutt aliases and some other |
46 |
stuff (inmail is an lbdb-internal database to which you can feed addresses from |
47 |
incoming mail, IIRC, and abook is a textbased address book I tried). |
48 |
|
49 |
In order to use lbdbq for autocompletion in mutt, add the following to muttrc: |
50 |
set query_command="lbdbq '%s'" |
51 |
|
52 |
> The other difficulty is the key shortcuts in mutt do not behave as I would like |
53 |
> them to, but this is that something I could recode so less of a problem. |
54 |
|
55 |
Keyboard shortcuts are always a question of personal preference and of what |
56 |
tutorials/howtos/introductions to mutt you found, read and consider useful. For |
57 |
example, since I converted to vi last year, I added some shortcuts to use m and |
58 |
, (which are below j and k, respectively, to move the pager content up and |
59 |
down, whereas j and k switch messages). |
60 |
|
61 |
-- |
62 |
Gruß | Greetings | Qapla' |
63 |
I forbid any use of my email addresses with Facebook services. |
64 |
|
65 |
The duration of a minute is relative. |
66 |
It depends on the side of the toilet door you are standing on. |