Merge branch 'master' of github.com:LukeSmithxyz/mutt-wizard

This commit is contained in:
Luke Smith 2019-05-28 16:37:36 -04:00
commit 409f31b991
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252
3 changed files with 18 additions and 4 deletions

View File

@ -1,5 +1,11 @@
#!/bin/bash #!/bin/bash
height=$(stty size | awk 'BEGIN {FS = " "} {print $1;}')
width=$(stty size | awk 'BEGIN {FS = " "} {print $2;}') #get image resolution
resolution=$(identify $1 | awk '{print $3}')
IFS='x' # x is set as delimiter
read -ra ADDR <<< "$resolution"
width=${ADDR[0]}
height=${ADDR[1]}
### Display Image / offset with mutt bar ### Display Image / offset with mutt bar
echo -e "2;3;\n0;1;210;20;$((width*7-250));$((height*14-100));0;0;0;0;$1\n4;\n3;" | /usr/lib/w3m/w3mimgdisplay & echo -e "2;3;\n0;1;0;42;$((width));$((height));0;0;0;0;$1\n4;\n3;" | /usr/lib/w3m/w3mimgdisplay &

2
bin/mw
View File

@ -313,6 +313,8 @@ synchronize_flags=true
gpg_path=$GPG" gpg_path=$GPG"
echo "$nmbasic" > "$NOTMUCH_CONFIG" ;} echo "$nmbasic" > "$NOTMUCH_CONFIG" ;}
trap 'echo -e "\033[0m\n"' INT
case "$1" in case "$1" in
ls) list ;; ls) list ;;
add) asktype && askinfo && tryconnect && finalize || delete ;; add) asktype && askinfo && tryconnect && finalize || delete ;;

View File

@ -42,6 +42,8 @@ chemist.com,imap.mail.com,993,smtp.mail.com,587
chrissx.ga,chrissx.ga,993,chrissx.ga,25 chrissx.ga,chrissx.ga,993,chrissx.ga,25
clerk.com,imap.mail.com,993,smtp.mail.com,587 clerk.com,imap.mail.com,993,smtp.mail.com,587
clubmember.org,imap.mail.com,993,smtp.mail.com,587 clubmember.org,imap.mail.com,993,smtp.mail.com,587
cmail.carleton.ca,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
carleton.ca,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
cocaine.ninja,mail.cock.li,993,mail.cock.li,587 cocaine.ninja,mail.cock.li,993,mail.cock.li,587
cock.email,mail.cock.li,993,mail.cock.li,587 cock.email,mail.cock.li,993,mail.cock.li,587
cock.li,mail.cock.li,993,mail.cock.li,587 cock.li,mail.cock.li,993,mail.cock.li,587
@ -138,7 +140,7 @@ one.com,imap.one.com,993,send.one.com,465
onenetbeyond.org,mail.autistici.org,993,smtp.autistici.org,465 onenetbeyond.org,mail.autistici.org,993,smtp.autistici.org,465
onet.com.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 onet.com.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
onet.eu,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 onet.eu,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,587
online.de,imap.1und1.de,993,smtp.1und1.de,465 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
@ -150,6 +152,8 @@ 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
poczta.fm,poczta.interia.pl,993,poczta.interia.pl,465 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
mail.polimi.it,outlook.office365.com,993,smtp.office365.com,587
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.de,posteo.de,993,posteo.de,587
posteo.net,posteo.de,993,posteo.de,587 posteo.net,posteo.de,993,posteo.de,587
@ -168,6 +172,7 @@ spoko.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
stronzi.org,mail.autistici.org,993,smtp.autistici.org,465 stronzi.org,mail.autistici.org,993,smtp.autistici.org,465
stud.tu-darmstadt.de,imap.stud.tu-darmstadt.de,993,smtp.tu-darmstadt.de,465 stud.tu-darmstadt.de,imap.stud.tu-darmstadt.de,993,smtp.tu-darmstadt.de,465
stud.uis.no,outlook.office365.com,993,smtp.office365.com,587 stud.uis.no,outlook.office365.com,993,smtp.office365.com,587
student.rmit.edu.au,outlook.office365.com,993,smtp.office365.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
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
@ -187,6 +192,7 @@ usa.com,imap.mail.com,993,smtp.mail.com,587
uw.edu,imap.gmail.com,993,smtp.gmail.com,465 uw.edu,imap.gmail.com,993,smtp.gmail.com,465
uymail.com,imap.mail.com,993,smtp.mail.com,587 uymail.com,imap.mail.com,993,smtp.mail.com,587
vip.onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 vip.onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
vivaldi.net,imap.vivaldi.net,993,smtp.vivaldi.net,587
vp.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 vp.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
vt.edu,imap.gmail.com,993,smtp.gmail.com,587 vt.edu,imap.gmail.com,993,smtp.gmail.com,587
waifu.club,mail.cock.li,993,mail.cock.li,587 waifu.club,mail.cock.li,993,mail.cock.li,587

1 ADDRESS IMAP imap port SMTP smtp port
42 chrissx.ga chrissx.ga 993 chrissx.ga 25
43 clerk.com imap.mail.com 993 smtp.mail.com 587
44 clubmember.org imap.mail.com 993 smtp.mail.com 587
45 cmail.carleton.ca imap-mail.outlook.com 993 smtp-mail.outlook.com 587
46 carleton.ca imap-mail.outlook.com 993 smtp-mail.outlook.com 587
47 cocaine.ninja mail.cock.li 993 mail.cock.li 587
48 cock.email mail.cock.li 993 mail.cock.li 587
49 cock.li mail.cock.li 993 mail.cock.li 587
140 onenetbeyond.org mail.autistici.org 993 smtp.autistici.org 465
141 onet.com.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
142 onet.eu imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
143 onet.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465 587
144 online.de imap.1und1.de 993 smtp.1und1.de 465
145 op.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
146 opoczta.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
152 pm.me 127.0.0.1 1143 127.0.0.1 1025
153 poczta.fm poczta.interia.pl 993 poczta.interia.pl 465
154 poczta.onet.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
155 polimi.it outlook.office365.com 993 smtp.office365.com 587
156 mail.polimi.it outlook.office365.com 993 smtp.office365.com 587
157 post.com imap.mail.com 993 smtp.mail.com 587
158 posteo.de posteo.de 993 posteo.de 587
159 posteo.net posteo.de 993 posteo.de 587
172 stronzi.org mail.autistici.org 993 smtp.autistici.org 465
173 stud.tu-darmstadt.de imap.stud.tu-darmstadt.de 993 smtp.tu-darmstadt.de 465
174 stud.uis.no outlook.office365.com 993 smtp.office365.com 587
175 student.rmit.edu.au outlook.office365.com 993 smtp.office365.com 587
176 students.southwales.ac.uk imap.gmail.com 993 smtp.gmail.com 587
177 studserv.uni-leipzig.de studserv.uni-leipzig.de 993 studserv.uni-leipzig.de 25
178 subvertising.org mail.autistici.org 993 smtp.autistici.org 465
192 uw.edu imap.gmail.com 993 smtp.gmail.com 465
193 uymail.com imap.mail.com 993 smtp.mail.com 587
194 vip.onet.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
195 vivaldi.net imap.vivaldi.net 993 smtp.vivaldi.net 587
196 vp.pl imap.poczta.onet.pl 993 smtp.poczta.onet.pl 465
197 vt.edu imap.gmail.com 993 smtp.gmail.com 587
198 waifu.club mail.cock.li 993 mail.cock.li 587