dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

mbsyncrc (2399B)


      1 # mbsync config
      2 
      3 # NOTES:
      4 # * Use PipelineDepth to throttle so we don't go over GMail's query quota.
      5 #   See: https://sourceforge.net/p/isync/mailman/message/35458365/
      6 #
      7 # * If account is configured with Japanese as primary, use the following:
      8 #
      9 # 下書き         '[Gmail]/&Tgtm+DBN-'            '[Gmail]/Drafts'
     10 # 送信済みメール '[Gmail]/&kAFP4W4IMH8w4TD8MOs-' '[Gmail]/Sent Mail'
     11 # スター付き     '[Gmail]/&MLkwvzD8TtgwTQ-'      '[Gmail]/Starred'
     12 # ゴミ箱         '[Gmail]/&MLQw33ux-'            '[Gmail]/Bin'
     13 # すべてのメール '[Gmail]/&MFkweTBmMG4w4TD8MOs-' '[Gmail]/All Mail'
     14 # 迷惑メール     '[Gmail]/&j,dg0TDhMPww6w-'      '[Gmail]/Spam'
     15 # 重要           '[Gmail]/&kc2JgQ-'              '[Gmail]/Important'
     16 
     17 ######################################################################
     18 # chris.bracken@gmail.com
     19 
     20 IMAPAccount gmail
     21 Host imap.gmail.com
     22 Port 993
     23 User chris.bracken@gmail.com
     24 PassCmd "pass show Email/mbsync-gmail.com"
     25 AuthMechs LOGIN
     26 SSLType IMAPS
     27 PipelineDepth 50
     28 CertificateFile ~/.local/share/certs/ca-certificates.crt
     29 
     30 # Create gmail remote
     31 IMAPStore gmail-remote
     32 Account gmail
     33 
     34 # Create gmail local
     35 MaildirStore gmail-local
     36 Path ~/Mail/chris.bracken-gmail.com/
     37 Inbox ~/Mail/chris.bracken-gmail.com/INBOX
     38 Flatten "."
     39 
     40 Channel gmail-default
     41 Far :gmail-remote:
     42 Near :gmail-local:
     43 Patterns "INBOX"
     44 Create Near
     45 Expunge Both
     46 CopyArrivalDate yes
     47 SyncState *
     48 
     49 Channel gmail-drafts
     50 Far :gmail-remote:"[Gmail]/Drafts"
     51 Near :gmail-local:"drafts"
     52 Create Near
     53 Expunge Both
     54 CopyArrivalDate yes
     55 SyncState *
     56 
     57 Channel gmail-sent
     58 Far :gmail-remote:"[Gmail]/Sent Mail"
     59 Near :gmail-local:"sent"
     60 Create Near
     61 Expunge Both
     62 CopyArrivalDate yes
     63 SyncState *
     64 
     65 Channel gmail-starred
     66 Far :gmail-remote:"[Gmail]/Starred"
     67 Near :gmail-local:"flagged"
     68 Create Near
     69 Expunge Both
     70 CopyArrivalDate yes
     71 SyncState *
     72 
     73 Channel gmail-trash
     74 Far :gmail-remote:"[Gmail]/Bin"
     75 Near :gmail-local:"trash"
     76 Create Near
     77 Expunge Both
     78 CopyArrivalDate yes
     79 SyncState *
     80 
     81 Channel gmail-archive
     82 Far :gmail-remote:"[Gmail]/All Mail"
     83 Near :gmail-local:"archive"
     84 Create Near
     85 Expunge Both
     86 CopyArrivalDate yes
     87 SyncState *
     88 
     89 Channel gmail-baynet
     90 Far :gmail-remote:"BayNet"
     91 Near :gmail-local:"baynet"
     92 Create Near
     93 Expunge Both
     94 CopyArrivalDate yes
     95 SyncState *
     96 
     97 Group gmail
     98 Channel gmail-default
     99 Channel gmail-drafts
    100 Channel gmail-sent
    101 Channel gmail-starred
    102 Channel gmail-trash
    103 Channel gmail-archive
    104 Channel gmail-baynet