Menu

#12 [Gmail]/Foo mailboxes broken in 1.1.0

1.1.x
invalid
nobody
None
unknown
5
2015-11-08
2013-12-28
Ripper
No

This is my config file:

MaildirStore local
    Path "/home/kparal/tmp/user@gmail.com/"
    Inbox "/home/kparal/tmp/user@gmail.com/Inbox"

IMAPStore gmail
    RequireSSL yes
    Host imaps:imap.gmail.com
    CertificateFile /etc/ssl/certs/ca-bundle.crt
    User user@gmail.com
    Pass PASS

Channel gmail
    Master :gmail:
    Slave :local:
    Sync Pull
    Create Slave
    Expunge Slave
    SyncState *
    Pattern *

This used to work with isync 1.0.6:

$ mbsync -c "$MBSYNCRC" "gmail:[Gmail]/Koncepty"
Reading configuration file /home/kparal/tmp/user@gmail.com/mbsyncrc
Resolving imap.gmail.com... ok
Connecting to 173.194.70.108:993... ok
Connection is now encrypted
Logging in...
Channel gmail
Selecting slave [Gmail]/Koncepty... 1 messages, 0 recent
Selecting master [Gmail]/Koncepty... 1 messages, 0 recent
Synchronizing
Expunging slave

And this is now broken with isync 1.1.0:

$ mbsync -c "$MBSYNCRC" "gmail:[Gmail]/Koncepty"
Reading configuration file /home/kparal/tmp/user@gmail.com/mbsyncrc
Channel gmail
Opening master gmail...
Resolving imap.gmail.com... ok
Connecting to imap.gmail.com (74.125.136.108:993)... 
Opening slave local...
Connection is now encrypted
Logging in...
Selecting master [Gmail]/Koncepty...
Selecting slave [Gmail]/Koncepty...
Maildir error: '/home/kparal/tmp/user@gmail.com/[Gmail]/' is no valid mailbox

My directory structure:

$ find '[Gmail]'
[Gmail]
[Gmail]/Koncepty
[Gmail]/Koncepty/.mbsyncstate
[Gmail]/Koncepty/cur
[Gmail]/Koncepty/cur/1388233992.4481_1.titan,U=1:2,S
[Gmail]/Koncepty/new
[Gmail]/Koncepty/tmp
[Gmail]/Koncepty/.uidvalidity

Discussion

  • Oswald Buddenhagen

    • Fixed In: 1.2.0 --> unknown
     
  • Oswald Buddenhagen

    what you are seeing is a side effect of proper support for subfolders (the use of slashes in mailbox names was previously entirely unspecified).

    you should be able to get the previous behavior by defining a separate IMAPStore with the [Gmail]/ prefix in Path.
    but you may want to use the Flatten option instead.

    you may find [feature-requests:#5] interesting as well ... prospectively.

     

    Related

    Feature Requests: #5


    Last edit: Oswald Buddenhagen 2014-01-02
  • Oswald Buddenhagen

    • status: open --> invalid
     
  • Ripper

    Ripper - 2014-01-05

    I added Flatten to my local store and it seems to work well. Thanks.

     
  • Raam Dev

    Raam Dev - 2014-10-29

    I'm experiencing this same issue trying to setup mbsync for the first time with my Gmail account. Basically I can't get it to sync my Inbox; it just keeps telling me:

    Maildir error: '/Users/raam/Maildir/' is no valid mailbox

    @Ripper You said that you added Flatten to your local store and it works, but what did you define as the delim for Flatten? Could you share your working config?

     
  • Raam Dev

    Raam Dev - 2014-10-29

    I got it working by setting up separate channels for INBOX and my other [Gmail]/Folders as described here: https://sourceforge.net/p/isync/mailman/message/31638141/

     
  • Oswald Buddenhagen

    • Affected: 1.2.0-pre --> 1.1.x
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.