move sync to synchron

This commit is contained in:
stupidcomputer 2024-10-21 16:57:10 -05:00
parent a1f763ab67
commit bf7565e916
2 changed files with 28 additions and 2 deletions

View File

@ -0,0 +1,21 @@
IMAPStore main-remote
Host mail.beepboop.systems
Port 993
User ryan@beepboop.systems
PassCmd "rbw get mail.beepboop.systems"
SSLType IMAPS
# termux is weird
CertificateFile /data/data/com.termux/files/usr/etc/tls
MaildirStore main-local
Path ~/Mail/main/
Inbox ~/Mail/main/INBOX
Subfolders Verbatim
Channel main
Far :main-remote:
Near :main-local:
Create Both
Expunge Both
Patterns *
SyncState *

View File

@ -1,5 +1,10 @@
if [ "$(hostname)" = "localhost" ]; then
mbsync --config=$HOME/.config/isync/phone-config
else
is_school && echo "enable the vpn"
mbsync --config=$HOME/.config/isync/config main
fi
vdirsyncer sync
rbw sync