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.
 
 
 
 

302 lines
11 KiB

  1. .\" Automatically generated by Pandoc 2.9.2.1
  2. .\"
  3. .TH "MUTT-WIZARD" "1" "mutt-wizard" "" ""
  4. .hy
  5. .SH NAME
  6. .PP
  7. mutt-wizard - autoconfigure email accounts for neomutt and isync
  8. .SH SYNOPSIS
  9. .PP
  10. \f[B]mutt-wizard\f[R] [ \f[I]OPTIONS\f[R] ]
  11. .SH DESCRIPTION
  12. .PP
  13. \f[B]mutt-wizard\f[R] takes a user email account and sets up a
  14. terminal-based email interface for it with \f[B]neomutt.\f[R] This can
  15. include offline email with \f[B]isync/mbsync\f[R] and configs for
  16. \f[B]msmtp\f[R] for sending mail, and also passwords automatically
  17. encrypted and stored with \f[B]pass.\f[R]
  18. .SH COMMANDS
  19. .TP
  20. \f[B]-a your\[at]email.com\f[R]
  21. add an email address
  22. .TP
  23. \f[B]-l\f[R]
  24. list all email accounts configured by mutt-wizard
  25. .TP
  26. \f[B]-d\f[R]
  27. pick an already configured account and remove its configuration
  28. .TP
  29. \f[B]-D your\[at]email.com\f[R]
  30. remove a configured account without confirmation
  31. .TP
  32. \f[B]-y your\[at]email.com\f[R]
  33. download and upload mail for an email account
  34. .TP
  35. \f[B]-Y\f[R]
  36. sync all email accounts
  37. .TP
  38. \f[B]-t 15\f[R]
  39. toggle a cronjob that syncs your mail every 15 minutes (or any other
  40. number under 60)
  41. .TP
  42. \f[B]-T\f[R]
  43. toggle a cronjob without specifying minutes between sync
  44. .TP
  45. \f[B]-r\f[R]
  46. reorder account shortcut numbers
  47. .TP
  48. \f[B]-c\f[R]
  49. change neomutt theme
  50. .SH OPTIONS FOR ADDING ACCOUNTS
  51. .PP
  52. These can be specified on the command line, otherwise, you will be
  53. prompted for what is necessary.
  54. mutt-wizard knows the IMAP/SMTP server information for most email
  55. providers, so specifying them is usually redundant.
  56. .TP
  57. \f[B]-u billy\f[R]
  58. Account logon/username if required and different from email address.
  59. .TP
  60. \f[B]-n Billy\f[R]
  61. Real name which will appear in emails.
  62. Should be put in quotes if multiple words.
  63. .TP
  64. \f[B]-m number\f[R]
  65. Set a maximum number of messages to be stored offline.
  66. .TP
  67. \f[B]-i\f[R]
  68. IMAP/POP server address
  69. .TP
  70. \f[B]-I\f[R]
  71. IMAP/POP server port (assumed to be 993 for IMAP and 995 for POP if not
  72. specified)
  73. .TP
  74. \f[B]-s\f[R]
  75. SMTP server address
  76. .TP
  77. \f[B]-S\f[R]
  78. SMTP server port (assumed to be 465 if not specified)
  79. .TP
  80. \f[B]-x\f[R]
  81. Account password.
  82. You will be prompted for the password interactively if this option is
  83. not given.
  84. \f[B]-P\f[R] Pass Prefix.
  85. The password will be stored using pass at <passprefix><email>
  86. .SH OTHER OPTIONS
  87. .TP
  88. \f[B]-f\f[R]
  89. Force account creation and guess mailboxes without attempting to connect
  90. to server.
  91. Otherwise if connection cannot be made, the configured account settings
  92. will not be persistent.
  93. .TP
  94. \f[B]-o\f[R]
  95. Create settings for an account to be used online only without mail
  96. syncing abilities.
  97. Without \f[B]-f\f[R] connection will still be attempted in setup to
  98. discover mailboxes.
  99. .TP
  100. \f[B]-X\f[R]
  101. When removing an email profile with either \f[I]-d\f[R] or \f[I]-D,\f[R]
  102. also delete the local mail (will not delete the mail on the server).
  103. .TP
  104. \f[B]-p\f[R]
  105. Use POP protocol instead of IMAP.
  106. Requires \f[I]mpop\f[R] to download mail after configuration.
  107. Server details can still be given with the \f[I]-i\f[R] and \f[I]-I\f[R]
  108. options as if it were a IMAP.
  109. .SH DETAILS
  110. .TP
  111. \f[B]mailsync\f[R]
  112. mutt-wizard calls a script \f[I]mailsync\f[R] to sync mail.
  113. This script additionally indexes new mail with notmuch and gives you a
  114. notification if new mail has arrived.
  115. If you want to bypass its additional features, you can always just run
  116. \f[I]mbsync -a\f[R] to sync your mail directly.
  117. .TP
  118. \f[B]Mail location\f[R]
  119. If the user chooses to keep offline email with \f[B]isync,\f[R] it will
  120. be kept in \f[I]\[ti]/.local/share/mail/.\f[R] \f[B]notmuch\f[R] can be
  121. used to index and search this mail by giving this directory when first
  122. running \f[B]notmuch setup.\f[R] If you have not set up notmuch before,
  123. mutt-wizard will automatically set it up in the background the first
  124. time you add an account.
  125. .TP
  126. \f[B]muttrc files\f[R]
  127. mutt-wizard will create a muttrc file for each created account holding
  128. account-specific details.
  129. These will appear in \f[I]\[ti]/.config/mutt/accounts/\f[R] and can be
  130. edited by the user if needbe.
  131. Note that the mutt-wizard will also source these files and create the
  132. bindings to switch between them, and these will appear in your default
  133. \f[I]\[ti]/.config/mutt/muttrc\f[R] file.
  134. .TP
  135. \f[B]Mail deletion\f[R]
  136. mutt-wizard\[aq]s delete action will delete configuration files and
  137. \f[I]not\f[R] downloaded mail for safety (and time)\[aq]s sake.
  138. If you want to delete downloaded mail, do so manually by removing it
  139. from the directory above.
  140. .TP
  141. \f[B]Default settings\f[R]
  142. The mutt-wizard has many default settings that focus on making it
  143. aesthetically pleasing and supplying more vim-like bindings.
  144. These can be found in
  145. \f[I]/usr/local/share/mutt-wizard/mutt-wizard.muttrc\f[R] and the
  146. default mailcap file can be found in
  147. \f[I]/usr/local/share/mutt-wizard/mailcap.\f[R] Any of these settings
  148. can be overwritten in \f[I]\[ti]/.config/mutt/muttrc,\f[R] but be
  149. mindful that your overriding binds should appear after the
  150. \f[I]mutt-wizard.muttrc\f[R] file is sourced.
  151. .TP
  152. \f[B]Detecting server settings\f[R]
  153. mutt-wizard has a repository of email services and their server
  154. information kept in \f[I]/usr/local/share/mutt-wizard/domains.csv\f[R]
  155. which is used to automatically configure email settings.
  156. If your email provider is not found there, it will prompt you to input
  157. your email service\[aq]s IMAP and SMTP server information which can
  158. usually be found by searching online.
  159. .PP
  160. If you would like to help develop mutt-wizard for others, you are
  161. invited to add this service information to \f[I]domains.csv\f[R] on
  162. mutt-wizard\[aq]s Github <https://github.com/lukesmithxyz/mutt-wizard>
  163. or Gitlab <https://gitlab.com/lukesmithxyz/mutt-wizard> pages.
  164. .TP
  165. \f[B]Gmail accounts\f[R]
  166. Google will require you to allow \[dq]less-secure\[dq] (third party)
  167. applications or remove two-factor authentication in order to access
  168. their IMAP servers to download your mail.
  169. If you use Gmail, be sure to handle this before running mutt-wizard
  170. <https://support.google.com/accounts/answer/6010255>.
  171. .TP
  172. \f[B]Enterprise and university accounts\f[R]
  173. Many universities and businesses might host their domain\[aq]s email via
  174. Google or another service.
  175. This often requires a special IMAP/SMTP-specific password that you must
  176. generate and use.
  177. Again, mutt-wizard can handle these systems, but only once they\[aq]ve
  178. been set up.
  179. .TP
  180. \f[B]Password decryption\f[R]
  181. mutt-wizard uses \f[I]pass\f[R] and therefore \f[I]gpg\f[R] to decrypt
  182. your passwords.
  183. Provided your GPG key has a password, this might mean that you will be
  184. prompted for your GPG password the first time you sync or send mail in a
  185. session.
  186. Once your password is cached, it might also expire later as well.
  187. .PP
  188. Because of this I strongly recommend the program \f[I]pam-gnupg\f[R]
  189. <https://github.com/cruegge/pam-gnupg> which automatically unlocks your
  190. GPG password on login and keeps it active, thus giving you, with
  191. mutt-wizard, secure access to all your email accounts on your system
  192. without ever having to input a password.
  193. .PP
  194. If you don\[aq]t want to use this program, you can also increase the
  195. cache time of an inputted GPG password with the
  196. \f[I]default-cache-ttl\f[R] and \f[I]max-cache-ttl\f[R] variables in
  197. your \f[I]gpg-agent.conf.\f[R]
  198. .SH MUTT-WIZARD\[aq]S NEOMUTT CONFIGURATION
  199. .PP
  200. Here is a list of not only mutt-wizard\[aq]s particular defaults, but
  201. what you need to get the most out of email accounts configured with
  202. mutt-wizard.
  203. .TP
  204. \f[B]Color\f[R]
  205. The mutt-wizard\[aq]s default settings add color to messages in the
  206. index and color mail details to make them easier to see.
  207. New mail, in addition to being marked by the typical N, will also be
  208. bold.
  209. .TP
  210. \f[B]Change theme\f[R]
  211. The mutt-wizard\[aq]s default theme is created by Luke Smith and its
  212. file name is theme-LukeSmith.muttrc in /usr/share/mutt-wizard, To add
  213. new themes, place the file in the same location with the default name as
  214. follows theme-\f[I]name\f[R].muttrc where \f[I]name\f[R] is the name of
  215. theme.
  216. .TP
  217. \f[B]Movement with h/j/k/l\f[R]
  218. Use vim keys to move down \f[I]j\f[R] or up \f[I]k\f[R] in mail, while
  219. \f[I]l\f[R] opens mail, then the attachment view, then an attachment,
  220. while \f[I]h\f[R] is the reverse.
  221. While mail is open, go to next or previous mail with \f[I]J\f[R] and
  222. \f[I]K.\f[R] In the mail index, \f[I]d\f[R] and \f[I]u\f[R] go down and
  223. up by a half page and \f[I]gg\f[R] and \f[I]G\f[R] go to the very top
  224. and very bottom.
  225. .TP
  226. \f[B]Search mail\f[R]
  227. If you have \f[B]notmuch\f[R] configured with your proper mail directory
  228. (see above), you may run \f[I]ctrl-f\f[R] to search for mail containing
  229. any given sequence.
  230. Even without notmuch, \f[I]L\f[R] limits mail, showing only those with
  231. the given sequence in the subject while \f[I]A\f[R] shows all mail (same
  232. as limiting to \[dq]all\[dq]).
  233. .TP
  234. \f[B]Deleting mail\f[R]
  235. \f[I]D\f[R] deletes mail, while \f[I]U\f[R] undeletes it (type in mail
  236. number to get to deleted mail).
  237. Note that \f[I]S\f[R] saves your mailbox, finalizing deletion.
  238. If you have a \f[I]Trash\f[R] box, deleted mail is moved there.
  239. If you want it to skip that and simply be deleted, comment out or remove
  240. the \f[I]set trash\f[R] line in that account\[aq]s muttrc.
  241. .TP
  242. \f[B]Send mail\f[R]
  243. \f[I]m\f[R] creates a new mail message; \f[I]r\f[R] replies to the
  244. selected message; \f[I]R\f[R] replies all to the selected message and
  245. \f[I]f\f[R] forwards the selected message.
  246. .TP
  247. \f[B]Compose mail screen\f[R]
  248. Once you write mail and save the buffer you will be brought to the
  249. compose screen.
  250. Press \f[I]a\f[R] to add attachments, use \f[I]s/t/c/b/d\f[R] to change
  251. the subject/to/CC/BCC/description.
  252. Press \f[I]S\f[R] to change the signature/encryption.
  253. Press \f[I]y\f[R] to send the mail.
  254. .TP
  255. \f[B]Saving and autocompleting email addresses with abook\f[R]
  256. Install the optional dependency abook and you will be able to save the
  257. sender\[aq]s email address with \f[I]a.\f[R] Once this is done, when you
  258. are typing in any email/contact prompt, you may press \f[I]Tab\f[R] to
  259. find contacts matching your input.
  260. Although abook is often used with mutt, it is also a useful program in
  261. its own right.
  262. .TP
  263. \f[B]Switching and moving mail between mailboxes\f[R]
  264. The \f[I]g\f[R] key can be paired with several other keys to
  265. automatically move to another mailbox: gi: Inbox; gs: Sent; gd: Drafts;
  266. ga: Archive; gS: Spam; gj: Junk; gt: Trash.
  267. These bindings will only be present for accounts that have the boxes in
  268. question.
  269. Instead of \f[I]g,\f[R] you can also press \f[I]C\f[R] to copy mail or
  270. \f[I]M\f[R] to move mail to the same boxes.
  271. .TP
  272. \f[B]Switching between accounts\f[R]
  273. mutt-wizard can configure as many as nine accounts each numbered by the
  274. lowest available number when configured.
  275. Press \f[I]i\f[R] followed by an account\[aq]s number to change to that
  276. account: i2, i5, etc.
  277. \f[I]ctrl-b\f[R] to open a menu to select a url you want to open in you
  278. browser.
  279. .TP
  280. \f[B]Sidebar\f[R]
  281. mutt-wizard enables the sidebar by default which displays your
  282. account\[aq]s boxes with mail tallies.
  283. \f[I]B\f[R] will toggle the sidebar.
  284. Move up and down in it with \f[I]ctrl-k/j.\f[R] Open a box with
  285. \f[I]ctrl-o.\f[R]
  286. .TP
  287. \f[B]More information\f[R]
  288. Remember that you can press \f[I]?\f[R] at any time in neomutt to get a
  289. list of all key-bindings and functions.
  290. This list can also vary for different context menus.
  291. .SH AUTHORS
  292. .PP
  293. Written by Luke Smith <luke\[at]lukesmith.xyz> originally in 2018.
  294. .SH LICENSE
  295. .PP
  296. GPLv3
  297. .SH SEE ALSO
  298. .PP
  299. \f[B]mailsync\f[R](1), \f[B]neomutt\f[R](1), \f[B]neomuttrc\f[R](1)
  300. \f[B]mbsync\f[R](1), \f[B]mpop\f[R](1), \f[B]msmtp\f[R](1),
  301. \f[B]notmuch\f[R](1), \f[B]abook\f[R](1)