offline mail possible
This commit is contained in:
parent
e1c12bb659
commit
be1cd84f93
10
mw
10
mw
@ -93,8 +93,8 @@ mutt_profile="# vim: filetype=neomuttrc
|
|||||||
set realname = \"$realname\"
|
set realname = \"$realname\"
|
||||||
set from = \"$fulladdr\"
|
set from = \"$fulladdr\"
|
||||||
set sendmail = \"/usr/bin/msmtp -a $title\"
|
set sendmail = \"/usr/bin/msmtp -a $title\"
|
||||||
set folder = \"imaps://$imap:$iport\"
|
set folder = \"imaps://$fulladdr@$imap:$iport\"
|
||||||
set imap_user = $login
|
set imap_user = \"$login\"
|
||||||
set header_cache = $accdir/$title/cache/headers
|
set header_cache = $accdir/$title/cache/headers
|
||||||
set message_cachedir = $accdir/$title/cache/bodies
|
set message_cachedir = $accdir/$title/cache/bodies
|
||||||
set certificate_file = $accdir/$title/certificates
|
set certificate_file = $accdir/$title/certificates
|
||||||
@ -172,10 +172,8 @@ EOF
|
|||||||
echo "$mbsync_profile" >> "$mbsyncrc"
|
echo "$mbsync_profile" >> "$mbsyncrc"
|
||||||
echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source $accdir/$title.muttrc<enter><change-folder>!<enter>;<check-stats>'" >> "$muttdir/personal.muttrc"
|
echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source $accdir/$title.muttrc<enter><change-folder>!<enter>;<check-stats>'" >> "$muttdir/personal.muttrc"
|
||||||
! grep "^source.*.muttrc" "$muttdir/personal.muttrc" >/dev/null && echo "source $accdir/$title.muttrc" >> "$muttdir/personal.muttrc"
|
! grep "^source.*.muttrc" "$muttdir/personal.muttrc" >/dev/null && echo "source $accdir/$title.muttrc" >> "$muttdir/personal.muttrc"
|
||||||
if [ "$accounttype" = "offline" ]; then
|
trysync && finalize
|
||||||
trysync && finalize
|
[ "$accounttype" = "offline" ] && sed -i "/IMAPAccount $title$/,/# End profile/d" "$mbsyncrc"
|
||||||
sed -i "/IMAPAccount $title$/,/# End profile/d" "$mbsyncrc"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getpass() { \
|
getpass() { \
|
||||||
|
Loading…
Reference in New Issue
Block a user