|
@@ -224,11 +224,12 @@ getboxes() { if [ -n "${force+x}" ] ; then |
|
|
else |
|
|
else |
|
|
info="$(curl --location-trusted -s -m 5 --user "$login:$(pass "$fulladdr")" --url "${protocol:-imaps}://$imap:${iport:-993}")" |
|
|
info="$(curl --location-trusted -s -m 5 --user "$login:$(pass "$fulladdr")" --url "${protocol:-imaps}://$imap:${iport:-993}")" |
|
|
[ -z "$info" ] && echo "Log-on not successful." && return 1 |
|
|
[ -z "$info" ] && echo "Log-on not successful." && return 1 |
|
|
mailboxes="$(echo "$info" | grep -v HasChildren | sed "s/.*\" //;s/\"//g" | tr -d '
')" |
|
|
|
|
|
|
|
|
mailboxes="$(echo "$info" | grep -v HasChildren | sed "s/.*\" //;s/\"//g" | tr -d ' |
|
|
|
|
|
')" |
|
|
fi |
|
|
fi |
|
|
[ "$type" = "pop" ] && mailboxes="INBOX" |
|
|
[ "$type" = "pop" ] && mailboxes="INBOX" |
|
|
getaccounts; for x in 1 2 3 4 5 6 7 8 9; do echo "$accounts" | grep -q "^$x:" || { export idnum="$x"; break ;}; done |
|
|
getaccounts; for x in 1 2 3 4 5 6 7 8 9; do echo "$accounts" | grep -q "^$x:" || { export idnum="$x"; break ;}; done |
|
|
toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' - )" |
|
|
|
|
|
|
|
|
toappend="mailboxes \`mdir=$maildir/$fulladdr/; find \$mdir -mindepth 1 -type d -name cur | sed -e 's:/cur\$:\":' -e \"s:\$mdir:\\\"=:\" | sort | tr '\\\n' ' '\`" |
|
|
IFS=' |
|
|
IFS=' |
|
|
' |
|
|
' |
|
|
for x in $mailboxes; do |
|
|
for x in $mailboxes; do |
|
|