summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md10
-rw-r--r--autoconf/domains.csv7
-rwxr-xr-xmutt-wizard.sh1
3 files changed, 15 insertions, 3 deletions
diff --git a/README.md b/README.md
index 13324d4..3d268c0 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ The mutt-wizard is all of this in a simple ncurses menu. It's really just a litt
The system takes an email and autodetect its server settings, generating a muttrc and offlineimaprc profile automatically. If it can't do so, it simply prompts you for these (which you can easily look up) and will put them all in the right places. You get:
+ Automatic configuration of mutt and offlineimap
-+ Automatic encryption and safe storage of passwords which are used my mutt and offlineimap when necessary
++ Automatic encryption and safe storage of passwords which are used by mutt and offlineimap when necessary
+ Multiple account management in mutt: jump from account to account with the `i` prefix in mutt: `i1`: first email account, `i5`: fifth, etc.
+ Easy movement to mail folders in mutt: `gi`: go to inbox, `gs` to sent mail, `ga` to archive, `gS` to spam, `gd` to drafts, etc.
+ Some default controls and colors. This system is going to be integrated into my [public auto-rice script](https://larbs.xyz) so I want it to look pretty and be usable out the box.
@@ -26,12 +26,16 @@ Note also that Gmail and some providers require you to enable sign-ins from thir
## Installation and Dependencies
-dialog, neomutt and offlineimap should be installed. The contents of this repo should go directly in `~/.config/mutt/` and run from there. You also need to have a GPG public/private key pair for the wizard to automatically store your passwords. Otherwise you'll have to store them insecurely in plaintext files without the help of the wizard.
+dialog, neomutt and offlineimap should be installed. You also need to have a GPG public/private key pair for the wizard to automatically store your passwords. Otherwise you'll have to store them insecurely in plaintext files without the help of the wizard. The whole repo should be cloned to `~/.config/mutt/`. (If you have a previous mutt folder, you'll want to back it up or delete it first.)
+
+```
+git clone https://github.com/LukeSmithxyz/mutt-wizard.git ~/.config/mutt
+```
Just run `mutt-wizard.sh` for all the options, to install an account:
* First, select the "Add an account" option and give the script your account information.
-* Second, in a separate terminal, start your mail sync my running `offlineimap` or `offlineimap -a <your account name>`. This will start downloading all your mail for offline access.
+* Second, in a separate terminal, start your mail sync by running `offlineimap` or `offlineimap -a <your account name>`. This will start downloading all your mail for offline access.
* Third, once your mailbox has started to download, reenter the script and select the "Auto-detect mailboxes" open. This will finalize the install and let you open up mutt to see your mail.
Whenever you want to check for mail, just run the `offlineimap` command again.
diff --git a/autoconf/domains.csv b/autoconf/domains.csv
index 49b547d..210df8d 100644
--- a/autoconf/domains.csv
+++ b/autoconf/domains.csv
@@ -59,6 +59,12 @@ fastmail.com,imap.fastmail.com,993,smtp.fastmail.com,465
firemail.cc,mail.cock.li,993,mail.cock.li,587
getbackinthe.kitchen,mail.cock.li,993,mail.cock.li,587
gmail.com,imap.google.com,993,smtp.gmail.com,587
+gmx.com,imap.gmx.net,993,mail.gmx.net,587
+gmx.de,imap.gmx.net,993,mail.gmx.net,587
+gmx.eu,imap.gmx.net,993,mail.gmx.net,587
+gmx.info,imap.gmx.net,993,mail.gmx.net,587
+gmx.net,imap.gmx.net,993,mail.gmx.net,587
+gmx.org,imap.gmx.net,993,mail.gmx.net,587
goat.si,mail.cock.li,993,mail.cock.li,587
hitler.rocks,mail.cock.li,993,mail.cock.li,587
horsefucker.org,mail.cock.li,993,mail.cock.li,587
@@ -107,3 +113,4 @@ yandex.kz,imap.yandex.com,993,smtp.yandex.com,465
yandex.net,imap.yandex.com,993,smtp.yandex.com,465
yandex.ru,imap.yandex.com,993,smtp.yandex.com,465
yandex.ua,imap.yandex.com,993,smtp.yandex.com,465
+zoho.com,imap.zoho.com,993,smtp.zoho.com,465
diff --git a/mutt-wizard.sh b/mutt-wizard.sh
index 4df5916..1e321c3 100755
--- a/mutt-wizard.sh
+++ b/mutt-wizard.sh
@@ -147,6 +147,7 @@ addAccount() {
# Creating the offlineimaprc if it doesn't exist already.
if [ ! -f ~/.offlineimaprc ]; then cp "$muttdir"autoconf/offlineimap_header ~/.offlineimaprc; fi
cat "$muttdir"autoconf/offlineimap_profile | sed -e "$replacement" >> ~/.offlineimaprc
+ mkdir -p ~/.mail/$title
# Add the mutt profile.
cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc