25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

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