commit 1b4eecd7507aa81ea31f936032e94dddd2e3a468
parent aeebc064c47420075f73227743a73d2a3cdf2ba0
Author: Chris Bracken <chris@bracken.jp>
Date: Sun, 15 Aug 2021 20:00:53 -0700
mbsync: Set CopyArrivalDate yes
This prevents mbsync from setting the email date to the last update date
if you move the message from one IMAP folder to another. I'm not sure if
this is a gmail bug or an mbsync 'feature', but either way, setting
`CopyArrivalDate yes` on each channel apparently fixes the issue.
From the manual:
> Selects whether their arrival time should be propagated together with
> the messages. Enabling this makes sense in order to keep the time
> stamp based message sorting intact. Note that IMAP does not guarantee
> that the time stamp (termed internal date) is actually the arrival
> time, but it is usually close enough. (Default: no)
References:
* https://isync.sourceforge.io/mbsync.html
* https://vxlabs.com/2021/03/21/mbsync-copyarrivaldate-yes/
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/.mbsyncrc b/.mbsyncrc
@@ -45,6 +45,7 @@ Slave :bracken_jp-local:
Patterns "INBOX"
Create Slave
Expunge Both
+CopyArrivalDate yes
SyncState *
Channel bracken_jp-drafts
@@ -52,6 +53,7 @@ Master :bracken_jp-remote:"[Gmail]/Drafts"
Slave :bracken_jp-local:"drafts"
Create Slave
Expunge Both
+CopyArrivalDate yes
SyncState *
Channel bracken_jp-sent
@@ -59,6 +61,7 @@ Master :bracken_jp-remote:"[Gmail]/Sent Mail"
Slave :bracken_jp-local:"sent"
Create Slave
Expunge Both
+CopyArrivalDate yes
SyncState *
Channel bracken_jp-starred
@@ -66,6 +69,7 @@ Master :bracken_jp-remote:"[Gmail]/Starred"
Slave :bracken_jp-local:"flagged"
Create Slave
Expunge Both
+CopyArrivalDate yes
SyncState *
Channel bracken_jp-trash
@@ -73,6 +77,7 @@ Master :bracken_jp-remote:"[Gmail]/Bin"
Slave :bracken_jp-local:"trash"
Create Slave
Expunge Both
+CopyArrivalDate yes
SyncState *
Channel bracken_jp-archive
@@ -80,6 +85,7 @@ Master :bracken_jp-remote:"[Gmail]/All Mail"
Slave :bracken_jp-local:"archive"
Create Slave
Expunge Both
+CopyArrivalDate yes
SyncState *
Group bracken_jp