21 Commitit

Tekijä SHA1 Viesti Päivämäärä
  Luke Smith e3225995c2
Merge branch 'strega-nil-strega-nil/prefix' 2 kuukautta sitten
  Luke Smith f785dba804
Merge branch 'strega-nil/prefix' of github.com:strega-nil/mutt-wizard into strega-nil-strega-nil/prefix 2 kuukautta sitten
  Luke Smith 1b98bbc3be
Merge pull request #1028 from jlucas8/error-handling 2 kuukautta sitten
  Luke Smith 18d6f4b2f7
Merge pull request #1020 from CarlosLoboxyz/master 2 kuukautta sitten
  Luke Smith a97000b775
Merge branch 'ananthu-sk-patch-1' 2 kuukautta sitten
  Luke Smith 1b32e39828
Merge branch 'patch-1' of github.com:ananthu-sk/mutt-wizard into ananthu-sk-patch-1 2 kuukautta sitten
  Luke Smith 187412a416
Merge branch 'ephemer4l-master' 2 kuukautta sitten
  Luke Smith 0545dbb9a0
Merge branch 'master' of github.com:ephemer4l/mutt-wizard into ephemer4l-master 2 kuukautta sitten
  Luke Smith da647d1106
Merge pull request #1018 from jacquescomeaux/muttrc-variable-rename 2 kuukautta sitten
  Luke Smith 80725f42d7
Merge pull request #1022 from pontusk/master 2 kuukautta sitten
  Luke Smith eadb1ceb7a
Merge pull request #1031 from CervEdin/fix-posix-head 2 kuukautta sitten
  Luke Smith 55020ae84d
Merge pull request #1029 from derrekcoleman/patch-2 2 kuukautta sitten
  Erik Cervin-Edin 3a36c660e1 Replace head -n-1 with POSIX-compatible sed '$d' 10 kuukautta sitten
  Derrek 6d6638147e
chore: fix typo in README.md 10 kuukautta sitten
  João Lucas 3dc1ee678b
handle sync errors 11 kuukautta sitten
  Pontus Karlsson df69b30e61
fix: `head` incompatibility between GNU and macOS 1 vuosi sitten
  Ananthu cb181a469c
Update domains.csv 1 vuosi sitten
  Carlos Lobo d943b92fa9 Fix .conf to .yaml in goimapnotify config file 1 vuosi sitten
  Jacques Comeaux 611d7b57fa Rename muttrc variable 1 vuosi sitten
  Nicole Patricia Mazzuca 2565902819
Allow PREFIX to be set by user 1 vuosi sitten
  Efe İzbudak 8444f8c1d9
fix #922 1 vuosi sitten
7 muutettua tiedostoa jossa 31 lisäystä ja 11 poistoa
  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 Näytä tiedosto

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

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

install:


+ 1
- 1
README.md Näytä tiedosto

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

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:
* view and write emails while you're away from
the internet


+ 25
- 6
bin/mailsync Näytä tiedosto

@@ -58,7 +58,7 @@ syncandnotify() {
case "$1" in
imap) mbsync -q "$2" ;;
pop) mpop -q "$2" ;;
esac
esac || return 1
new=$(find\
"$HOME/.local/share/mail/$2/"[Ii][Nn][Bb][Oo][Xx]/new/ \
"$HOME/.local/share/mail/$2/"[Ii][Nn][Bb][Oo][Xx]/cur/ \
@@ -74,7 +74,7 @@ syncandnotify() {
[ -z "$MAILSYNC_MUTE" ] &&
for file in $new; do
# 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", $_)' |
sed 's/^Subject: //' | tr -d '\n\t')
from="$(sed -n "/^From:/ s|From: *|| p" "$file" |
@@ -100,15 +100,34 @@ else
done || echo "error $arg"; done)"
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
count=$((count+1))
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
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



+ 1
- 1
bin/mw Näytä tiedosto

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

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

prepmutt() {


+ 1
- 0
share/domains.csv Näytä tiedosto

@@ -304,6 +304,7 @@ ukr.net,imap.ukr.net,993,smtp.ukr.net,465
umbc.edu,imap.gmail.com,993,smtp.gmail.com,587
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-weimar.de,mailgate.uni-weimar.de,993,mailgate.uni-weimar.de,465
uni.edu.pe,imap.gmail.com,993,smtp.gmail.com,587
uni.strath.ac.uk,outlook.office365.com,993,smtp.office365.com,587
unilodz.eu,outlook.office365.com,993,smtp.office365.com,587


+ 1
- 1
share/mbsync-temp Näytä tiedosto

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

MaildirStore $fulladdr-local


+ 1
- 1
share/mutt-temp Näytä tiedosto

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


Ladataan…
Peruuta
Tallenna