maxmessages option
This commit is contained in:
parent
b49e7eb757
commit
c2247a2188
3
bin/mw
3
bin/mw
@ -58,6 +58,7 @@ Slave :$title-local:
|
|||||||
Patterns * !\"[Gmail]/All Mail\"
|
Patterns * !\"[Gmail]/All Mail\"
|
||||||
Create Both
|
Create Both
|
||||||
SyncState *
|
SyncState *
|
||||||
|
MaxMessages $maxmes
|
||||||
# End profile
|
# End profile
|
||||||
"
|
"
|
||||||
|
|
||||||
@ -155,6 +156,8 @@ EOF
|
|||||||
read -r login
|
read -r login
|
||||||
printf "\033[0m"
|
printf "\033[0m"
|
||||||
[ -z "$login" ] && login="$fulladdr"
|
[ -z "$login" ] && login="$fulladdr"
|
||||||
|
[ "$accounttype" = "offline" ] && printf "If you want to limit the number of messages kept offline to a number, enter that number below. If you do not want to limit your mail and would like \`mbsync\` to sync all mail, press enter without typing a number.\\n\t" && read -r maxmes
|
||||||
|
echo "$maxmes" | grep "[1-9]" >/dev/null || maxmes="0"
|
||||||
getpass
|
getpass
|
||||||
getprofiles
|
getprofiles
|
||||||
mkdir -p "$muttdir" "$accdir" "$cachedir/$title/bodies" "$HOME/.config/msmtp"
|
mkdir -p "$muttdir" "$accdir" "$cachedir/$title/bodies" "$HOME/.config/msmtp"
|
||||||
|
Loading…
Reference in New Issue
Block a user