Top-level domain wildcard (#475)

This commit is contained in:
Lorenzo Leonardini 2020-08-27 22:46:36 +02:00 committed by GitHub
parent abe90a1bc4
commit 9910b434c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 67 deletions

4
bin/mw
View File

@ -149,6 +149,10 @@ askinfo() { \
esac esac
printf "\\nSearching for \033[32m%s\033[0m in \033[34m\`domains.csv\`\033[0m..." "$domain" printf "\\nSearching for \033[32m%s\033[0m in \033[34m\`domains.csv\`\033[0m..." "$domain"
serverinfo="$(grep "^$search_query" "$muttshare/domains.csv" 2>/dev/null)" serverinfo="$(grep "^$search_query" "$muttshare/domains.csv" 2>/dev/null)"
if [ -z "$serverinfo" ]; then
search_query=$(echo "$search_query" | sed "s/\.[^\.]*$/\.\\\*/")
serverinfo="$(grep "^$search_query" "$muttshare/domains.csv" 2>/dev/null)"
fi
if [ -z "$serverinfo" ]; then if [ -z "$serverinfo" ]; then
printf "Your email domain is not in mutt-wizard's database yet.\\nmutt-wizard will still autoconfigure everything, but you will have to manually type in your service's IMAP and SMTP server information.\\nYou can usually quickly find this by internet searching for it.\\n" printf "Your email domain is not in mutt-wizard's database yet.\\nmutt-wizard will still autoconfigure everything, but you will have to manually type in your service's IMAP and SMTP server information.\\nYou can usually quickly find this by internet searching for it.\\n"
printf "Insert the IMAP server for your email provider (excluding the port number)\\n\033[36m\t" printf "Insert the IMAP server for your email provider (excluding the port number)\\n\033[36m\t"

View File

@ -96,64 +96,20 @@ fsu-jena,exchange.uni-jena.de,993,smtp.uni-jena.de,587
gcc.edu,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 gcc.edu,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
getbackinthe.kitchen,mail.cock.li,993,mail.cock.li,587 getbackinthe.kitchen,mail.cock.li,993,mail.cock.li,587
gmail.com,imap.gmail.com,993,smtp.gmail.com,587 gmail.com,imap.gmail.com,993,smtp.gmail.com,587
gmx.at,imap.gmx.net,993,mail.gmx.net,587 gmx.*,imap.gmx.net,993,mail.gmx.net,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.fr,imap.gmx.com,993,mail.gmx.com,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
go2.pl,poczta.o2.pl,993,poczta.o2.pl,465 go2.pl,poczta.o2.pl,993,poczta.o2.pl,465
goat.si,mail.cock.li,993,mail.cock.li,587 goat.si,mail.cock.li,993,mail.cock.li,587
googlemail.com,imap.googlemail.com,993,smtp.googlemail.com,587 googlemail.com,imap.googlemail.com,993,smtp.googlemail.com,587
grrlz.net,mail.autistici.org,993,smtp.autistici.org,465 grrlz.net,mail.autistici.org,993,smtp.autistici.org,465
hacari.com,mail.autistici.org,993,smtp.autistici.org,465 hacari.*,mail.autistici.org,993,smtp.autistici.org,465
hacari.net,mail.autistici.org,993,smtp.autistici.org,465
hacari.org,mail.autistici.org,993,smtp.autistici.org,465
helsinki.fi,outlook.office365.com,993,smtp.helsinki.fi,587 helsinki.fi,outlook.office365.com,993,smtp.helsinki.fi,587
hhu.de,mail.hhu.de,993,mail.hhu.de,465 hhu.de,mail.hhu.de,993,mail.hhu.de,465
hitler.rocks,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 horsefucker.org,mail.cock.li,993,mail.cock.li,587
hostgator,gator4171.hostgator.com,993,gator4171.hostgator.com,587 hostgator,gator4171.hostgator.com,993,gator4171.hostgator.com,587
hotmail.be,outlook.office365.com,993,smtp.office365.com,587 hotmail.*,outlook.office365.com,993,smtp.office365.com,587
hotmail.ca,outlook.office365.com,993,smtp.office365.com,587 hotmail.co.*,outlook.office365.com,993,smtp.office365.com,587
hotmail.cl,outlook.office365.com,993,smtp.office365.com,587 hotmail.com.*,outlook.office365.com,993,smtp.office365.com,587
hotmail.co.id,outlook.office365.com,993,smtp.office365.com,587
hotmail.co.il,outlook.office365.com,993,smtp.office365.com,587
hotmail.co.in,outlook.office365.com,993,smtp.office365.com,587
hotmail.co.jp,outlook.office365.com,993,smtp.office365.com,587
hotmail.co.kr,outlook.office365.com,993,smtp.office365.com,587
hotmail.co.th,outlook.office365.com,993,smtp.office365.com,587
hotmail.co.uk,outlook.office365.com,993,smtp.office365.com,587
hotmail.co.za,outlook.office365.com,993,smtp.office365.com,587
hotmail.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
hotmail.com.ar,outlook.office365.com,993,smtp.office365.com,587
hotmail.com.au,outlook.office365.com,993,smtp.office365.com,587
hotmail.com.br,outlook.office365.com,993,smtp.office365.com,587
hotmail.com.hk,outlook.office365.com,993,smtp.office365.com,587
hotmail.com.tr,outlook.office365.com,993,smtp.office365.com,587
hotmail.com.tw,outlook.office365.com,993,smtp.office365.com,587
hotmail.com.vn,outlook.office365.com,993,smtp.office365.com,587
hotmail.cz,outlook.office365.com,993,smtp.office365.com,587
hotmail.de,outlook.office365.com,993,smtp.office365.com,587
hotmail.dk,outlook.office365.com,993,smtp.office365.com,587
hotmail.es,outlook.office365.com,993,smtp.office365.com,587
hotmail.fi,outlook.office365.com,993,smtp.office365.com,587
hotmail.fr,outlook.office365.com,993,smtp.office365.com,587
hotmail.gr,outlook.office365.com,993,smtp.office365.com,587
hotmail.hu,outlook.office365.com,993,smtp.office365.com,587
hotmail.it,outlook.office365.com,993,smtp.office365.com,587
hotmail.lt,outlook.office365.com,993,smtp.office365.com,587
hotmail.lv,outlook.office365.com,993,smtp.office365.com,587
hotmail.my,outlook.office365.com,993,smtp.office365.com,587
hotmail.nl,outlook.office365.com,993,smtp.office365.com,587
hotmail.no,outlook.office365.com,993,smtp.office365.com,587
hotmail.ph,outlook.office365.com,993,smtp.office365.com,587
hotmail.rs,outlook.office365.com,993,smtp.office365.com,587
hotmail.se,outlook.office365.com,993,smtp.office365.com,587
hotmail.sg,outlook.office365.com,993,smtp.office365.com,587
hotmail.sk,outlook.office365.com,993,smtp.office365.com,587
hs-mittweida.de,mail.hs-mittweida.de,993,mail.hs-mittweida.de,465 hs-mittweida.de,mail.hs-mittweida.de,993,mail.hs-mittweida.de,465
humbug.pw,imap.migadu.com,993,smtp.migadu.com,587 humbug.pw,imap.migadu.com,993,smtp.migadu.com,587
hushmail.com,imap.hushmail.com,993,smtp.hushmail.com,465 hushmail.com,imap.hushmail.com,993,smtp.hushmail.com,465
@ -166,8 +122,7 @@ infomaniak.com,imap.infomaniak.com,993,imap.infomaniak.com,587
insiberia.net,mail.autistici.org,993,smtp.autistici.org,465 insiberia.net,mail.autistici.org,993,smtp.autistici.org,465
insicuri.net,mail.autistici.org,993,smtp.autistici.org,465 insicuri.net,mail.autistici.org,993,smtp.autistici.org,465
interactio.io,imap.gmail.com,993,smtp.gmail.com,587 interactio.io,imap.gmail.com,993,smtp.gmail.com,587
interia.eu,poczta.interia.pl,993,poczta.interia.pl,465 interia.*,poczta.interia.pl,993,poczta.interia.pl,465
interia.pl,poczta.interia.pl,993,poczta.interia.pl,465
inventati.org,mail.autistici.org,993,smtp.autistici.org,465 inventati.org,mail.autistici.org,993,smtp.autistici.org,465
ionos.de,imap.ionos.de,993,smtp.ionos.de,587 ionos.de,imap.ionos.de,993,smtp.ionos.de,587
itu.dk,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 itu.dk,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
@ -220,9 +175,7 @@ online.de,imap.1und1.de,993,smtp.1und1.de,465
op.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 op.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
opoczta.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 opoczta.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
orange.fr,imap.orange.fr,993,smtp.orange.fr,465 orange.fr,imap.orange.fr,993,smtp.orange.fr,465
outlook.at,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 outlook.*,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
outlook.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
outlook.de,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
outlook.es,outlook.office365.com,993,smtp.office365.com,587 outlook.es,outlook.office365.com,993,smtp.office365.com,587
paranoici.org,mail.autistici.org,993,smtp.autistici.org,465 paranoici.org,mail.autistici.org,993,smtp.autistici.org,465
pm.me,127.0.0.1,1143,127.0.0.1,1025 pm.me,127.0.0.1,1143,127.0.0.1,1025
@ -230,10 +183,8 @@ poczta.fm,poczta.interia.pl,993,poczta.interia.pl,465
poczta.onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 poczta.onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
polimi.it,outlook.office365.com,993,smtp.office365.com,587 polimi.it,outlook.office365.com,993,smtp.office365.com,587
polito.it,mail.polito.it,993,mail.polito.it,465 polito.it,mail.polito.it,993,mail.polito.it,465
polito.it,mail.polito.it,993,mail.polito.it,465
post.com,imap.mail.com,993,smtp.mail.com,587 post.com,imap.mail.com,993,smtp.mail.com,587
posteo.de,posteo.de,993,posteo.de,587 posteo.*,posteo.de,993,posteo.de,587
posteo.net,posteo.de,993,posteo.de,587
privacyrequired.com,mail.autistici.org,993,smtp.autistici.org,465 privacyrequired.com,mail.autistici.org,993,smtp.autistici.org,465
prokonto.pl,poczta.o2.pl,993,poczta.o2.pl,465 prokonto.pl,poczta.o2.pl,993,poczta.o2.pl,465
protonmail.ch,127.0.0.1,1143,127.0.0.1,1025 protonmail.ch,127.0.0.1,1143,127.0.0.1,1025
@ -264,7 +215,6 @@ studenti.unipi.it,outlook.office365.com,993,smtp.office365.com,587
students.rmcacs.org,imap.gmail.com,993,smtp.gmail.com,587 students.rmcacs.org,imap.gmail.com,993,smtp.gmail.com,587
students.southwales.ac.uk,imap.gmail.com,993,smtp.gmail.com,587 students.southwales.ac.uk,imap.gmail.com,993,smtp.gmail.com,587
studio.unibo.it,outlook.office365.com,993,smtp.office365.com,587 studio.unibo.it,outlook.office365.com,993,smtp.office365.com,587
studio.unibo.it,outlook.office365.com,993,smtp.office365.com,587
studserv.uni-leipzig.de,studserv.uni-leipzig.de,993,studserv.uni-leipzig.de,25 studserv.uni-leipzig.de,studserv.uni-leipzig.de,993,studserv.uni-leipzig.de,25
subvertising.org,mail.autistici.org,993,smtp.autistici.org,465 subvertising.org,mail.autistici.org,993,smtp.autistici.org,465
t-online.de,secureimap.t-online.de,993,securesmtp.t-online.de,465 t-online.de,secureimap.t-online.de,993,securesmtp.t-online.de,465
@ -309,15 +259,8 @@ wit.edu,outlook.office365.com,993,smtp.office365.com,587
wp.pl,imap.wp.pl,993,smtp.wp.pl,465 wp.pl,imap.wp.pl,993,smtp.wp.pl,465
writeme.com,imap.mail.com,993,smtp.mail.com,587 writeme.com,imap.mail.com,993,smtp.mail.com,587
ya.ru,imap.yandex.com,993,smtp.yandex.com,587 ya.ru,imap.yandex.com,993,smtp.yandex.com,587
yahoo.com,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587 yahoo.*,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587
yahoo.fr,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587 yandex.*,imap.yandex.com,993,smtp.yandex.com,587
yahoo.gr,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587
yandex.by,imap.yandex.com,993,smtp.yandex.com,587
yandex.com,imap.yandex.com,993,smtp.yandex.com,587
yandex.kz,imap.yandex.com,993,smtp.yandex.com,587
yandex.net,imap.yandex.com,993,smtp.yandex.com,587
yandex.ru,imap.yandex.com,993,smtp.yandex.com,587
yandex.ua,imap.yandex.com,993,smtp.yandex.com,587
ymail.com,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,465 ymail.com,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,465
zaclys.net,mail.zaclys.net,993,mail.zaclys.net,465 zaclys.net,mail.zaclys.net,993,mail.zaclys.net,465
zoho.com,imap.zoho.com,993,smtp.zoho.com,465 zoho.com,imap.zoho.com,993,smtp.zoho.com,465

1 ADDRESS IMAP imap port SMTP smtp port
96 gcc.edu imap-mail.outlook.com 993 smtp-mail.outlook.com 587
97 getbackinthe.kitchen mail.cock.li 993 mail.cock.li 587
98 gmail.com imap.gmail.com 993 smtp.gmail.com 587
99 gmx.at gmx.* imap.gmx.net 993 mail.gmx.net 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.fr imap.gmx.com 993 mail.gmx.com 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
100 go2.pl poczta.o2.pl 993 poczta.o2.pl 465
101 goat.si mail.cock.li 993 mail.cock.li 587
102 googlemail.com imap.googlemail.com 993 smtp.googlemail.com 587
103 grrlz.net mail.autistici.org 993 smtp.autistici.org 465
104 hacari.com hacari.* mail.autistici.org 993 smtp.autistici.org 465
hacari.net mail.autistici.org 993 smtp.autistici.org 465
hacari.org mail.autistici.org 993 smtp.autistici.org 465
105 helsinki.fi outlook.office365.com 993 smtp.helsinki.fi 587
106 hhu.de mail.hhu.de 993 mail.hhu.de 465
107 hitler.rocks mail.cock.li 993 mail.cock.li 587
108 horsefucker.org mail.cock.li 993 mail.cock.li 587
109 hostgator gator4171.hostgator.com 993 gator4171.hostgator.com 587
110 hotmail.be hotmail.* outlook.office365.com 993 smtp.office365.com 587
111 hotmail.ca hotmail.co.* outlook.office365.com 993 smtp.office365.com 587
112 hotmail.cl hotmail.com.* outlook.office365.com 993 smtp.office365.com 587
hotmail.co.id outlook.office365.com 993 smtp.office365.com 587
hotmail.co.il outlook.office365.com 993 smtp.office365.com 587
hotmail.co.in outlook.office365.com 993 smtp.office365.com 587
hotmail.co.jp outlook.office365.com 993 smtp.office365.com 587
hotmail.co.kr outlook.office365.com 993 smtp.office365.com 587
hotmail.co.th outlook.office365.com 993 smtp.office365.com 587
hotmail.co.uk outlook.office365.com 993 smtp.office365.com 587
hotmail.co.za outlook.office365.com 993 smtp.office365.com 587
hotmail.com imap-mail.outlook.com 993 smtp-mail.outlook.com 587
hotmail.com.ar outlook.office365.com 993 smtp.office365.com 587
hotmail.com.au outlook.office365.com 993 smtp.office365.com 587
hotmail.com.br outlook.office365.com 993 smtp.office365.com 587
hotmail.com.hk outlook.office365.com 993 smtp.office365.com 587
hotmail.com.tr outlook.office365.com 993 smtp.office365.com 587
hotmail.com.tw outlook.office365.com 993 smtp.office365.com 587
hotmail.com.vn outlook.office365.com 993 smtp.office365.com 587
hotmail.cz outlook.office365.com 993 smtp.office365.com 587
hotmail.de outlook.office365.com 993 smtp.office365.com 587
hotmail.dk outlook.office365.com 993 smtp.office365.com 587
hotmail.es outlook.office365.com 993 smtp.office365.com 587
hotmail.fi outlook.office365.com 993 smtp.office365.com 587
hotmail.fr outlook.office365.com 993 smtp.office365.com 587
hotmail.gr outlook.office365.com 993 smtp.office365.com 587
hotmail.hu outlook.office365.com 993 smtp.office365.com 587
hotmail.it outlook.office365.com 993 smtp.office365.com 587
hotmail.lt outlook.office365.com 993 smtp.office365.com 587
hotmail.lv outlook.office365.com 993 smtp.office365.com 587
hotmail.my outlook.office365.com 993 smtp.office365.com 587
hotmail.nl outlook.office365.com 993 smtp.office365.com 587
hotmail.no outlook.office365.com 993 smtp.office365.com 587
hotmail.ph outlook.office365.com 993 smtp.office365.com 587
hotmail.rs outlook.office365.com 993 smtp.office365.com 587
hotmail.se outlook.office365.com 993 smtp.office365.com 587
hotmail.sg outlook.office365.com 993 smtp.office365.com 587
hotmail.sk outlook.office365.com 993 smtp.office365.com 587
113 hs-mittweida.de mail.hs-mittweida.de 993 mail.hs-mittweida.de 465
114 humbug.pw imap.migadu.com 993 smtp.migadu.com 587
115 hushmail.com imap.hushmail.com 993 smtp.hushmail.com 465
122 insiberia.net mail.autistici.org 993 smtp.autistici.org 465
123 insicuri.net mail.autistici.org 993 smtp.autistici.org 465
124 interactio.io imap.gmail.com 993 smtp.gmail.com 587
125 interia.eu interia.* poczta.interia.pl 993 poczta.interia.pl 465
interia.pl poczta.interia.pl 993 poczta.interia.pl 465
126 inventati.org mail.autistici.org 993 smtp.autistici.org 465
127 ionos.de imap.ionos.de 993 smtp.ionos.de 587
128 itu.dk imap-mail.outlook.com 993 smtp-mail.outlook.com 587
175 op.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
176 opoczta.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
177 orange.fr imap.orange.fr 993 smtp.orange.fr 465
178 outlook.at outlook.* imap-mail.outlook.com 993 smtp-mail.outlook.com 587
outlook.com imap-mail.outlook.com 993 smtp-mail.outlook.com 587
outlook.de imap-mail.outlook.com 993 smtp-mail.outlook.com 587
179 outlook.es outlook.office365.com 993 smtp.office365.com 587
180 paranoici.org mail.autistici.org 993 smtp.autistici.org 465
181 pm.me 127.0.0.1 1143 127.0.0.1 1025
183 poczta.onet.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
184 polimi.it outlook.office365.com 993 smtp.office365.com 587
185 polito.it mail.polito.it 993 mail.polito.it 465
polito.it mail.polito.it 993 mail.polito.it 465
186 post.com imap.mail.com 993 smtp.mail.com 587
187 posteo.de posteo.* posteo.de 993 posteo.de 587
posteo.net posteo.de 993 posteo.de 587
188 privacyrequired.com mail.autistici.org 993 smtp.autistici.org 465
189 prokonto.pl poczta.o2.pl 993 poczta.o2.pl 465
190 protonmail.ch 127.0.0.1 1143 127.0.0.1 1025
215 students.rmcacs.org imap.gmail.com 993 smtp.gmail.com 587
216 students.southwales.ac.uk imap.gmail.com 993 smtp.gmail.com 587
217 studio.unibo.it outlook.office365.com 993 smtp.office365.com 587
studio.unibo.it outlook.office365.com 993 smtp.office365.com 587
218 studserv.uni-leipzig.de studserv.uni-leipzig.de 993 studserv.uni-leipzig.de 25
219 subvertising.org mail.autistici.org 993 smtp.autistici.org 465
220 t-online.de secureimap.t-online.de 993 securesmtp.t-online.de 465
259 wp.pl imap.wp.pl 993 smtp.wp.pl 465
260 writeme.com imap.mail.com 993 smtp.mail.com 587
261 ya.ru imap.yandex.com 993 smtp.yandex.com 587
262 yahoo.com yahoo.* imap.mail.yahoo.com 993 smtp.mail.yahoo.com 587
263 yahoo.fr yandex.* imap.mail.yahoo.com imap.yandex.com 993 smtp.mail.yahoo.com smtp.yandex.com 587
yahoo.gr imap.mail.yahoo.com 993 smtp.mail.yahoo.com 587
yandex.by imap.yandex.com 993 smtp.yandex.com 587
yandex.com imap.yandex.com 993 smtp.yandex.com 587
yandex.kz imap.yandex.com 993 smtp.yandex.com 587
yandex.net imap.yandex.com 993 smtp.yandex.com 587
yandex.ru imap.yandex.com 993 smtp.yandex.com 587
yandex.ua imap.yandex.com 993 smtp.yandex.com 587
264 ymail.com imap.mail.yahoo.com 993 smtp.mail.yahoo.com 465
265 zaclys.net mail.zaclys.net 993 mail.zaclys.net 465
266 zoho.com imap.zoho.com 993 smtp.zoho.com 465