21 Incheckningar

Upphovsman SHA1 Meddelande Datum
  Luke Smith e3225995c2
Merge branch 'strega-nil-strega-nil/prefix' 2 månader sedan
  Luke Smith f785dba804
Merge branch 'strega-nil/prefix' of github.com:strega-nil/mutt-wizard into strega-nil-strega-nil/prefix 2 månader sedan
  Luke Smith 1b98bbc3be
Merge pull request #1028 from jlucas8/error-handling 2 månader sedan
  Luke Smith 18d6f4b2f7
Merge pull request #1020 from CarlosLoboxyz/master 2 månader sedan
  Luke Smith a97000b775
Merge branch 'ananthu-sk-patch-1' 2 månader sedan
  Luke Smith 1b32e39828
Merge branch 'patch-1' of github.com:ananthu-sk/mutt-wizard into ananthu-sk-patch-1 2 månader sedan
  Luke Smith 187412a416
Merge branch 'ephemer4l-master' 2 månader sedan
  Luke Smith 0545dbb9a0
Merge branch 'master' of github.com:ephemer4l/mutt-wizard into ephemer4l-master 2 månader sedan
  Luke Smith da647d1106
Merge pull request #1018 from jacquescomeaux/muttrc-variable-rename 2 månader sedan
  Luke Smith 80725f42d7
Merge pull request #1022 from pontusk/master 2 månader sedan
  Luke Smith eadb1ceb7a
Merge pull request #1031 from CervEdin/fix-posix-head 2 månader sedan
  Luke Smith 55020ae84d
Merge pull request #1029 from derrekcoleman/patch-2 2 månader sedan
  Erik Cervin-Edin 3a36c660e1 Replace head -n-1 with POSIX-compatible sed '$d' 10 månader sedan
  Derrek 6d6638147e
chore: fix typo in README.md 10 månader sedan
  João Lucas 3dc1ee678b
handle sync errors 11 månader sedan
  Pontus Karlsson df69b30e61
fix: `head` incompatibility between GNU and macOS 1 år sedan
  Ananthu cb181a469c
Update domains.csv 1 år sedan
  Carlos Lobo d943b92fa9 Fix .conf to .yaml in goimapnotify config file 1 år sedan
  Jacques Comeaux 611d7b57fa Rename muttrc variable 1 år sedan
  Nicole Patricia Mazzuca 2565902819
Allow PREFIX to be set by user 1 år sedan
  Efe İzbudak 8444f8c1d9
fix #922 1 år sedan
7 ändrade filer med 31 tillägg och 11 borttagningar
Unifierad Vy
  1. +1
    -1
      Makefile
  2. +1
    -1
      README.md
  3. +25
    -6
      bin/mailsync
  4. +1
    -1
      bin/mw
  5. +1
    -0
      share/domains.csv
  6. +1
    -1
      share/mbsync-temp
  7. +1
    -1
      share/mutt-temp

+ 1
- 1
Makefile Visa fil

@@ -1,6 +1,6 @@
.POSIX: .POSIX:


PREFIX = /usr/local
PREFIX ?= /usr/local
MANPREFIX = $(PREFIX)/share/man MANPREFIX = $(PREFIX)/share/man


install: install:


+ 1
- 1
README.md Visa fil

@@ -4,7 +4,7 @@ https://muttwizard.com/


Get this great stuff without effort: Get this great stuff without effort:


- A full-featured and autoconfigured email client on the terminal wibuiltth neomutt
- A full-featured and autoconfigured email client on the terminal built with neomutt
- Mail stored offline enabling the ability to: - Mail stored offline enabling the ability to:
* view and write emails while you're away from * view and write emails while you're away from
the internet the internet


+ 25
- 6
bin/mailsync Visa fil

