Ticket #81 (closed Bugs: fixed)

Opened 4 years ago

Last modified 3 years ago

Retrieve folder tree fails on escaped delmiter and specified-length encoding

Reported by: gpiyush Owned by: octo
Priority: minor Milestone: 1.0.x
Component: LogicMail Version: 0.4
Keywords: Cc:
Blocked By: Blocking:

Description

Hi,

I just downloaded logicmail on my Blackberry pearl running BB v4.2.1.107

I am trying to setup my account using IMAP on Lotus Domino mail server. Authentication goes through but I get "Unknown error" during retrieving folder tree.

Here is what I gathered using telnet

+++++++++++++++++++

  • OK Domino IMAP4 Server Release 7.0 ready Sun, 13 Apr 2008 22:23:17 -0700

A1 CAPABILITY

  • CAPABILITY IMAP4rev1 AUTH=PLAIN LITERAL+ NAMESPACE QUOTA UIDPLUS

A1 OK CAPABILITY completed A2 LOGIN "xxxxxx xxxxxx" xxxxxx A2 OK LOGIN completed A3 LIST "" "*"

  • LIST (\HasChildren) "
    " 2007
  • LIST (\HasNoChildren) "
    " {12}

2007\Q3-2007

  • LIST (\HasNoChildren) "
    " {12}

2007\Q4-2007

  • LIST (\HasChildren) "
    " 2008
  • LIST (\HasNoChildren) "
    " {7}

2008\01

  • LIST (\HasNoChildren) "
    " {7}

2008\02

  • LIST (\HasNoChildren) "
    " {7}

2008\03

  • LIST (\HasNoChildren) "
    " Bulletins
  • LIST (\HasNoChildren) "
    " CountryWide
  • LIST (\HasNoChildren) "
    " Drafts
  • LIST (\HasNoChildren) "
    " IBM
  • LIST (\Noinferiors \HasNoChildren) "
    " Inbox
  • LIST (\HasNoChildren) "
    " Jan2008
  • LIST (\HasChildren) "
    " Client1
  • LIST (\HasNoChildren) "
    " {15}

Client1\CreditCard

  • LIST (\HasNoChildren) "
    " {7}

Client1\CT

  • LIST (\HasNoChildren) "
    " {8}

Client1\GTI

  • LIST (\HasNoChildren) "
    " {11}

Client1\Retail

  • LIST (\HasNoChildren) "
    " {10}

Client1\T&-SS

  • LIST (\HasNoChildren) "
    " Client2
  • LIST (\HasNoChildren) "
    " Personal
  • LIST (\HasNoChildren) "
    " "Sent Items"
  • LIST (\HasNoChildren) "
    " Client3
  • LIST (\Noinferiors \HasNoChildren) "
    " Trash

A3 OK LIST completed A4 LOGOUT

++++++++++++++++++++++++++ Any help/insight would be appreciated.

Change History

comment:1 Changed 4 years ago by gpiyush

  • OK Domino IMAP4 Server Release 7.0 ready Sun, 13 Apr 2008 22:37:40 -0700

A1 CAPABILITY

  • CAPABILITY IMAP4rev1 AUTH=PLAIN LITERAL+ NAMESPACE QUOTA UIDPLUS

A1 OK CAPABILITY completed
A2 LOGIN "USer Name" PASSWORD
A2 OK LOGIN completed
A3 LIST "" "*"

  • LIST (\HasChildren) "
    " 2007
  • LIST (\HasNoChildren) "
    " {12}

2007\Q3-2007

  • LIST (\HasNoChildren) "
    " {12}

2007\Q4-2007

  • LIST (\HasChildren) "
    " 2008
  • LIST (\HasNoChildren) "
    " {7}

2008\01

  • LIST (\HasNoChildren) "
    " {7}

2008\02

  • LIST (\HasNoChildren) "
    " {7}

