Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

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