Selaa lähdekoodia

Merge 96c4e85746 into 7129fa0597

pull/942/merge
Kingsley Yung 3 kuukautta sitten
committed by GitHub
vanhempi
commit
e592e0de8b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 muutettua tiedostoa jossa 13 lisäystä ja 2 poistoa
  1. +9
    -2
      bin/mw
  2. +4
    -0
      mw.1

+ 9
- 2
bin/mw Näytä tiedosto

@@ -208,7 +208,9 @@ getboxes() {
if [ -n "${force+x}" ]; then
mailboxes="$(printf "INBOX\\nDrafts\\nJunk\\nTrash\\nSent\\nArchive")"
else
info="$(curl --location-trusted -s -m 5 --user "$login:$(pass "$passprefix$fulladdr")" --url "${protocol:-imaps}://$imap:${iport:-993}")"
[ -n "$sslcert" ] \
&& info="$(curl --location-trusted -s -m 5 --user "$login:$(pass "$passprefix$fulladdr")" --url "${protocol:-imaps}://$imap:${iport:-993}")" \
|| info="$(curl -k --location-trusted -s -m 5 --user "$login:$(pass "$passprefix$fulladdr")" --url "${protocol:-imaps}://$imap:${iport:-993}")"
[ -z "$info" ] && errorexit
mailboxes="$(echo "$info" | grep -v HasChildren | sed "s/.*\" //;s/\"//g" | tr -d '\r')"
fi
@@ -288,6 +290,7 @@ Options allowed with -a:
-X Delete an account's local email too when deleting.
-o Configure address, but keep mail online.
-f Assume typical English mailboxes without attempting log-on.
-c Path to self-signed TLS certificate.

NOTE: Once at least one account is added, you can run
\`mbsync -a\` to begin downloading mail.
@@ -320,7 +323,7 @@ reorder() {
' "$tempfile" >>"$muttrc"
}

while getopts "rfpXlhodTYD:y:i:I:s:S:u:a:n:P:x:m:t:" o; do case "${o}" in
while getopts "rfpXlhodTYD:y:i:I:s:S:u:a:n:P:x:m:t:c:" o; do case "${o}" in
l) setact list ;;
r) setact reorder ;;
d) setact delete ;;
@@ -387,6 +390,10 @@ while getopts "rfpXlhodTYD:y:i:I:s:S:u:a:n:P:x:m:t:" o; do case "${o}" in
setact add
password="$OPTARG"
;;
c)
setact add
sslcert="$OPTARG"
;;
X)
setact delete
purge=True


+ 4
- 0
mw.1 Näytä tiedosto

@@ -70,8 +70,12 @@ SMTP server port (assumed to be 465 if not specified)
.TP
.B -x
Account password. You will be prompted for the password interactively if this option is not given.
.TP
.B -P
Pass Prefix. The password will be stored using pass at <passprefix><email>
.TP
.B -c path
Path to self-signed TLS certificate
.SH OTHER OPTIONS
.TP
.B -f


Ladataan…
Peruuta
Tallenna