Roland Puntaier 99b7057042 | 5 years ago | |
---|---|---|
bin | 5 years ago | |
share | 5 years ago | |
test | 5 years ago | |
.gitignore | 5 years ago | |
LICENSE | 6 years ago | |
Makefile | 5 years ago | |
README.md | 5 years ago | |
mw.1 | 5 years ago |
% mw(1) Version 1.0 | mutt-wizard man page
mw — mutt-wizard - add, list, remove email configurations for mbsync, getmail and mutt. Sync email without mutt.
mw [<command>|<email>]
| mw Same as mw sync | mw add Add and configure an email address (9 max.) | mw list List configured accounts | mw remove Pick an account to remove | mw purge Remove all accounts and settings | mw cron Enable or disable an autosync via cronjob | mw sync Sync mail based on config in .config/isync/mbsyncrc and .config/getmail/* | mw --help|-h Print this message | mw --version|-v Print version
mw configures mbsync, getmail, msmtp and mutt in one go, or just mutt. Note, mutt stands for mutt or neomutt, but mw settings was only tested with neomutt.
Without command parameter sync is assumed. If a parameter contains @ an email is assumed and synced.
Add new email.
List all email accounts configured by mutt-wizard
Remove the configuration files for an already configured email
Removes all mw generated mutt settings and .config/mutt/accounts/1-** *.config/isync/mbsyncrc* *.config/getmail/** *.config/msmtp/config*
toggle a cronjob that periodically syncs mail
syncs mail for all email accounts managed by mw (whose paths end in the email). This is the default, if no parameter is given. If an email address is given, only that email is synced.
Every mw sync run will re-generate the mutt configuration from the configuration files for mbsync, getmail and msmtp. So you could edit them after or not use mw add at all.
Just keep the Path, path and account ending in the email address.
Files are under .config or $XDG_CONFIG_HOME:
~/.config/isync/mbsync (since not mbsync's default, you would need a -c option. Use mw, instead).
~/.config/msmtp/config
~/.config/getmail/<email>
~/.config/mutt/mw_generated.muttrc
The generated mutt configuration has these bindings
/usr/share/mutt-wizard/mutt-wizard.muttrc is linked in your muttrc. Have this line there, if you prefer your own settings:
# source /usr/share/mutt-wizard/mutt-wizard.muttrc
You will need to keep the binding of i,g,C,M to noop, though, because of the generated bindings in the account muttrc. Else you can overwrite certain things after the uncommented sourcing line.
Optional:
w3m - view HTML email and images in mutt.
notmuch - index and search mail. If the configuration file in $NOTMUCH_CONFIG is not there, mw add will create it.
libnotify - allows notifications when syncing mail with mw
abook - a terminal-based address book.
A cron manager (e.g. cronie) - if you want to enable the auto-sync feature.
pam-gnupg - To provide your GPG key at login and never after. See directions.
Alternatively increasing default-cache-ttl and max-cache-ttl in gpg-agent.conf avoid constant password requests.
urlscan - outputs urls in mail
git clone https://github.com/rpuntaie/mutt-wizard
cd mutt-wizard
sudo make install
User of Arch-based distros can also install mutt-wizard from the AUR as mw-git.
Once everything is setup, you’ll use mutt to access your mail.
Mutt usage with the accompanied /usr/share/mutt-wizard.muttrc:
syncing
mailboxes,accounts
xy are
searching
composing
delete,undelete,save
moving around
sidebar
input field/command line
Look into /usr/share/mutt-wizard.muttrc to see all bindings.
Encoding
isync is not fully UTF-8 compatible. Non-Latin characters may be garbled (although sync should succeed). mw will also not auto-create mailbox shortcuts since it is looking for English mailbox names. I strongly recommend you to set your email language to English on your mail server to avoid these problems.
Mail is downloaded to a folder named after your email in $MAILDIR, which defaults to $HOME/Mail/, the default for mutt. Neither mw remove nor mw purge will delete downloaded mail. Do that manually.
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. If you use Gmail, be sure to handle this before running mutt-wizard <https://support.google.com/accounts/answer/6010255>.
Protonmail users must use the Protonmail Bridge <https://protonmail.com/bridge/> to access their IMAP and SMTP servers. This too should be configured before running mutt-wizard.
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 have been set up.
The main script to manage and sync emails.
Used by the mailcap file that comes with mutt-wizard.
Default mutt settings.
Default mailcap file.
Email server database.
GitHub Issues: https://github.com/rpuntaie/mutt-wizard/issues
Original author, started in 2018.
Bugfixes, Improvements in 2019.
GitHub: <https://github.com/rpuntaie/mutt-wizard>
GPLv3
neomutt(1), neomuttrc(1) mbsync(1), msmtp(1), notmuch(1), abook(1)