summaryrefslogtreecommitdiffstats
path: root/doc/wiki/mutt.txt
blob: 6cebfc21298a303505ffd83abf73d1a230092726 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Contents


 1. Using mutt with IMAP

     1. configuration

     2. problems

         1. Move read messages to mbox

         2. New mail in a folder just left

         3. Authentication realm

 2. References

Using mutt with IMAP
====================

configuration
-------------

First, mutt needs to be told to use IMAP. To achieve this, edit '~/.muttrc' (or
a file it 'source's) to contain:

---%<-------------------------------------------------------------------------
set spoolfile=imap://user@hostname/INBOX
set folder=imap://user@hostname/
---%<-------------------------------------------------------------------------

problems
--------

Move read messages to mbox
--------------------------

If mutt asks 'Move read messages to /home/$user/mbox? ([no]/yes):'

Your alternatives (to set in '~/.muttrc') are (pick one and ignore the others):

 1. don't ask about moving messages, just do it:

    ---%<---------------------------------------------------------------------
    set move=yes
    ---%<---------------------------------------------------------------------

 2. don't ask about moving messages and _don't_ do it:

    ---%<---------------------------------------------------------------------
    set move=no
    ---%<---------------------------------------------------------------------

 3. ask about moving message, default answer 'yes':

    ---%<---------------------------------------------------------------------
    set move=ask-yes
    ---%<---------------------------------------------------------------------

 4. ask about moving message, default answer 'no':

    ---%<---------------------------------------------------------------------
    set move=ask-no
    ---%<---------------------------------------------------------------------

New mail in a folder just left
------------------------------

There is a bug with dovecot in <=0.99. It can sometimes make mutt think there
is new email in a mailbox you just
'left'...https://dovecot.org/list/dovecot/2004-February/002950.html

Authentication realm
--------------------

If you are using IMAP with SASL and get error messages like 'Invalid realm' in
your dovecot log files, try putting this in your '.muttrc' or '/etc/Muttrc]':

---%<-------------------------------------------------------------------------
set imap_authenticators="plain"
---%<-------------------------------------------------------------------------

It might be easier however to just put the following in your 'dovecot.conf':

For Dovecot 1.0:
  ---%<-----------------------------------------------------------------------
  auth default {
    mechanisms = plain
  }
  ---%<-----------------------------------------------------------------------

For Dovecot 0.99:
  ---%<-----------------------------------------------------------------------
  auth_mechanisms = plain
  ---%<-----------------------------------------------------------------------

References
==========

 * Official mutt homepage [http://www.mutt.org/]
 * mutt with IMAP documentation [http://mutt.sourceforge.net/imap/]
 * http://jamespo.org.uk/blog/archives/000271.html

(This file was created from the wiki on 2019-06-19 12:42)