From f807448b649f382a73d60cce4a6d0dcffce7decc Mon Sep 17 00:00:00 2001 From: Alex Voloshyn Date: Mon, 20 May 2019 13:48:14 +0900 Subject: [PATCH 1/8] use image resolution instead of window row/col size to display the image attachment --- bin/muttimage | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/muttimage b/bin/muttimage index 03bd5f3..c798293 100755 --- a/bin/muttimage +++ b/bin/muttimage @@ -1,5 +1,11 @@ #!/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 -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 & From ee13994051f4f80be60bb3337a555032b870cf28 Mon Sep 17 00:00:00 2001 From: Jason Barmparesos Date: Wed, 22 May 2019 22:44:19 +0300 Subject: [PATCH 2/8] Use different SMTP server port for onet.pl Even though the following official help page says that port 465 should be used, this didn't work for me (msmtp just hang indefinitely). Instead port 587 seems to work fine, even though I couldn't fine some official document by the e-mail provider mentioning it. https://pomoc.poczta.onet.pl/baza-wiedzy/adresy-serwerow-potrzebne-do-konfiguracji/ If someone else can confirm that indeed, 587 works for them as well, feel free to merge this PR. --- share/domains.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/domains.csv b/share/domains.csv index ced2d0a..67aa1fd 100644 --- a/share/domains.csv +++ b/share/domains.csv @@ -138,7 +138,7 @@ one.com,imap.one.com,993,send.one.com,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.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 op.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 opoczta.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 From f48e0398966ed92d3282eb8e527db8333b2f5e2b Mon Sep 17 00:00:00 2001 From: Tim Otlik Date: Wed, 22 May 2019 22:43:27 +0200 Subject: [PATCH 3/8] feat: add vivaldi.net to known domains IMAP mail.vivaldi.net 993 SMTP mail.vivaldi.net 465 --- share/domains.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/share/domains.csv b/share/domains.csv index ced2d0a..0e388c9 100644 --- a/share/domains.csv +++ b/share/domains.csv @@ -187,6 +187,7 @@ usa.com,imap.mail.com,993,smtp.mail.com,587 uw.edu,imap.gmail.com,993,smtp.gmail.com,465 uymail.com,imap.mail.com,993,smtp.mail.com,587 vip.onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 +vivaldi.net,mail.vivaldi.net,993,mail.vivaldi.net,465 vp.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 vt.edu,imap.gmail.com,993,smtp.gmail.com,587 waifu.club,mail.cock.li,993,mail.cock.li,587 From 3429330b08961d3dce83b088e4cf4522fbbd5e15 Mon Sep 17 00:00:00 2001 From: Tim Otlik Date: Wed, 22 May 2019 23:56:52 +0200 Subject: [PATCH 4/8] fix: fix vivaldi settings --- share/domains.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/domains.csv b/share/domains.csv index 477025e..8053be1 100644 --- a/share/domains.csv +++ b/share/domains.csv @@ -187,7 +187,7 @@ usa.com,imap.mail.com,993,smtp.mail.com,587 uw.edu,imap.gmail.com,993,smtp.gmail.com,465 uymail.com,imap.mail.com,993,smtp.mail.com,587 vip.onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 -vivaldi.net,mail.vivaldi.net,993,mail.vivaldi.net,465 +vivaldi.net,imap.vivaldi.net,993,smtp.vivaldi.net,587 vp.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 vt.edu,imap.gmail.com,993,smtp.gmail.com,587 waifu.club,mail.cock.li,993,mail.cock.li,587 From e043d0fcc5a5ec2d76f3eee1a06c75599538dd13 Mon Sep 17 00:00:00 2001 From: Stefano Cereda Date: Thu, 23 May 2019 16:54:19 +0200 Subject: [PATCH 5/8] Added address for politecnico di milano university --- share/domains.csv | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/domains.csv b/share/domains.csv index 8053be1..46b9877 100644 --- a/share/domains.csv +++ b/share/domains.csv @@ -150,6 +150,8 @@ paranoici.org,mail.autistici.org,993,smtp.autistici.org,465 pm.me,127.0.0.1,1143,127.0.0.1,1025 poczta.fm,poczta.interia.pl,993,poczta.interia.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 posteo.de,posteo.de,993,posteo.de,587 posteo.net,posteo.de,993,posteo.de,587 From 09d76eb4f971333d7e96362b77ccaf928cfbc410 Mon Sep 17 00:00:00 2001 From: MorganJSmith Date: Thu, 23 May 2019 21:06:45 -0400 Subject: [PATCH 6/8] Added Carleton University student email domain to domains.csv --- share/domains.csv | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/domains.csv b/share/domains.csv index 46b9877..39f124f 100644 --- a/share/domains.csv +++ b/share/domains.csv @@ -42,6 +42,8 @@ chemist.com,imap.mail.com,993,smtp.mail.com,587 chrissx.ga,chrissx.ga,993,chrissx.ga,25 clerk.com,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 cock.email,mail.cock.li,993,mail.cock.li,587 cock.li,mail.cock.li,993,mail.cock.li,587 From 9e3f30f119c7b9702f916b8346d007ad1190f77c Mon Sep 17 00:00:00 2001 From: Eddie Jeselnik <12779786+Eddie-Jeselnik@users.noreply.github.com> Date: Fri, 24 May 2019 20:57:04 +1000 Subject: [PATCH 7/8] Add RMIT student email --- share/domains.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/share/domains.csv b/share/domains.csv index 39f124f..3bbdc66 100644 --- a/share/domains.csv +++ b/share/domains.csv @@ -172,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 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 +student.rmit.edu.au,outlook.office365.com,993,smtp.office365.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 subvertising.org,mail.autistici.org,993,smtp.autistici.org,465 From e4813ae21568132e2dd04f0d69e87c4dfd98c3c6 Mon Sep 17 00:00:00 2001 From: Kr1ss Date: Tue, 28 May 2019 01:09:25 +0200 Subject: [PATCH 8/8] restore default text color on 'Ctrl-C' exit The terminal text color wasn't reset when the user aborted the wizard while being prompted for input. This resolves https://github.com/LukeSmithxyz/mutt-wizard/issues/224 --- bin/mw | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/mw b/bin/mw index b693299..f8c4f24 100755 --- a/bin/mw +++ b/bin/mw @@ -313,6 +313,8 @@ synchronize_flags=true gpg_path=$GPG" echo "$nmbasic" > "$NOTMUCH_CONFIG" ;} +trap 'echo -e "\033[0m\n"' INT + case "$1" in ls) list ;; add) asktype && askinfo && tryconnect && finalize || delete ;;