Problem polling Inbox

28 views
Skip to first unread message

Robert Turner

unread,
Oct 26, 2009, 8:44:53 PM10/26/09
to larch
I am using the latest dev copy of larch on an ubuntu jaunty server.

If I use the config.yaml file, I get the following output

[Oct 26 20:38:52] [info] r...@xx.com@mail.xx.com: connecting...
[Oct 26 20:38:53] [info] r...@xx.com@mail.xx.com: connected on port 143
[Oct 26 20:38:53] [info] r...@xx.com@mail.xx.com: authenticated using
PLAIN
[Oct 26 20:38:55] [fatal] mailbox not found: INBOX
[Oct 26 20:38:55] [info] 0 message(s) copied, 0 failed, 0 untouched
out of 0 total

--

If I put the options on a command line string, i get different output:

robert@library:~/.gem/ruby/1.8/bin$ ./larch -f imaps://mail.xx.com -F
"Inbox/" -p sparr0w -u r...@xx.com -t imaps://imap.gmail.com -T "Inbox"
-P sparr0w -U rw...@yy.org
[Oct 26 20:36:17] [info] r...@xx.com@mail.xx.com: connecting...
[Oct 26 20:36:17] [info] r...@xx.com@mail.xx.com: connected on port 993
using SSL
[Oct 26 20:36:18] [info] r...@xx.com@mail.xx.com: authenticated using
PLAIN
[Oct 26 20:36:20] [info] rw...@yy.org@imap.gmail.com: connecting...
[Oct 26 20:36:21] [info] rw...@yy.org@imap.gmail.com: connected on port
993 using SSL
[Oct 26 20:36:21] [info] rw...@yy.org@imap.gmail.com: authenticated
using PLAIN
[Oct 26 20:36:26] [info] copying messages from mail.xx.com/Drafts to
imap.gmail.com/Drafts
[Oct 26 20:36:27] [info] copying messages from mail.xx.com/Sent Items
to imap.gmail.com/Sent Items
[Oct 26 20:36:28] [info] r...@xx.com@mail.xx.com: Sent Items: fetching
message headers 1 through 1...
[Oct 26 20:36:29] [info] copying messages from mail.xx.com/Deleted
Items to imap.gmail.com/Deleted Items
[Oct 26 20:36:30] [info] r...@xx.com@mail.xx.com: Deleted Items:
fetching message headers 1 through 3...
[Oct 26 20:36:31] [info] 0 message(s) copied, 0 failed, 4 untouched
out of 4 total

--

In the first case, it complains about Inbox not found. In the second
place, it skips the Inbox altogether; even when I've verified that
messages exist on the source server in the Inbox.

Clues? Am I missing something?

Thanks for the help. This looks like a very nice tool. I need to be
able to sync messages frequently from a hosted IMAP account into a
Google Apps account approx. eveyr 5 min.

Cheers,
//rwt

Ryan Grove

unread,
Oct 26, 2009, 9:17:42 PM10/26/09
to la...@googlegroups.com
On Mon, Oct 26, 2009 at 5:44 PM, Robert Turner <robert...@gmail.com> wrote:
>
> I am using the latest dev copy of larch on an ubuntu jaunty server.
>

*snip*

> In the first case, it complains about Inbox not found. In the second
> place, it skips the Inbox altogether; even when I've verified that
> messages exist on the source server in the Inbox.
>
> Clues? Am I missing something?

I think the dev version has some bugs right now in how command line
options and config options are parsed. The config code is very new,
and the CLI code was heavily modified to work with the config
functionality, so there are still some glitches to iron out. I'm
traveling at the moment, but I'll try to look into this soon.

- Ryan

Robert Turner

unread,
Oct 27, 2009, 12:16:40 PM10/27/09
to larch
On Oct 26, 9:17 pm, Ryan Grove <r...@wonko.com> wrote:
> I think the dev version has some bugs right now in how command line
> options and config options are parsed. The config code is very new,
> and the CLI code was heavily modified to work with the config
> functionality, so there are still some glitches to iron out. I'm
> traveling at the moment, but I'll try to look into this soon.

Thanks Ryan.

My plan is to setup a crontab on a private server behind my home
router. I don't mind putting the command line options in a script. If
I install the production version can I use the command line syntax I
posted successfully?

-Robert

Robert Turner

unread,
Oct 27, 2009, 1:20:07 PM10/27/09
to larch
I found success with what I think is the prod version (I'm new to
Ruby, how can I tell for sure which version I'm using?)

Here's my command line string:

robert@library:~/.gem/ruby/1.8/bin$ ./larch -f imap://mail.source.com
--from-user rw...@source.com --from-pass password -t imaps://imap.gmail.com
--to-pass password --to-user rw...@mydomain.org --from-folder Inbox

Here's the strange part ... My destination server is Gmail.

a) Without specifying folders, I got the same behavior as my original
report

b) When I specified [--from-folder Inbox --to-folder Inbox] at the end
of the command string I got:
@imap.gmail.com: Net::IMAP::NoResponseError: Duplicate folder name
Inbox (Failure) (will retry)

c) When I specified [--from-folder Inbox] it seems to work.

[info] copying messages from mail.source.com/Inbox to imap.gmail.com/
INBOX
...
[info] 1 message(s) copied, 0 failed, 0 untouched out of 1 total

--

Does this have anything to do with how one should specify Inbox on a
Gmail server?

//rwt

Ryan Grove

unread,
Oct 27, 2009, 7:13:01 PM10/27/09
to la...@googlegroups.com
On Tue, Oct 27, 2009 at 10:20 AM, Robert Turner <robert...@gmail.com> wrote:
> I found success with what I think is the prod version (I'm new to
> Ruby, how can I tell for sure which version I'm using?)

`larch -v` will tell you what version of Larch you're using. 1.0.2 is
the latest official release. However, if you're going to be running
Larch frequently to poll for changes, 1.0.2 probably won't work well
since it has to do a full mailbox scan each time it runs. The dev
version only needs to scan for changes since the last scan, so it'll
be much faster.

> Here's my command line string:
>
> robert@library:~/.gem/ruby/1.8/bin$ ./larch -f imap://mail.source.com
> --from-user rw...@source.com --from-pass password -t imaps://imap.gmail.com
> --to-pass password --to-user rw...@mydomain.org --from-folder Inbox
>
> Here's the strange part ... My destination server is Gmail.
>
> a) Without specifying folders, I got the same behavior as my original
> report
>
> b) When I specified [--from-folder Inbox --to-folder Inbox] at the end
> of the command string I got:
> @imap.gmail.com: Net::IMAP::NoResponseError: Duplicate folder name
> Inbox (Failure) (will retry)
>
> c) When I specified [--from-folder Inbox] it seems to work.

Okay, it sounds like the root of your problems may be a case
sensitivity bug in Larch. Try using INBOX as the folder name instead
of Inbox.

I'll file an issue for this on GitHub and fix it soon. Thanks for reporting it!

- Ryan

Reply all
Reply to author
Forward
0 new messages