No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

448 líneas
12 KiB

  1. .\" Automatically generated by Pandoc 2.7.3
  2. .\"
  3. .TH "mw" "1" "" "Version 1.0" "mutt-wizard man page"
  4. .hy
  5. .SH NAME
  6. .PP
  7. \f[B]mw\f[R] \[em] mutt-wizard - add, list, remove email configurations
  8. for mbsync, getmail and mutt.
  9. Sync email without mutt.
  10. .SH SYNOPSIS
  11. .PP
  12. \f[B]mw\f[R] [<command>|<email>]
  13. .PP
  14. \f[B]mw\f[R] Same as \f[I]mw sync\f[R]
  15. .PD 0
  16. .P
  17. .PD
  18. \f[B]mw add\f[R] Add and configure an email address (9 max.)
  19. .PD 0
  20. .P
  21. .PD
  22. \f[B]mw list\f[R] List configured accounts
  23. .PD 0
  24. .P
  25. .PD
  26. \f[B]mw remove\f[R] Pick an account to remove
  27. .PD 0
  28. .P
  29. .PD
  30. \f[B]mw purge\f[R] Remove all accounts and settings
  31. .PD 0
  32. .P
  33. .PD
  34. \f[B]mw cron\f[R] Enable or disable an autosync via cronjob
  35. .PD 0
  36. .P
  37. .PD
  38. \f[B]mw sync\f[R] Sync mail based on config in
  39. \f[I].config/isync/mbsyncrc\f[R] and \f[I].config/getmail/*\f[R]
  40. .PD 0
  41. .P
  42. .PD
  43. \f[B]mw \[en]help|-h\f[R] Print this message
  44. .PD 0
  45. .P
  46. .PD
  47. \f[B]mw \[en]version|-v\f[R] Print version
  48. .SH DESCRIPTION
  49. .PP
  50. \f[B]mw\f[R] configures \f[B]mbsync\f[R], \f[B]getmail\f[R],
  51. \f[B]msmtp\f[R] and \f[B]mutt\f[R] in one go, or just \f[B]mutt\f[R].
  52. Note, \f[B]mutt\f[R] stands for \f[B]mutt\f[R] or \f[B]neomutt\f[R], but
  53. \f[B]mw\f[R] settings was only tested with \f[B]neomutt\f[R].
  54. .SH COMMANDS
  55. .PP
  56. Without command parameter \f[B]sync\f[R] is assumed.
  57. If a parameter contains \[at] an email is assumed and synced.
  58. .PP
  59. \f[I]add\f[R]
  60. .RS
  61. .PP
  62. Add new email.
  63. \[bu] .RS 2
  64. .TP
  65. .B First you decide, whether you want to configure
  66. .IP \[bu] 2
  67. \f[B]mbsync\f[R], \f[B]getmail\f[R], \f[B]msmtp\f[R] to sync emails
  68. independently from \f[B]mutt\f[R] using \f[B]mw\f[R],
  69. .IP \[bu] 2
  70. or just \f[B]mutt\f[R].
  71. For an IMAP server \f[B]mutt\f[R] becomes very slow.
  72. Normally you enter \f[B]y\f[R].
  73. .RE
  74. .IP \[bu] 2
  75. It asks you the \f[B]email address\f[R].
  76. .IP \[bu] 2
  77. It has a \f[B]database\f[R] of IMAP4/POP3 and SMTP servers and ports.
  78. If you are lucky, your email server is there.
  79. Else it will prompt you.
  80. .RE
  81. .PP
  82. \f[I]ls|list\f[R]
  83. .RS
  84. .PP
  85. List all email accounts configured by mutt-wizard
  86. .RE
  87. .PP
  88. \f[I]rm|remove\f[R]
  89. .RS
  90. .PP
  91. Remove the configuration files for an already configured email
  92. .RE
  93. .PP
  94. \f[I]purge\f[R]
  95. .RS
  96. .PP
  97. Removes all mw generated mutt settings and
  98. .PP
  99. \f[I].config/mutt/accounts/1-*\f[R]
  100. .PD 0
  101. .P
  102. .PD
  103. \f[I].config/isync/mbsyncrc\f[R]
  104. .PD 0
  105. .P
  106. .PD
  107. \f[I].config/getmail/*\f[R]
  108. .PD 0
  109. .P
  110. .PD
  111. \f[I].config/msmtp/config\f[R]
  112. .PP
  113. Files are under \f[I].config\f[R] or \f[I]$XDG_CONFIG_HOME\f[R].
  114. .RE
  115. .PP
  116. \f[I]cron\f[R]
  117. .RS
  118. .PP
  119. toggle a cronjob that periodically syncs mail
  120. .RE
  121. .PP
  122. \f[I]sync\f[R]
  123. .RS
  124. .PP
  125. syncs mail for all email accounts managed by \f[I]mw\f[R] (whose paths
  126. end in the email).
  127. This is the default, if no parameter is given.
  128. If an email address is given, only that email is synced.
  129. .IP \[bu] 2
  130. Every \f[B]mw\f[R] sync run will re-generate the \f[B]mutt\f[R]
  131. configuration from the configuration files for \f[B]mbsync\f[R],
  132. \f[B]getmail\f[R] and \f[B]msmtp\f[R].
  133. So you could edit them after or not use \f[I]mw add\f[R] at all.
  134. .RS 2
  135. .PP
  136. Just keep the \f[I]Path\f[R], \f[I]path\f[R] and \f[I]account\f[R]
  137. ending in the email address.
  138. .RE
  139. .IP \[bu] 2
  140. The generated \f[B]mutt\f[R] configuration has these bindings
  141. .RS 2
  142. .IP \[bu] 2
  143. \f[I]ixy/Mxy/Cxy\f[R] bindings to switch/move/copy to mailbox (x and y
  144. stand for other letters)
  145. .IP \[bu] 2
  146. \f[I]i[1-9]\f[R] bindings to switch account
  147. .RE
  148. .IP \[bu] 2
  149. \f[I]/usr/share/mutt-wizard/mutt-wizard.muttrc\f[R] is linked in your
  150. \f[I]muttrc\f[R].
  151. Have this line there, if you prefer your own settings:
  152. .RS 2
  153. .IP
  154. .nf
  155. \f[C]
  156. # source /usr/share/mutt-wizard/mutt-wizard.muttrc
  157. \f[R]
  158. .fi
  159. .PP
  160. You will need to keep the binding of \f[I]i,g,C,M\f[R] to
  161. \f[I]noop\f[R], though, because of the generated bindings in the account
  162. muttrc.
  163. Else you can overwrite certain things after the uncommented sourcing
  164. line.
  165. .RE
  166. .RE
  167. .SH DEPENDENCIES
  168. .IP \[bu] 2
  169. \f[I]pass\f[R] - pass (https://www.passwordstore.org/) safely encrypts
  170. passwords (\f[B]required for email setup\f[R])
  171. .IP \[bu] 2
  172. \f[I]gnupg\f[R] - needed by \f[I]pass\f[R]
  173. .IP \[bu] 2
  174. \f[I]mutt/neomutt\f[R] - the email client (\f[I]mutt\f[R] untested).
  175. .IP \[bu] 2
  176. \f[I]isync\[cq]s mbsync\f[R] - syncs the mail
  177. .IP \[bu] 2
  178. \f[I]getmail\f[R] - used for POP3
  179. .IP \[bu] 2
  180. \f[I]msmtp\f[R] - sends the email
  181. .PP
  182. Optional:
  183. .IP \[bu] 2
  184. \f[I]w3m\f[R] - view HTML email and images in \f[B]mutt\f[R].
  185. .IP \[bu] 2
  186. \f[I]notmuch\f[R] - index and search mail.
  187. If the configuration file in \f[I]$NOTMUCH_CONFIG\f[R] is not there,
  188. \f[I]mw add\f[R] will create it.
  189. .IP \[bu] 2
  190. \f[I]libnotify\f[R] - allows notifications when syncing mail with
  191. \f[I]mw\f[R]
  192. .IP \[bu] 2
  193. \f[I]abook\f[R] - a terminal-based address book.
  194. .IP \[bu] 2
  195. A cron manager (e.g.\ *cronie*) - if you want to enable the auto-sync
  196. feature.
  197. .IP \[bu] 2
  198. \f[I]pam-gnupg\f[R] - To provide your GPG key at login and never after.
  199. See directions (https://github.com/cruegge/pam-gnupg).
  200. .RS 2
  201. .PP
  202. Alternatively increasing \f[I]default-cache-ttl\f[R] and
  203. \f[I]max-cache-ttl\f[R] in \f[I]gpg-agent.conf\f[R] avoid constant
  204. password requests.
  205. .RE
  206. .IP \[bu] 2
  207. \f[I]urlscan\f[R] - outputs urls in mail
  208. .SH INSTALLATION
  209. .IP
  210. .nf
  211. \f[C]
  212. git clone https://github.com/rpuntaie/mutt-wizard
  213. cd mutt-wizard
  214. sudo make install
  215. \f[R]
  216. .fi
  217. .PP
  218. User of Arch-based distros can also install mutt-wizard from the AUR as
  219. mw-git (https://aur.archlinux.org/packages/mw-git/).
  220. .SH MUTT-WIZARD\[aq]S NEOMUTT CONFIGURATION
  221. .PP
  222. Once everything is setup, you\[cq]ll use \f[B]mutt\f[R] to access your
  223. mail.
  224. .PP
  225. Mutt usage with the accompanied \f[I]/usr/share/mutt-wizard.muttrc\f[R]:
  226. .IP \[bu] 2
  227. \f[I]?\f[R] - see all keyboard shortcuts
  228. .PP
  229. \f[B]syncing\f[R]
  230. .IP \[bu] 2
  231. \f[I]gm / gM\f[R] - call mutt-wizard\[cq]s \f[I]mw sync\f[R] for one /
  232. all mail accounts
  233. .PP
  234. \f[B]mailboxes,accounts\f[R]
  235. .IP \[bu] 2
  236. \f[I]ixy\f[R] - To go to \f[B]mailbox\f[R].
  237. .IP \[bu] 2
  238. \f[I]Mxy\f[R], \f[I]Cxy\f[R] - For \f[I]M\f[R]ove and \f[I]C\f[R]opy to
  239. the according mailbox, e.g.\ \f[I]Msp\f[R] means \[lq]move to Spam\[rq].
  240. .IP \[bu] 2
  241. \f[I]i#\f[R] - Press \f[I]i\f[R] followed by a number 1-9 to go to a
  242. \f[B]different account\f[R].
  243. .RS 2
  244. .PP
  245. \f[I]xy\f[R] are
  246. .IP \[bu] 2
  247. two first letters of mailbox letters or
  248. .IP \[bu] 2
  249. first letter of first path entry + second letter of second path entries
  250. .RE
  251. .PP
  252. \f[B]searching\f[R]
  253. .IP \[bu] 2
  254. \f[I]S\f[R] - search for a mail using \f[I]notmuch\f[R]
  255. .IP \[bu] 2
  256. \f[I]gl\f[R] - limit by substring of subject
  257. .IP \[bu] 2
  258. \f[I]gL\f[R] - undo limit
  259. .PP
  260. \f[B]composing\f[R]
  261. .IP \[bu] 2
  262. \f[I]ga\f[R] - to add address/person to \f[I]abook\f[R] and
  263. \f[I]Tab\f[R] while typing address to complete one from book.
  264. .IP \[bu] 2
  265. \f[I]m/r/gr/f\f[R] - new/reply/group reply/forward \f[B]message\f[R],
  266. using your default \f[I]$EDITOR\f[R] to write.
  267. Then you enter the \f[B]compose screen\f[R].
  268. .IP \[bu] 2
  269. \f[I]a\f[R] - to add attachments
  270. .IP \[bu] 2
  271. \f[I]s/t/c/b/d\f[R] - to change the subject/to/CC/BCC/description.
  272. .IP \[bu] 2
  273. \f[I]S\f[R] - to change the signature/encryption
  274. .IP \[bu] 2
  275. \f[I]y\f[R] - to send the mail.
  276. .PP
  277. \f[B]delete,undelete,save\f[R]
  278. .IP \[bu] 2
  279. \f[I]dd\f[R] - delete mail
  280. .IP \[bu] 2
  281. \f[I]u\f[R] - undelete
  282. .IP \[bu] 2
  283. \f[I]$\f[R] - apply the mailbox changes \f[I]set trash\f[R] is set per
  284. default.
  285. Deleted mails will land there.
  286. .IP \[bu] 2
  287. \f[I]s\f[R] - save selected mail or selected attachment
  288. .PP
  289. \f[B]moving around\f[R]
  290. .IP \[bu] 2
  291. \f[I]gu\f[R] - open a menu to select a url you want to open in you
  292. browser (needs urlscan).
  293. .IP \[bu] 2
  294. \f[I]j\f[R]/\f[I]k\f[R] - next/previous mail, \f[I]J/K\f[R] same,
  295. without skipping deleted, and also when viewing mails
  296. .IP \[bu] 2
  297. \f[I]ctrl-d/f\f[R]/\f[I]ctrl-u/b\f[R] - down and up a half page / full
  298. page
  299. .IP \[bu] 2
  300. \f[I]l\f[R] - open mail, or attachment page or attachment
  301. .IP \[bu] 2
  302. \f[I]h\f[R] - the opposite of \f[I]l\f[R]
  303. .PP
  304. \f[B]sidebar\f[R]
  305. .IP \[bu] 2
  306. \f[I]B\f[R] - toggles
  307. .IP \[bu] 2
  308. \f[I]ctrl-j\f[R]/\f[I]ctrl-k\f[R] - move up and down
  309. .IP \[bu] 2
  310. \f[I]ctrl-l/o\f[R] - opens mailbox
  311. .PP
  312. \f[B]input field/command line\f[R]
  313. .IP \[bu] 2
  314. \f[I]ctrl-u\f[R] will clear it
  315. .IP \[bu] 2
  316. \f[I]ctrl-a\f[R], \f[I]ctrl-e\f[R] go to beginning or end,
  317. \f[I]ctrl-g\f[R] aborts
  318. .PP
  319. Look into \f[I]/usr/share/mutt-wizard.muttrc\f[R] to see all bindings.
  320. .SH DETAILS
  321. .TP
  322. .B Encoding
  323. .RS
  324. .PP
  325. \f[I]isync\f[R] is not fully UTF-8 compatible.
  326. Non-Latin characters may be garbled (although sync should succeed).
  327. \f[I]mw\f[R] will also not auto-create mailbox shortcuts since it is
  328. looking for English mailbox names.
  329. I strongly recommend you to set your email language to English on your
  330. mail server to avoid these problems.
  331. .RE
  332. .PP
  333. \f[B]Mail location\f[R]
  334. .RS
  335. .PP
  336. Mail is downloaded to a folder named after your email in
  337. \f[I]$MAILDIR\f[R], which defaults to \f[I]$HOME/Mail/\f[R], the default
  338. for mutt.
  339. Neither \f[B]mw remove\f[R] nor \f[B]mw purge\f[R] will delete
  340. downloaded mail.
  341. Do that manually.
  342. .RE
  343. .PP
  344. \f[B]Gmail accounts\f[R]
  345. .RS
  346. .PP
  347. Google will require you to allow \[dq]less-secure\[dq] (third party)
  348. applications or use two-factor authentication in order to access their
  349. IMAP servers to download your mail.
  350. If you use Gmail, be sure to handle this before running mutt-wizard
  351. <<https://support.google.com/accounts/answer/6010255>>.
  352. .RE
  353. .PP
  354. \f[B]Protonmail accounts\f[R]
  355. .RS
  356. .PP
  357. Protonmail users must use the Protonmail Bridge
  358. <<https://protonmail.com/bridge/>> to access their IMAP and SMTP
  359. servers.
  360. This too should be configured before running mutt-wizard.
  361. .RE
  362. .PP
  363. \f[B]Enterprise and university accounts\f[R]
  364. .RS
  365. .PP
  366. Many universities and businesses might host their domain\[aq]s email via
  367. Google or another service.
  368. This often requires a special IMAP/SMTP-specific password that you must
  369. generate and use.
  370. Again, mutt-wizard can handle these systems, but only once they have
  371. been set up.
  372. .RE
  373. .SH FILES
  374. .TP
  375. .B \f[I]/user/bin/mw\f[R]
  376. The main script to manage and sync emails.
  377. .TP
  378. .B \f[I]/user/bin/mwimage\f[R], \f[I]/user/bin/mwopen\f[R]
  379. Used by the mailcap file that comes with mutt-wizard.
  380. .TP
  381. .B \f[I]/usr/share/mutt-wizard/mutt-wizard.muttrc\f[R]
  382. Default mutt settings.
  383. .TP
  384. .B \f[I]/usr/share/mutt-wizard/mailcap\f[R]
  385. Default mailcap file.
  386. .TP
  387. .B \f[I]/usr/share/mutt-wizard/domains.csv\f[R]
  388. Email server database.
  389. .SH BUGS
  390. .PP
  391. GitHub Issues: <<https://github.com/rpuntaie/mutt-wizard/issues>>
  392. .SH AUTHORS
  393. .TP
  394. .B \f[I]Luke Smith\f[R] <<luke@lukesmith.xyz>>
  395. Original author, started in 2018.
  396. .RS
  397. .PP
  398. Github <<https://github.com/lukesmithxyz/mutt-wizard>>
  399. .PP
  400. Gitlab <<https://gitlab.com/lukesmithxyz/mutt-wizard>>
  401. .RE
  402. .TP
  403. .B \f[I]Roland Puntaier\f[R] <<roland.puntaier@gmail.com>>
  404. Bugfixes, Improvements in 2019.
  405. .RS
  406. .PP
  407. GitHub: <<https://github.com/rpuntaie/mutt-wizard>>
  408. .IP \[bu] 2
  409. Honors \f[I]:math:\[ga]MAILDIR\f[R], \f[I]\[ga]XDG_CONFIG_HOME\f[R],
  410. \f[I]$XDG_CACHE_HOME\f[R], if defined.
  411. .IP \[bu] 2
  412. \f[I]gm/gM\f[R] to sync mail inside \f[I]mutt\f[R], as \f[I]o/O\f[R] has
  413. a \f[I]mutt\f[R] assignment already.
  414. .IP \[bu] 2
  415. Other more vim-like shortcut changes
  416. .IP \[bu] 2
  417. Make channel name equal to email address to avoid choosing a new name
  418. for the same thing.
  419. .IP \[bu] 2
  420. \f[I]remove|rm\f[R] instead of \f[I]delete\f[R], \f[I]list|ls\f[R]
  421. instead of only \f[I]ls\f[R]
  422. .IP \[bu] 2
  423. \f[I]wm\f[R] integrates \f[I]mailsync\f[R], not to overload the system
  424. namespace and because of code reuse
  425. .IP \[bu] 2
  426. \f[I]wm\f[R] generates \f[I]mutt\f[R] config on every full sync,
  427. .RS 2
  428. .IP \[bu] 2
  429. to reflect changes in mailboxes in the shortcuts
  430. .IP \[bu] 2
  431. to reflect changes in \f[I]mbsync/getmail\f[R] config in \f[I]mutt\f[R]
  432. config
  433. .RE
  434. .IP \[bu] 2
  435. \f[I]urlscan\f[R] instead of \f[I]urlview\f[R]
  436. .IP \[bu] 2
  437. Added tests and made bug fixes
  438. .IP \[bu] 2
  439. Generate man page from readme, to avoid duplicate descriptions
  440. .RE
  441. .SH LICENSE
  442. .PP
  443. GPLv3
  444. .SH SEE ALSO
  445. .PP
  446. \f[B]neomutt\f[R](1), \f[B]neomuttrc\f[R](1) \f[B]mbsync\f[R](1),
  447. \f[B]msmtp\f[R](1), \f[B]notmuch\f[R](1), \f[B]abook\f[R](1)