> Any comments?

This is an issue I ran into in the v2 code last night.  You have this:

  mboxFile = destination.substring("mbox://".length(),
destination.lastIndexOf("/"));

That doesn't work with mbox:///home/noel/test-mbox, which the code stripped
to /home/noel.  Avalon may append user/ when making inbox repositories, but
that doesn't happen elsewhere.

Try this:

  if (destination.charAt(destination.length() - 1) == '/') {
    mboxFile = destination.substring("mbox://".length(),
destination.lastIndexOf("/"));
  } else {
    mboxFile = destination.substring("mbox://".length());
  }

instead (that's off-hand; I'm about to test it here).  I haven't tried the
rest of the code, but will.

        --- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to