gburd / isync

isync/mbsync - a mailbox synchronization program
GNU General Public License v2.0
20 stars 0 forks source link

keeping messages locally only #5

Open 88-percent opened 7 months ago

88-percent commented 7 months ago

I'd like to keep messages locally only, something similar to POP3. My goal here is to use less storage space on my server as well as to reduce my attack surface a bit (I'm aware this will be utterly ineffective against any kind of determined adversary).

I think I've got this working but before transitioning to this setup as my daily driver I wanted to confirm I haven't missed something that could result in catastrophic consequences. I haven't seen anyone else with a similar setup, despite seeing requests for some kind of POP3 functionality from those more knowledgeable than I am, so I wouldn't be surprised if I've done something here I shouldn't have.

The following setup seems to be working. As far as I can tell, the only difference from POP3 seems to be that instead of deleting messages from the server upon poll, mbsync only deletes the messages off of the server after I manually archive each message. This works great for me as I practice Merlin Mann's Inbox Zero methodology.

Can anyone see any kind of fatal flaw in this setup?

  IMAPAccount TEST1
  Host REDACTED
  Port 993
  User REDACTED@REDACTED
  PassCmd "pass pass/test1-email_passwords"
  SSLType IMAPS
  CertificateFile /etc/ssl/certs/ca-certificates.crt

  IMAPStore TEST1-remote
  Account TEST1

  MaildirStore TEST1-local
  Path ~/.mail/TEST1/
  Inbox ~/.mail/TEST1/INBOX
  Trash ~/.mail/TEST1/Trash
  Subfolders Verbatim

  Channel TEST1
  Far :TEST1-remote:
  Near :TEST1-local:
  Patterns INBOX
  Expunge Far
  CopyArrivalDate yes
  Sync All
  Create Both
  SyncState *