Browse Source

Fix IMAP checking with gmail account

Colin Powell 5 years ago
parent
commit
cd73a3653a
2 changed files with 22 additions and 7 deletions
  1. 19 4
      mail/.mbsyncrc
  2. 3 3
      systemd/.config/systemd/user/checkmail.timer

+ 19 - 4
mail/.mbsyncrc

@@ -145,16 +145,31 @@ IMAPStore 15five-remote
 Account 15five
 
 MaildirStore 15five-local
+SubFolders Legacy
 Path ~/Mail/colin.powell@15five.com
 Inbox ~/Mail/colin.powell@15five.com/Inbox
 
-Channel 15five-folders
+Channel 15five-default
 Master :15five-remote:
 Slave :15five-local:
-Patterns "\[Google Mail\]/All Mail" "\[Google Mail\]/Drafts" "\[Google Mail\]/Sent Mail"
+Patterns * ![Gmail]* 
 Create Both
-Expunge Both
 SyncState *
+Sync All
+
+Channel 15five-sent
+Master :15five-remote:"[Gmail]/Sent Mail"
+Slave :15five-local:sent
+Create Slave
+Sync Pull
+
+Channel 15five-trash
+Master :15five-remote:"[Gmail]/Trash"
+Slave :15five-local:trash
+Create Slave
+Sync Pull
 
 Group 15five
-Channel 15five-folders
+Channel 15five-default
+Channel 15five-sent
+Channel 15five-trash

+ 3 - 3
systemd/.config/systemd/user/checkmail.timer

@@ -5,9 +5,9 @@ RefuseManualStop=no
 
 [Timer]
 Persistent=false
-OnBootSec=5min
-OnUnitActiveSec=5min
-Unite=checkmail.service
+OnBootSec=3min
+OnUnitActiveSec=3min
+Unit=checkmail.service
 
 [Install]
 WantedBy=default.target