@@ -58,7 +58,7 @@ syncandnotify() {
case "$1" in case "$1" in
imap) mbsync -q "$2" ;; imap) mbsync -q "$2" ;;
pop) mpop -q "$2" ;; pop) mpop -q "$2" ;;
esac
esac || return 1
new=$(find\ new=$(find\
"$HOME/.local/share/mail/$2/"[Ii][Nn][Bb][Oo][Xx]/new/ \ "$HOME/.local/share/mail/$2/"[Ii][Nn][Bb][Oo][Xx]/new/ \
"$HOME/.local/share/mail/$2/"[Ii][Nn][Bb][Oo][Xx]/cur/ \ "$HOME/.local/share/mail/$2/"[Ii][Nn][Bb][Oo][Xx]/cur/ \
@@ -74,7 +74,7 @@ syncandnotify() {
[ -z "$MAILSYNC_MUTE" ] && [ -z "$MAILSYNC_MUTE" ] &&
for file in $new; do for file in $new; do
# Extract and decode subject and sender from mail. # Extract and decode subject and sender from mail.
subject=$(awk '/^Subject: / && ++n == 1,/^.*: / && ++i == 2' "$file" | head -n-1 |
subject=$(awk '/^Subject: / && ++n == 1,/^.*: / && ++i == 2' "$file" | sed '$d' |
perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' |
sed 's/^Subject: //' | tr -d '\n\t') sed 's/^Subject: //' | tr -d '\n\t')
from="$(sed -n "/^From:/ s|From: *|| p" "$file" | from="$(sed -n "/^From:/ s|From: *|| p" "$file" |
@@ -100,15 +100,34 @@ else
done || echo "error $arg"; done)" done || echo "error $arg"; done)"
fi fi


pids= # PIDs of backgrounded subshells
count=0 # number of accounts in $tosync
failed=0 # number of failed sync attempts
for account in $tosync; do for account in $tosync; do
count=$((count+1))
case $account in case $account in
Channel*) syncandnotify imap "${account##* }" & ;;
account*) syncandnotify pop "${account##* }" & ;;
error*) echo "ERROR: Account ${account##* } not found." ;;
Channel*)
syncandnotify imap "${account##* }" &
pids="$pids $!"
;;
account*)
syncandnotify pop "${account##* }" &
pids="$pids $!"
;;
error*)
echo "ERROR: Account ${account##* } not found."
failed=$((failed+1))
;;
esac esac
done done


wait
IFS=' '
for pid in $pids; do
wait $pid || failed=$((failed+1))
done

# Abort if no account sync succeeded
[ "$count" -gt "$failed" ] || exit 1


notmuch new --quiet notmuch new --quiet




+ 1
- 1
bin/mw Visa fil

@@ -86,7 +86,7 @@ prepmpop() {
} }


prepimapnotify() { prepimapnotify() {
mkdir -p "$imapnotify" ; envsubst < "$imapnotifytemp" >> "$imapnotify/$fulladdr.conf"
mkdir -p "$imapnotify" ; envsubst < "$imapnotifytemp" >> "$imapnotify/$fulladdr.yaml"
} }


prepmutt() { prepmutt() {


+ 1
- 0
share/domains.csv Visa fil

@@ -304,6 +304,7 @@ ukr.net,imap.ukr.net,993,smtp.ukr.net,465
umbc.edu,imap.gmail.com,993,smtp.gmail.com,587 umbc.edu,imap.gmail.com,993,smtp.gmail.com,587
uni-duesseldorf.de,mail.hhu.de,993,mail.hhu.de,465 uni-duesseldorf.de,mail.hhu.de,993,mail.hhu.de,465
uni-jena.de,imap.uni-jena.de,993,smtp.uni-jena.de,587 uni-jena.de,imap.uni-jena.de,993,smtp.uni-jena.de,587
uni-weimar.de,mailgate.uni-weimar.de,993,mailgate.uni-weimar.de,465
uni.edu.pe,imap.gmail.com,993,smtp.gmail.com,587 uni.edu.pe,imap.gmail.com,993,smtp.gmail.com,587
uni.strath.ac.uk,outlook.office365.com,993,smtp.office365.com,587 uni.strath.ac.uk,outlook.office365.com,993,smtp.office365.com,587
unilodz.eu,outlook.office365.com,993,smtp.office365.com,587 unilodz.eu,outlook.office365.com,993,smtp.office365.com,587


+ 1
- 1
share/mbsync-temp Visa fil

@@ -4,7 +4,7 @@ Port $iport
User $login User $login
PassCmd "pass $passprefix$fulladdr" PassCmd "pass $passprefix$fulladdr"
AuthMechs LOGIN AuthMechs LOGIN
SSLType $imapssl
TLSType $imapssl
CertificateFile $sslcert CertificateFile $sslcert


MaildirStore $fulladdr-local MaildirStore $fulladdr-local


+ 1
- 1
share/mutt-temp Visa fil

@@ -6,7 +6,7 @@ set sendmail = "msmtp -a $fulladdr"
alias me $realname <$fulladdr> alias me $realname <$fulladdr>
set folder = "$folder" set folder = "$folder"
set header_cache = "$cachedir/$safename/headers" set header_cache = "$cachedir/$safename/headers"
set message_cachedir = "$cachedir/$safename/bodies"
set message_cache_dir = "$cachedir/$safename/bodies"
set mbox_type = Maildir set mbox_type = Maildir
set hostname = "$hostname" set hostname = "$hostname"
source $muttshare/switch.muttrc source $muttshare/switch.muttrc


Laddar…
Avbryt
Spara