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

425 lines
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).
  179. .PP
  180. This is the default, if no parameter is given.
  181. If an email address is given, only that email is synced.
  182. .PP
  183. Every \f[B]mw\f[R] sync run will re-generate the \f[B]mutt\f[R]
  184. configuration from the configuration files for \f[B]mbsync\f[R],
  185. \f[B]getmail\f[R] and \f[B]msmtp\f[R].
  186. So you could edit them after or not use \f[I]mw add\f[R] at all.
  187. .PP
  188. Just keep the \f[I]Path\f[R], \f[I]path\f[R] and \f[I]account\f[R]
  189. ending in the email address.
  190. .RE
  191. .SH DEPENDENCIES
  192. .PP
  193. Required for email setup or operation:
  194. .IP \[bu] 2
  195. \f[I]pass\f[R] - pass (https://www.passwordstore.org/) safely encrypts
  196. passwords
  197. .IP \[bu] 2
  198. \f[I]gnupg\f[R] - needed by \f[I]pass\f[R]
  199. .IP \[bu] 2
  200. \f[I]mutt/neomutt\f[R] - the email client (\f[I]mutt\f[R] untested).
  201. .IP \[bu] 2
  202. \f[I]isync\[cq]s mbsync\f[R] - syncs the mail
  203. .IP \[bu] 2
  204. \f[I]getmail\f[R] - used for POP3
  205. .IP \[bu] 2
  206. \f[I]msmtp\f[R] - sends the email
  207. .PP
  208. Optional:
  209. .IP \[bu] 2
  210. \f[I]w3m\f[R] - view HTML email and images in \f[B]mutt\f[R].
  211. .IP \[bu] 2
  212. \f[I]notmuch\f[R] - index and search mail.
  213. If the configuration file \f[I]$NOTMUCH_CONFIG\f[R] is not there,
  214. \f[I]mw add\f[R] will create it.
  215. .IP \[bu] 2
  216. \f[I]libnotify\f[R] - allows notifications when syncing mail with
  217. \f[B]mw\f[R]
  218. .IP \[bu] 2
  219. \f[I]abook\f[R] - a terminal-based address book.
  220. .IP \[bu] 2
  221. A cron manager (e.g.\ *cronie*) - if you want to enable the auto-sync
  222. feature.
  223. .IP \[bu] 2
  224. \f[I]pam-gnupg\f[R] - To provide your GPG key at login and never after.
  225. See directions (https://github.com/cruegge/pam-gnupg).
  226. .RS 2
  227. .PP
  228. Alternatively avoid constant password requests by increasing
  229. .IP \[bu] 2
  230. \f[I]default-cache-ttl\f[R] and \f[I]max-cache-ttl\f[R] in
  231. \f[I]gpg-agent.conf\f[R]
  232. .RE
  233. .IP \[bu] 2
  234. \f[I]urlscan\f[R] - outputs urls in mail
  235. .SH INSTALLATION
  236. .IP
  237. .nf
  238. \f[C]
  239. git clone https://github.com/rpuntaie/mutt-wizard
  240. cd mutt-wizard
  241. sudo make install
  242. \f[R]
  243. .fi
  244. .SH MUTT CONFIGURATION
  245. .PP
  246. Once everything is setup, you\[cq]ll use \f[B]mutt\f[R] to access your
  247. mail.
  248. .PP
  249. The accompanied \f[I]mutt-wizard.muttrc\f[R] modifies some
  250. \f[B]mutt\f[R] defaults.
  251. Look there for a complete list.
  252. .PP
  253. Here an overview:
  254. .IP \[bu] 2
  255. \f[I]?\f[R] - see all keyboard shortcuts
  256. .PP
  257. \f[B]syncing\f[R]
  258. .IP \[bu] 2
  259. \f[I]gm / gM\f[R] - call mutt-wizard\[cq]s \f[I]mw sync\f[R] for one /
  260. all mail accounts
  261. .PP
  262. \f[B]mailboxes,accounts\f[R]
  263. .IP \[bu] 2
  264. \f[I]ixy\f[R] - To go to \f[B]mailbox\f[R].
  265. .IP \[bu] 2
  266. \f[I]Mxy\f[R], \f[I]Cxy\f[R] - For Move and Copy to the according
  267. mailbox, e.g.\ *Msp* means \[dq]move to Spam\[dq].
  268. .IP \[bu] 2
  269. \f[I]i[1-9]\f[R] - go to another \f[B]account\f[R].
  270. .RS 2
  271. .PP
  272. \f[I]xy\f[R] are
  273. .IP \[bu] 2
  274. the two first letters of a mailbox or
  275. .IP \[bu] 2
  276. first letter of first + second letter of second path entry
  277. .RE
  278. .PP
  279. \f[B]searching\f[R]
  280. .IP \[bu] 2
  281. \f[I]S\f[R] - search for a mail using \f[I]notmuch\f[R]
  282. .IP \[bu] 2
  283. \f[I]gl\f[R] - limit by substring of subject
  284. .IP \[bu] 2
  285. \f[I]gL\f[R] - undo limit
  286. .PP
  287. \f[B]composing\f[R]
  288. .IP \[bu] 2
  289. \f[I]ga\f[R] - to add address/person to \f[I]abook\f[R] and
  290. \f[I]Tab\f[R] while typing address to complete one from book.
  291. .IP \[bu] 2
  292. \f[I]m/r/gr/f\f[R] - new/reply/group reply/forward \f[B]message\f[R],
  293. using your default \f[I]$EDITOR\f[R] to write.
  294. Then you enter the \f[B]compose screen\f[R].
  295. .IP \[bu] 2
  296. \f[I]a\f[R] - to add attachments
  297. .IP \[bu] 2
  298. \f[I]s/t/c/b/d\f[R] - to change the subject/to/CC/BCC/description.
  299. .IP \[bu] 2
  300. \f[I]S\f[R] - to change the signature/encryption
  301. .IP \[bu] 2
  302. \f[I]y\f[R] - to send the mail.
  303. .PP
  304. \f[B]delete,undelete,save\f[R]
  305. .IP \[bu] 2
  306. \f[I]dd\f[R] - delete mail
  307. .IP \[bu] 2
  308. \f[I]u\f[R] - undelete
  309. .IP \[bu] 2
  310. \f[I]$\f[R] - apply the mailbox changes \f[I]set trash\f[R] is set per
  311. default.
  312. Deleted mails will land there.
  313. .IP \[bu] 2
  314. \f[I]s\f[R] - save selected mail or selected attachment
  315. .PP
  316. \f[B]moving around\f[R]
  317. .IP \[bu] 2
  318. \f[I]gu\f[R] - open a menu to select a url you want to open in you
  319. browser (needs urlscan).
  320. .IP \[bu] 2
  321. \f[I]j\f[R]/\f[I]k\f[R] - next/previous mail, \f[I]J/K\f[R] same,
  322. without skipping deleted, and also when viewing mails
  323. .IP \[bu] 2
  324. \f[I]ctrl-d/f\f[R]/\f[I]ctrl-u/b\f[R] - down and up a half page / full
  325. page
  326. .IP \[bu] 2
  327. \f[I]l\f[R] - open mail, or attachment page or attachment
  328. .IP \[bu] 2
  329. \f[I]h\f[R] - the opposite of \f[I]l\f[R]
  330. .PP
  331. \f[B]sidebar\f[R]
  332. .IP \[bu] 2
  333. \f[I]B\f[R] - toggles
  334. .IP \[bu] 2
  335. \f[I]ctrl-j\f[R]/\f[I]ctrl-k\f[R] - move up and down
  336. .IP \[bu] 2
  337. \f[I]ctrl-l/o\f[R] - opens mailbox
  338. .PP
  339. \f[B]input field/command line\f[R]
  340. .IP \[bu] 2
  341. \f[I]ctrl-u\f[R] clears the line
  342. .IP \[bu] 2
  343. \f[I]ctrl-a\f[R], \f[I]ctrl-e\f[R] go to beginning or end
  344. .IP \[bu] 2
  345. \f[I]ctrl-g\f[R] aborts
  346. .SH DETAILS
  347. .PP
  348. \f[B]Encoding/Language\f[R]
  349. .RS
  350. .PP
  351. \f[I]isync\f[R] is not fully UTF-8 compatible.
  352. \f[B]mw\f[R] assumes english mailbox names.
  353. Set your email language to English on your mail server.
  354. .RE
  355. .PP
  356. \f[B]Mail location\f[R]
  357. .RS
  358. .PP
  359. Mail is downloaded to a folders named after your emails in
  360. \f[I]$MAILDIR\f[R].
  361. \f[I]$MAILDIR\f[R] defaults to \f[I]$HOME/Mail/\f[R].
  362. Neither \f[B]mw remove\f[R] nor \f[B]mw purge\f[R] will delete
  363. downloaded mail.
  364. .RE
  365. .PP
  366. \f[B]Gmail accounts\f[R]
  367. .RS
  368. .PP
  369. For Gmail allow \[dq]less-secure\[dq] applications:
  370. <<https://support.google.com/accounts/answer/6010255>>.
  371. Do this before running mutt-wizard.
  372. .RE
  373. .PP
  374. \f[B]Protonmail accounts\f[R]
  375. .RS
  376. .PP
  377. Protonmail users must use the Protonmail Bridge
  378. <<https://protonmail.com/bridge/>> to access their IMAP and SMTP
  379. servers.
  380. Do this before running mutt-wizard.
  381. .RE
  382. .SH FILES
  383. .TP
  384. .B \f[I]/user/bin/mw\f[R]
  385. The main script to manage and sync emails.
  386. .TP
  387. .B \f[I]/user/bin/mwimage\f[R], \f[I]/user/bin/mwopen\f[R]
  388. Used by the mailcap file that comes with mutt-wizard.
  389. .TP
  390. .B \f[I]/usr/share/mutt-wizard/mutt-wizard.muttrc\f[R]
  391. Default mutt settings.
  392. .TP
  393. .B \f[I]/usr/share/mutt-wizard/mailcap\f[R]
  394. Default mailcap file.
  395. .TP
  396. .B \f[I]/usr/share/mutt-wizard/domains.csv\f[R]
  397. Email server database.
  398. .SH BUGS
  399. .PP
  400. GitHub Issues: <<https://github.com/rpuntaie/mutt-wizard/issues>>
  401. .SH AUTHORS
  402. .TP
  403. .B \f[I]Luke Smith\f[R] <<luke@lukesmith.xyz>>
  404. Original author, started in 2018.
  405. .RS
  406. .PP
  407. Github <<https://github.com/lukesmithxyz/mutt-wizard>>
  408. .PP
  409. Gitlab <<https://gitlab.com/lukesmithxyz/mutt-wizard>>
  410. .RE
  411. .TP
  412. .B \f[I]Roland Puntaier\f[R] <<roland.puntaier@gmail.com>>
  413. Bugfixes, Improvements in 2019.
  414. .RS
  415. .PP
  416. GitHub: <<https://github.com/rpuntaie/mutt-wizard>>
  417. .RE
  418. .SH LICENSE
  419. .PP
  420. GPLv3
  421. .SH SEE ALSO
  422. .PP
  423. \f[B]neomutt\f[R](1), \f[B]neomuttrc\f[R](1) \f[B]mbsync\f[R](1),
  424. \f[B]msmtp\f[R](1), \f[B]notmuch\f[R](1), \f[B]abook\f[R](1)