2008\03

  • LIST (\HasNoChildren) "
    " Bulletins
  • LIST (\HasNoChildren) "
    " Client1
  • LIST (\HasNoChildren) "
    " Drafts
  • LIST (\HasNoChildren) "
    " Client2
  • LIST (\Noinferiors \HasNoChildren) "
    " Inbox
  • LIST (\HasNoChildren) "
    " Jan2008
  • LIST (\HasChildren) "
    " Client2
  • LIST (\HasNoChildren) "
    " {15}

Client2\CreditCard

  • LIST (\HasNoChildren) "
    " {7}

Client2\CT

  • LIST (\HasNoChildren) "
    " {8}

Client2\GTI

  • LIST (\HasNoChildren) "
    " {11}

Client2\Retail

  • LIST (\HasNoChildren) "
    " {10}

Client2\T&-SS

  • LIST (\HasNoChildren) "
    " McKesson
  • LIST (\HasNoChildren) "
    " Personal
  • LIST (\HasNoChildren) "
    " "Sent Items"
  • LIST (\HasNoChildren) "
    " TableTop
  • LIST (\Noinferiors \HasNoChildren) "
    " Trash

A3 OK LIST completed
A4 LOGOUT

  • BYE logging out

A4 OK LOGOUT completed

comment:2 Changed 4 years ago by gpiyush

Debugging info from phone...

Is this a setup problem?

a net.rim.tunnel - TNde - 4/14 01:16:46

a net.rim.tunnel - Clos-wap.voicestream.com - 4/14 01:16:46

E LogicMail - java.lang.NullPointerException - 4/14 01:16:45

a net.rim.tunnel - STac - 4/14 01:16:38

a net.rim.tunnel - Pdp0-wap.voicestream.com - 4/14 01:16:38

a net.rim.tunnel - STac - 4/14 01:16:38

a net.rim.hrtRT - PUpI - 4/14 01:16:38

a net.rim.tunnel - Pdp0-wap.voicestream.com - 4/14 01:16:38

a net.rim.hrtRT - EPdp 0x1 - 4/14 01:16:38

a net.rim.tunnel - TNac - 4/14 01:16:29

a net.rim.tunnel - Kick-wap.voicestream.com - 4/14 01:16:28

a net.rim.tunnel - Open-wap.voicestream.com - 4/14 01:16:28

a System - CMM: LogicMail-1(3286) no sig from 0x33 - 4/14 01:16:28

comment:3 Changed 4 years ago by octo

Since I'm concerned that Trac (or something else) may be mucking up the text along the way, I'd appreciate it if you could send me this text in a normal e-mail (octo@…). Also, if you want to capture what LogicMail is actually receiving, the debugging page has some info on how to do that. There are some IMAP commands that LogicMail runs before doing a LIST for folders (such as NAMESPACE, and maybe another form of a LIST) that are also relevant.

What makes this especially unusual is that the mail server seems to be sending a "
" for the delimiter, when the mailboxes are actually only delimited with a "\".

Ultimately, I'd love to have a test account on this server where I can personally reproduce the issue. However, I understand if that isn't possible.

comment:4 Changed 4 years ago by octo

  • Status changed from new to accepted
  • Owner set to octo
  • Milestone set to 1.0.x

I now have enough information to work this issue. Thanks!

comment:5 Changed 4 years ago by octo

  • Summary changed from Retrieve folder tree fails to Retrieve folder tree fails on escaped delmiter and specified-length encoding

Further analysis of the output has show this to be two separate cases the current LIST logic in LogicMail fails to account for.

  • Escaped characters in the delimiter (i.e. "
    " -> "\")
  • Specified-length encoding in folder paths (i.e. "{7}\r\nFoo\Bar", where "\r\n" is a line feed, and {7} is the number of characters in the path)

comment:6 Changed 3 years ago by octo

  • Status changed from accepted to closed
  • Resolution set to fixed

Fixed in 1.0.2

Note: See TracTickets for help on using tickets.