瀏覽代碼

temporary creation of mbsync for online accounts

tags/v3.1
Luke Smith 5 年之前
父節點
當前提交
a49d011bfe
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4C50B54A911F6252
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. +5
    -1
      mw

+ 5
- 1
mw 查看文件

@@ -169,9 +169,13 @@ EOF
[ ! -f "$HOME/.config/msmtp/config" ] && echo "$msmtp_header" > "$HOME/.config/msmtp/config"
echo "$msmtp_profile" >> "$HOME/.config/msmtp/config"
echo "$mutt_profile" > "$accdir/$title.muttrc"
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"
! grep "^source.*.muttrc" "$muttdir/personal.muttrc" >/dev/null && echo "source $accdir/$title.muttrc" >> "$muttdir/personal.muttrc"
[ "$accounttype" = "offline" ] && echo "$mbsync_profile" >> "$mbsyncrc" && trysync && finalize
if [ "$accounttype" = "offline" ]; then
trysync && finalize
sed -i "/IMAPAccount $title$/,/# End profile/d" "$mbsyncrc"
fi
}

getpass() { \


Loading…
取消
儲存