On Sun, Aug 06, 2006 at 18:26:53 -0700, Chris Frost wrote:

[...]

> Regarding the ~/mail/{INBOX,foo,bar}/ Maildir layout in your other email,
> more flexible Maildir layout support is added as a todo. I'll look into this
> in the next few days; I imagine mbsync's approach will be a good way to go.
> 
> For the immediate time, you noted that "mkdir ~/Maildir" and
> "for x cur new tmp; do ln -s ~/mail/INBOX/$x/ ~/Maildir/$x/; done"
> made mswatch work for INBOX but that "ln -s ~/mail/foo ~/Maildir/.foo" does
> not work for foo. The reason foo does not work is that watch_maildirs
> expects ~/Maildir/.foo to be a directory. You can work around this limitation
> by doing the same for foo and other mailboxes as you did for INBOX,
> make ~/Maildir/foo/ a directory and ~/Maildir/foo/{cur,new,tmp} symlinks.

This doesn't work either. mswatch never tries to sync anything else
than INBOX.

I attached my .mbsyncrc and .mswatchrc. Is this sufficent?

> Given that mbsync's configuration file has an entry to name the INBOX,
> it sounds like Maildir layouts such as this may be common.
> So I'll definitely look into making watch_maildirs's Maildir layout
> support more flexible.

That's ok for now, directories and symlinks are cheap. :-)

Regards,
Tino
# minimum time after first queued mailbox change to synchronization (default: 
10s)
base_delay 3

# minimum time between two syncs or failed attempts (default: 60s)
#inter_delay 60

# maximum waiting time between failed attempts (default: 600s)
#max_delay 600

# program (and arguments) to run to sync the mail stores (required)
sync mbsync eazy

# prefix this string to sync's mailboxes; useful as mbsync channel (optional)
# the first string ("mydomain") is always prefixed
# the second string (":") is prefixed only when syncing a particular mailbox
mailbox_prefix eazy :

# a store to watch, call it "local" (required)
store local
{
        # program (and args) that will monitor this store for changes (required)
        watch watch_maildirs
}

# the other store to watch, call it "mydomain" (required)
store eazy
{
        # program (and args) that will monitor this store for changes 
(required).
        #
        # Uses ssh private/public keys to login without password prompting.
        # Uses ssh BatchMode so that 'mswatch' promptly detects disconnects.
        # Uses 'inputkill' to run 'watch_maildirs' so that 'watch_maildirs'
        # promptly exits if the connection dies.
        watch ssh ... ~/bin/inputkill ~/bin/watch_maildirs
}
Expunge Both
Create Both

MaildirStore eazylocal
Path ~/eazymail/
Inbox ~/eazymail/INBOX

IMAPStore eazyimap
RequireSSL no
UseSSLv2 no
UseSSLv3 no
UseTLSv1 no
Tunnel "ssh ..."

Channel eazy
Master :eazyimap:
Slave :eazylocal:eazyimap
Expunge Both
Sync Full
Patterns *

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to