Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

440 linhas
10 KiB

  1. .\" Automatically generated by Pandoc 2.7.3
  2. .\"
  3. .TH "mw" "1" "" "Version 2.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.
  52. \f[B]mutt\f[R] stands for \f[B]mutt\f[R] or \f[B]neomutt\f[R].
  53. .PP
  54. \f[B]mw\f[R] asks the user for the information it needs.
  55. They cannot be provided as parameters to the command.
  56. It is still possible to script \f[B]mw\f[R] by defining variables.
  57. See the commands section.
  58. .PP
  59. \f[I]mutt-wizard.muttrc\f[R] is linked in your \f[I]muttrc\f[R].
  60. Have this line there, if you prefer your own settings:
  61. .IP
  62. .nf
  63. \f[C]
  64. # source /usr/share/mutt-wizard/mutt-wizard.muttrc
  65. \f[R]
  66. .fi
  67. .PP
  68. You will need to keep the binding of \f[I]i,g,C,M\f[R] to
  69. \f[I]noop\f[R], though, because of the generated bindings in the account
  70. muttrc.
  71. .SH COMMANDS
  72. .PP
  73. Without command parameter \f[B]sync\f[R] is assumed.
  74. If the parameter contains \[at] an email is assumed and synced.
  75. .PP
  76. \f[I]add\f[R]
  77. .RS
  78. .PP
  79. Add new email
  80. .PP
  81. First you decide, whether you want to configure
  82. .IP \[bu] 2
  83. \f[B]mbsync\f[R], \f[B]getmail\f[R], \f[B]msmtp\f[R] to sync emails
  84. independently from \f[B]mutt\f[R] using \f[B]mw\f[R],
  85. .IP \[bu] 2
  86. or just \f[B]mutt\f[R].
  87. For an IMAP server \f[B]mutt\f[R] becomes very slow.
  88. So normally you enter \f[B]yes\f[R] here.
  89. .PP
  90. \f[B]mw\f[R] asks you the \f[B]email address\f[R].
  91. .PP
  92. \f[B]mw\f[R] has a \f[B]database\f[R] of IMAP4/POP3 and SMTP servers and
  93. ports.
  94. If you are lucky, your email server is there.
  95. Else \f[B]mw\f[R] will prompt you.
  96. .PP
  97. Add an email without questions, e.g.:
  98. .IP
  99. .nf
  100. \f[C]
  101. a=x.y\[at]gmail.com mwtype=offline mwaddr=$a mwlogin=$a mwpass=mutt-wizard-$a mwserverinfo=\[dq]gmail.com,imap.gmail.com,993,smtp.gmail.com,587\[dq] mwname=\[dq]your name\[dq] mw add
  102. \f[R]
  103. .fi
  104. .PP
  105. \f[I]mwserverinfo\f[R] can be omitted, if the email domain is in the
  106. accompanied \f[I]domains.csv\f[R].
  107. .RE
  108. .PP
  109. \f[I]ls|list\f[R]
  110. .RS
  111. .PP
  112. List all email accounts configured by mutt-wizard
  113. .RE
  114. .PP
  115. \f[I]rm|remove\f[R]
  116. .RS
  117. .PP
  118. Remove the configuration files for an already configured email
  119. .PP
  120. Remove without questions the email whose generated muttrc starts with 1:
  121. .IP
  122. .nf
  123. \f[C]
  124. mwpick=1 mw rm <<<y
  125. \f[R]
  126. .fi
  127. .RE
  128. .PP
  129. \f[I]purge\f[R]
  130. .RS
  131. .PP
  132. Removes all mw generated mutt settings and
  133. .PP
  134. \f[I].config/mutt/accounts/1-*\f[R]
  135. .PD 0
  136. .P
  137. .PD
  138. \f[I].config/isync/mbsyncrc\f[R]
  139. .PD 0
  140. .P
  141. .PD
  142. \f[I].config/getmail/*\f[R]
  143. .PD 0
  144. .P
  145. .PD
  146. \f[I].config/msmtp/config\f[R]
  147. .PP
  148. Files are under \f[I].config\f[R] or \f[I]$XDG_CONFIG_HOME\f[R]
  149. .PP
  150. If you don\[aq]t want questions:
  151. .IP
  152. .nf
  153. \f[C]
  154. mw purge <<<y
  155. \f[R]
  156. .fi
  157. .RE
  158. .PP
  159. \f[I]cron\f[R]
  160. .RS
  161. .PP
  162. Toggle a cronjob that periodically syncs mail
  163. .PP
  164. Without questions:
  165. .IP
  166. .nf
  167. \f[C]
  168. mwcronremove=yes mw cron
  169. mwcronminutes=99 mw cron
  170. \f[R]
  171. .fi
  172. .RE
  173. .PP
  174. \f[I]sync\f[R]
  175. .RS
  176. .PP
  177. Syncs mail for all email accounts managed by \f[B]mw\f[R] (whose paths
  178. end in the email), and pops up notifications for new mail.
  179. .PP
  180. \f[B]mw\f[R] alone, without \f[I]sync\f[R], syncs without notifications.
  181. .PP
  182. If an email address is given, only that email is synced.
  183. .PP
  184. Every \f[B]mw\f[R] sync run will re-generate the \f[B]mutt\f[R]
  185. configuration from the configuration files for \f[B]mbsync\f[R],
  186. \f[B]getmail\f[R] and \f[B]msmtp\f[R].
  187. So you could edit them after or not use \f[I]mw add\f[R] at all.
  188. .PP
  189. Just keep the \f[I]Path\f[R], \f[I]path\f[R] and \f[I]account\f[R]
  190. ending in the email address.
  191. .RE
  192. .SH DEPENDENCIES
  193. .PP
  194. Required for email setup or operation:
  195. .IP \[bu] 2
  196. \f[I]pass\f[R] - pass (https://www.passwordstore.org/) safely encrypts
  197. passwords
  198. .IP \[bu] 2
  199. \f[I]gnupg\f[R] - needed by \f[I]pass\f[R]
  200. .IP \[bu] 2
  201. \f[I]mutt/neomutt\f[R] - the email client (\f[I]mutt\f[R] untested).
  202. .IP \[bu] 2
  203. \f[I]isync\[cq]s mbsync\f[R] - syncs the mail
  204. .IP \[bu] 2
  205. \f[I]getmail\f[R] - used for POP3
  206. .IP \[bu] 2
  207. \f[I]msmtp\f[R] - sends the email
  208. .PP
  209. Optional:
  210. .IP \[bu] 2
  211. \f[I]w3m\f[R] - view HTML email and images in \f[B]mutt\f[R].
  212. .IP \[bu] 2
  213. \f[I]notmuch\f[R] - index and search mail.
  214. If the configuration file \f[I]$NOTMUCH_CONFIG\f[R] is not there,
  215. \f[I]mw add\f[R] will create it.
  216. .IP \[bu] 2
  217. \f[I]libnotify\f[R] - allows notifications when syncing mail with
  218. \f[B]mw\f[R]
  219. .IP \[bu] 2
  220. \f[I]abook\f[R] - a terminal-based address book.
  221. .IP \[bu] 2
  222. A cron manager (e.g.\ *cronie*) - if you want to enable the auto-sync
  223. feature.
  224. .IP \[bu] 2
  225. \f[I]pam-gnupg\f[R] - To provide your GPG key at login and never after.
  226. See directions (https://github.com/cruegge/pam-gnupg).
  227. .RS 2
  228. .PP
  229. Alternatively avoid constant password requests by increasing
  230. .IP \[bu] 2
  231. \f[I]default-cache-ttl\f[R] and \f[I]max-cache-ttl\f[R] in
  232. \f[I]gpg-agent.conf\f[R]
  233. .RE
  234. .IP \[bu] 2
  235. \f[I]urlscan\f[R] - outputs urls in mail
  236. .SH INSTALLATION
  237. .IP
  238. .nf
  239. \f[C]
  240. git clone https://github.com/rpuntaie/mutt-wizard
  241. cd mutt-wizard
  242. sudo make install
  243. \f[R]
  244. .fi
  245. .SH MUTT CONFIGURATION
  246. .PP
  247. Once everything is setup, you\[cq]ll use \f[B]mutt\f[R] to access your
  248. mail.
  249. .PP
  250. The accompanied \f[I]mutt-wizard.muttrc\f[R] modifies some
  251. \f[B]mutt\f[R] defaults.
  252. Look there for a complete list.
  253. .PP
  254. Here an overview:
  255. .IP \[bu] 2
  256. \f[I]?\f[R] - see all keyboard shortcuts
  257. .PP
  258. \f[B]syncing\f[R]
  259. .IP \[bu] 2
  260. \f[I]gm / gM\f[R] - call mutt-wizard\[cq]s \f[I]mw sync\f[R] for one /
  261. all mail accounts
  262. .PP
  263. \f[B]mailboxes,accounts\f[R]
  264. .IP \[bu] 2
  265. \f[I]ixy\f[R] - To go to \f[B]mailbox\f[R].
  266. .IP \[bu] 2
  267. \f[I]Mxy\f[R], \f[I]Cxy\f[R] - For Move and Copy to the according
  268. mailbox, e.g.\ *Msp* means \[dq]move to Spam\[dq].
  269. .IP \[bu] 2
  270. \f[I]i[1-9]\f[R] - go to another \f[B]account\f[R].
  271. .RS 2
  272. .PP
  273. \f[I]xy\f[R] are
  274. .IP \[bu] 2
  275. the two first letters of a mailbox or
  276. .IP \[bu] 2
  277. first letter of first + second letter of second path entry
  278. .RE
  279. .PP
  280. \f[B]searching\f[R]
  281. .IP \[bu] 2
  282. \f[I]S\f[R] - search for a mail using \f[I]notmuch\f[R]
  283. .IP \[bu] 2
  284. \f[I]gl\f[R] - limit by substring of subject
  285. .IP \[bu] 2
  286. \f[I]gL\f[R] - undo limit
  287. .PP
  288. \f[B]composing\f[R]
  289. .IP \[bu] 2
  290. \f[I]ga\f[R] - to add address/person to \f[I]abook\f[R] and
  291. \f[I]Tab\f[R] while typing address to complete one from book.
  292. .IP \[bu] 2
  293. \f[I]m/r/gr/f\f[R] - new/reply/group reply/forward \f[B]message\f[R],
  294. using your default \f[I]$EDITOR\f[R] to write.
  295. Then you enter the \f[B]compose screen\f[R].
  296. .IP \[bu] 2
  297. \f[I]a\f[R] - to add attachments
  298. .IP \[bu] 2
  299. \f[I]s/t/c/b/d\f[R] - to change the subject/to/CC/BCC/description.
  300. .IP \[bu] 2
  301. \f[I]S\f[R] - to change the signature/encryption
  302. .IP \[bu] 2
  303. \f[I]y\f[R] - to send the mail.
  304. .PP
  305. \f[B]delete,undelete,save\f[R]
  306. .IP \[bu] 2
  307. \f[I]dd\f[R] - delete mail
  308. .IP \[bu] 2
  309. \f[I]u\f[R] - undelete
  310. .IP \[bu] 2
  311. \f[I]$\f[R] - apply the mailbox changes \f[I]set trash\f[R] is set per
  312. default.
  313. Deleted mails will land there.
  314. .IP \[bu] 2
  315. \f[I]s\f[R] - save selected mail or selected attachment
  316. .PP
  317. \f[B]moving around\f[R]
  318. .IP \[bu] 2
  319. \f[I]gu\f[R] - open a menu to select a url you want to open in you
  320. browser (needs urlscan).
  321. .IP \[bu] 2
  322. \f[I]j\f[R]/\f[I]k\f[R] - next/previous mail, \f[I]J/K\f[R] same,
  323. without skipping deleted, and also when viewing mails
  324. .IP \[bu] 2
  325. \f[I]ctrl-d/f\f[R]/\f[I]ctrl-u/b\f[R] - down and up a half page / full
  326. page
  327. .IP \[bu] 2
  328. \f[I]l\f[R] - open mail, or attachment page or attachment
  329. .IP \[bu] 2
  330. \f[I]h\f[R] - the opposite of \f[I]l\f[R]
  331. .PP
  332. \f[B]sidebar\f[R]
  333. .IP \[bu] 2
  334. \f[I]B\f[R] - toggles
  335. .IP \[bu] 2
  336. \f[I]ctrl-j\f[R]/\f[I]ctrl-k\f[R] - move up and down
  337. .IP \[bu] 2
  338. \f[I]ctrl-l/o\f[R] - opens mailbox
  339. .PP
  340. \f[B]input field/command line\f[R]
  341. .IP \[bu] 2
  342. \f[I]ctrl-u\f[R] clears the line
  343. .IP \[bu] 2
  344. \f[I]ctrl-a\f[R], \f[I]ctrl-e\f[R] go to beginning or end
  345. .IP \[bu] 2
  346. \f[I]ctrl-g\f[R] aborts
  347. .SH DETAILS
  348. .PP
  349. \f[B]Encoding/Language\f[R]
  350. .RS
  351. .PP
  352. \f[I]isync\f[R] is not fully UTF-8 compatible.
  353. \f[B]mw\f[R] assumes english mailbox names.
  354. Set your email language to English on your mail server.
  355. .RE
  356. .PP
  357. \f[B]Mail location\f[R]
  358. .RS
  359. .PP
  360. Mail is downloaded to a folders named after your emails in
  361. \f[I]$MAILDIR\f[R].
  362. \f[I]$MAILDIR\f[R] defaults to \f[I]$HOME/Mail/\f[R].
  363. Neither \f[B]mw remove\f[R] nor \f[B]mw purge\f[R] will delete
  364. downloaded mail.
  365. .RE
  366. .PP
  367. \f[B]Gmail accounts\f[R]
  368. .RS
  369. .PP
  370. For Gmail allow less-secure
  371. applications (https://support.google.com/accounts/answer/6010255) Do
  372. this before running mutt-wizard.
  373. .PP
  374. Gmail uses labels instead of folders.
  375. To avoid local message duplication, remove labels on the Gmail web
  376. interface (https://mail.google.com/mail/u/0/#settings/labels) or hide
  377. them from IMAP and remove the according local folders.
  378. To keep a (local) folder from being synced one must exclude it in
  379. \f[I]mbsyncrc\f[R].
  380. \f[B]mw\f[R] generates this default:
  381. .IP
  382. .nf
  383. \f[C]
  384. Patterns * !\[dq]_/*\[dq] !\[dq][Gmail]\[dq] !\[dq][Gmail]/All Mail\[dq]
  385. \f[R]
  386. .fi
  387. .RE
  388. .PP
  389. \f[B]Protonmail accounts\f[R]
  390. .RS
  391. .PP
  392. Protonmail users must use the Protonmail
  393. Bridge (https://protonmail.com/bridge/) to access their IMAP and SMTP
  394. servers.
  395. Do this before running mutt-wizard.
  396. .RE
  397. .SH FILES
  398. .TP
  399. .B \f[I]/user/bin/mw\f[R]
  400. The main script to manage and sync emails.
  401. .TP
  402. .B \f[I]/user/bin/mwimage\f[R], \f[I]/user/bin/mwopen\f[R]
  403. Used by the mailcap file that comes with mutt-wizard.
  404. .TP
  405. .B \f[I]/usr/share/mutt-wizard/mutt-wizard.muttrc\f[R]
  406. Default mutt settings.
  407. .TP
  408. .B \f[I]/usr/share/mutt-wizard/mailcap\f[R]
  409. Default mailcap file.
  410. .TP
  411. .B \f[I]/usr/share/mutt-wizard/domains.csv\f[R]
  412. Email server database.
  413. .SH BUGS
  414. .PP
  415. GitHub Issues (https://github.com/rpuntaie/mutt-wizard/issues)
  416. .SH AUTHORS
  417. .TP
  418. .B \f[I]Luke Smith\f[R] <<luke@lukesmith.xyz>>
  419. Original author, started in 2018.
  420. .RS
  421. .PP
  422. Github (https://github.com/lukesmithxyz/mutt-wizard)
  423. .PP
  424. Gitlab (https://gitlab.com/lukesmithxyz/mutt-wizard)
  425. .RE
  426. .TP
  427. .B \f[I]Roland Puntaier\f[R] <<roland.puntaier@gmail.com>>
  428. Bugfixes, Improvements in 2019.
  429. .RS
  430. .PP
  431. GitHub: (https://github.com/rpuntaie/mutt-wizard)
  432. .RE
  433. .SH LICENSE
  434. .PP
  435. GPLv3
  436. .SH SEE ALSO
  437. .PP
  438. \f[B]neomutt\f[R](1), \f[B]neomuttrc\f[R](1) \f[B]mbsync\f[R](1),
  439. \f[B]msmtp\f[R](1), \f[B]notmuch\f[R](1), \f[B]abook\f[R](1)