From 3d7546974adfa89a1526ac507622a0f8689b6fbf Mon Sep 17 00:00:00 2001 From: Ethan Rietz Date: Tue, 15 Dec 2020 21:45:53 -0500 Subject: [PATCH 1/2] Fix mailboxes on macos The Mac version of paste requires "-" to read from STDIN. Without "-", the "mailboxes" line in ~/.config/accounts/.muttrc is empty upon adding a new mailbox via `mw -a `. The Linux version of paste works fine if "-" is added. --- bin/mw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mw b/bin/mw index d179368..a19d1e4 100755 --- a/bin/mw +++ b/bin/mw @@ -237,7 +237,7 @@ Archive" && return 0 finalize() { echo "$mailboxes" | xargs -I {} mkdir -p "$maildir/$fulladdr/{}/cur" "$maildir/$fulladdr/{}/tmp" "$maildir/$fulladdr/{}/new" sed -ibu "/$MARKER/d" "$accdir/$idnum-$fulladdr.muttrc" ; rm -f "$accdir/$idnum-$fulladdr.muttrcbu" - toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' )" + toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' - )" for x in $mailboxes; do case "$x" in *[Ss][Ee][Nn][Tt]*) setBox record "$x"; formatShortcut s sent "$x" ;; From 04ab5439bbf362a5eefd6937d9b1890f9e8648c0 Mon Sep 17 00:00:00 2001 From: MineralwaterXu Date: Thu, 17 Dec 2020 13:26:00 +0800 Subject: [PATCH 2/2] Add shu.edu.cn email --- share/domains.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/share/domains.csv b/share/domains.csv index 9dace1d..64dcf80 100644 --- a/share/domains.csv +++ b/share/domains.csv @@ -219,6 +219,7 @@ runbox.com,mail.runbox.com,993,mail.runbox.com,587 rwth-aachen.de,mail.rwth-aachen.de,993,mail.rwth-aachen.de,587 sapo.pt,imap.sapo.pt,993,smtp.sapo.pt,587 seznam.cz,imap.seznam.cz,993,smtp.seznam.cz,465 +shu.edu.cn,imap.shu.edu.cn,143,smtp.shu.edu.cn,25 smail.inf.h-brs.de,imap.inf.h-brs.de,993,smtp.inf.h-brs.de,587 sms.ed.ac.uk,pod51015.outlook.com,993,pod51015.outlook.com,587 southwales.ac.uk,imap.gmail.com,993,smtp.gmail.com,587