You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

243 line
7.9 KiB

  1. .TH MW 1 mutt-wizard
  2. .SH NAME
  3. mw \- mutt-wizard \- autoconfigure email accounts for neomutt and isync
  4. .SH SYNOPSIS
  5. .B mw
  6. <command>
  7. .SH DESCRIPTION
  8. .B mw
  9. takes a user email account and sets up a terminal-based email interface with it for
  10. .B neomutt.
  11. This can include offline email with
  12. .B isync/mbsync
  13. and configs for
  14. .B msmtp
  15. for sending mail, and passwords automatically encrypted and stored with
  16. .B pass.
  17. .SH COMMANDS
  18. .TP
  19. .B add
  20. configure an email account
  21. .TP
  22. .B ls
  23. list all email accounts configured by mutt-wizard
  24. .TP
  25. .B delete
  26. delete the configuration files for an already configured email account
  27. .TP
  28. .B purge
  29. totally purge all local mutt-wizard/mbync/msmtp settings
  30. .TP
  31. .B cron
  32. toggle a cronjob that will automatically sync mail with
  33. .B mailsync
  34. as often as you wish
  35. .SH DETAILS
  36. .TP
  37. .B Mail location
  38. If the user chooses to keep offline email with
  39. .B isync,
  40. it will be kept in
  41. .I $MAILDIR
  42. which defaults to
  43. .I $HOME/mail/.
  44. .B notmuch
  45. can be used to index and search this mail by giving this directory when first running
  46. .B notmuch setup.
  47. If you have not set up notmuch before, mutt-wizard will automatically set it up in the background the first time you add an account.
  48. .TP
  49. .B muttrc files
  50. mutt-wizard will create a muttrc file for each created account holding account-specific details. These will appear in
  51. .I $XDG_CONFIG_HOME/mutt/accounts/.
  52. $XGD_CONFIG_HOME default to ~/.config.
  53. Note that mutt-wizard will also source these files and create the bindings to switch between them, and these will appear in your default
  54. .I $XDG_CONFIG_HOME/mutt/muttrc
  55. file.
  56. .TP
  57. .B Mail deletion
  58. Neither
  59. .B delete
  60. or
  61. .B purge
  62. will delete downloaded mail for for safety (and time)'s sake. If you want to delete downloaded mail, do so manually by removing it from the directory above.
  63. .TP
  64. .B Default settings
  65. mutt-wizard has many default settings that focus on making it aesthetically pleasing and supplying more vim-like bindings. These can be found in
  66. .I /usr/share/mutt-wizard/mutt-wizard.muttrc
  67. and the default mailcap file can be found in
  68. .I
  69. /usr/share/mutt-wizard/mailcap.
  70. Any of these settings can be overwritten in
  71. .I $XDG_CONFIG_HOME/mutt/muttrc,
  72. but be mindful that your overriding binds should appear after the
  73. .I
  74. mutt-wizard.muttrc
  75. file is sourced.
  76. .TP
  77. .B Detecting server settings
  78. mutt-wizard has a repository of email services and their server information kept in
  79. .I /usr/share/mutt-wizard/domains.csv
  80. which is used to automatically configure email settings.
  81. If your email provider is not found there, it will prompt you to input your email service's IMAP and SMTP server information which can usually be found by searching online.
  82. If you would like to help develop mutt-wizard for others, you are invited to add this service information to
  83. .I domains.csv
  84. on mutt-wizard's Github <https://github.com/lukesmithxyz/mutt-wizard> or Gitlab <https://gitlab.com/lukesmithxyz/mutt-wizard> pages.
  85. .TP
  86. .B Gmail accounts
  87. Google will require you to allow "less-secure" (third party) applications or use two-factor authentication in order to access their IMAP servers to download your mail.
  88. If you use Gmail, be sure to handle this before running mutt-wizard <https://support.google.com/accounts/answer/6010255>.
  89. .B Protonmail accounts
  90. Protonmail users must use the Protonmail Bridge <https://protonmail.com/bridge/> to access their IMAP and SMTP servers.
  91. This too should be configured before running mutt-wizard.
  92. .B Enterprise and university accounts
  93. Many universities and businesses might host their domain's email via Google or another service.
  94. This often requires a special IMAP/SMTP-specific password that you must generate and use.
  95. Again, mutt-wizard can handle these systems, but only once they've been set up.
  96. .TP
  97. .B Password decryption
  98. mutt-wizard uses
  99. .I pass
  100. and therefore
  101. .I gpg
  102. to decrypt your passwords.
  103. Provided your GPG key has a password, this might mean that you will be prompted for your GPG password the first time you sync or send mail in a session.
  104. Once your password is cached, it might also expire later as well.
  105. Because of this I strongly recommend the program
  106. .I pam-gnupg
  107. <https://github.com/cruegge/pam-gnupg> which automatically unlocks your GPG password on login and keeps it active.
  108. This gives you secure access to all your email accounts on your system without ever having to input a password.
  109. If you don't want to use this program, you can also increase the cache time of an inputted GPG password with the
  110. .I default-cache-ttl
  111. and
  112. .I max-cache-ttl
  113. variables in your
  114. .I
  115. gpg-agent.conf.
  116. .SH MUTT-WIZARD'S NEOMUTT CONFIGURATION
  117. Here is a list of not only mutt-wizard's particular defaults, but what you need, to get the most out of email accounts configured with mutt-wizard.
  118. .TP
  119. .B Color
  120. mutt-wizard's default settings add color to messages in the index and color mail details to make them easier to see.
  121. New mail, in addition to being marked by the typical N, will also be bold.
  122. .TP
  123. .B Movement with h/j/k/l
  124. Use vim keys to move down
  125. .I j
  126. or up
  127. .I k
  128. in mail, while
  129. .I l
  130. opens mail, then the attachment view, then an attachment, while
  131. .I h
  132. is the reverse.
  133. While mail is open, go to next or previous mail with
  134. .I J
  135. and
  136. .I K.
  137. In the mail index,
  138. .I d
  139. and
  140. .I u
  141. go down and up by a half page and
  142. .I gg
  143. and
  144. .I G
  145. go to the very top and very bottom.
  146. .TP
  147. .B Search mail
  148. If you have
  149. .B notmuch
  150. configured with your proper mail directory (see above), you may run
  151. .I ctrl-f
  152. to search for mail containing any given sequence.
  153. Even without notmuch,
  154. .I L
  155. limits mail, showing only those with the given sequence in the subject while
  156. .I A
  157. shows all mail (same as limiting to "all").
  158. .TP
  159. .B Deleting mail
  160. .I D
  161. deletes mail, while
  162. .I U
  163. undeletes it (type in mail number to get to deleted mail). Note that
  164. .I S
  165. saves your mailbox, finalizing deletion. If you have a
  166. .I Trash
  167. box, deleted mail is moved there. If you want it to skip that and simply be deleted, comment out or remove the
  168. .I set trash
  169. line in that account's muttrc.
  170. .TP
  171. .B Send mail
  172. .I m
  173. creates a new mail message;
  174. .I r
  175. replies to the selected message;
  176. .I R
  177. replies all to the selected message and
  178. .I f
  179. fowards the selected message.
  180. .TP
  181. .B Compose mail screen
  182. Once you write mail and save the buffer you will be brought to the compose screen. Press
  183. .I a
  184. to add attachments, use
  185. .I s/t/c/b/d
  186. to change the subject/to/CC/BCC/description. Press
  187. .I S
  188. to change the signature/encryption. Press
  189. .I y
  190. to send the mail.
  191. .TP
  192. .B Saving and autocompleting email addresses with abook
  193. Install the optional dependency abook and you will be able to save the sender's email address with
  194. .I a.
  195. Once this is done, when you are typing in any email/contact prompt, you may press
  196. .I Tab
  197. to find contacts matching your input. Although abook is often used with mutt, it is also a useful program in its own right.
  198. .TP
  199. .B Switching and moving mail between mailboxes
  200. The
  201. .I g
  202. key can be paired with several other keys to automatically move to another mailbox: gi: Inbox; gs: Sent; gd: Drafts; ga: Archive; gS: Spam; gj: Junk; gt: Trash. These bindings will only be present for accounts that have the boxes in question. Instead of
  203. .I g,
  204. you can also press
  205. .I C
  206. to copy mail or
  207. .I M
  208. to move mail to the same boxes.
  209. .TP
  210. .B Switching between accounts
  211. mutt-wizard can configure as many as nine accounts each numbered by the lowest available number when configured. Press
  212. .I i
  213. followed by an account's number to change to that account: i2, i5, etc.
  214. .I ctrl-b
  215. to open a menu to select a url you want to open in you browser.
  216. .TP
  217. .B Sidebar
  218. mutt-wizard enables the sidebar by default which displays your account's boxes with mail tallies.
  219. .I B
  220. will toggle the sidebar. Move up and down in it with
  221. .I ctrl-k/j.
  222. Open a box with
  223. .I ctrl-o.
  224. .TP
  225. .B More information
  226. Remember that you can press
  227. .I ?
  228. at any time in neomutt to get a list of all key-bindings and functions. This list can also vary for different context menus.
  229. .SH AUTHORS
  230. Written by Luke Smith <luke@lukesmith.xyz> originally in 2018.
  231. .SH LICENSE
  232. GPLv3
  233. .SH SEE ALSO
  234. .BR neomutt (1),
  235. .BR neomuttrc (1)
  236. .BR mbsync (1),
  237. .BR msmtp (1),
  238. .BR notmuch (1),
  239. .BR abook (1)