mailing list archives

meli community discussions

⚠️ if something does not work as intended when interracting with the mailing lists,
reach out Github mirror Gitea repo @epilys:matrix.org

E-mail headers
From: Lakshmi Kiran Pai <lakshmikiran.pai@gmail.com>
To: imap-protocol@u.washington.edu
Date: Fri, 08 Jun 2018 12:34:36 -0000
Message-ID: c67efeb50603192141y70c2e35ejdf97a8dcb96e2230@mail.gmail.com permalink / raw / eml / mbox
Client: Outlook Express 6
Implementing Server in java

Scenario: I am able to list the folders but not able to list the mails when
i select a particular mail folder say customised or Sent/Trash.. etc

Problem: Select and UID Fetch command
Question:
1.   can i have UIDVALIDITY 1 as uid next will always be unique. If not how
and when should i change UIDVALIDITY ? can i toggle with 0 or 1?
2.   in the log below;UIDNEXT is 3158 but when client issues the UID Fetch
command its 1:* WHY??
3.    PARSE ERROR: hr=2148322516. what is the cause for this error?? how can
i rectify?? Is there any syntax mistake is Response???
4.   Buffer(literal) length is same for all its {2}.  Do i need to calculate
this ??i have hard coded this.  If needs calculation how??
5.  Because of above problems I am unable to get the list of mails when i
select a particular mail folder. How can i proceed further??

Client Log is as below:

k9ri SELECT "INBOX."
IMAP: 17:09:42 [db] OnNotify: asOld = 5, asNew = 5, ae = 3
IMAP: 17:09:42 [rx] * 3 EXISTS
IMAP: 17:09:42 [rx] * 0 RECENT
IMAP: 17:09:42 [rx] * OK [UIDVALIDITY 1]UID validity status
IMAP: 17:09:42 [rx] * OK [UIDNEXT 3158] Predicted next UID.
IMAP: 17:09:42 [rx] * FLAGS (\Answered \Flagged \Deleted \Recent \Draft
\Seen).
IMAP: 17:09:42 [rx] * OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted
\Recent \Draft \Seen)] Permanent flags
IMAP: 17:09:42 [rx] * OK [UNSEEN 0].
IMAP: 17:09:42 [rx] k9ri OK [READ-WRITE] SELECT completed
IMAP: 17:09:42 [tx] wo9i IDLE
IMAP: 17:09:42 [db] OnNotify: asOld = 5, asNew = 5, ae = 3
IMAP: 17:09:42 [rx] + Waiting for DONE.
IMAP: 17:09:42 [tx] DONE
IMAP: 17:09:42 [db] OnNotify: asOld = 5, asNew = 5, ae = 3
IMAP: 17:09:42 [rx] wo9i OK IDLE completed.
IMAP: 17:09:42 [tx] qse6 UID FETCH 1:* (BODY.PEEK[HEADER.FIELDS (References
X-Ref X-Priority X-MSMail-Priority X-MSOESRec Newsgroups)] ENVELOPE
RFC822.SIZE UID FLAGS INTERNALDATE)
IMAP: 17:09:42 [db] OnNotify: asOld = 5, asNew = 5, ae = 3
IMAP: 17:09:42 [rx] * 1 FETCH (BODY[HEADER.FIELDS ("REFERENCES" "X-REF"
"X-PRIORITY" "X-MSMAIL-PRIORITY" "X-MSOESREC" "NEWSGROUPS")]{2}
IMAP: 17:09:42 [rx] Buffer (literal) of length 2
IMAP: 17:09:42 [rx]  ENVELOPE ("Wed, 1 Mar 2006 17:32:03 +0530 (GMT)"
"testmail1" ((NIL NIL "guest" "archimedes.co.in")) ((NIL NIL "guest" "
archimedes.ampersand.co.in")) ((NIL NIL "guest" "archimedes.co.in")) ((NIL
NIL "lk" "192.168.11.21")) NIL NIL NIL "<
8755816.1141214523971.JavaMail.root@pythagorus>") RFC822.SIZE 432 FLAGS ()
INTERNALDATE " 1-Mar-2006 17:32:03 +0530")
IMAP: 17:09:42 [db] PARSE ERROR: hr=2148322516
IMAP: 17:09:42 [rx] * 2 FETCH (BODY[HEADER.FIELDS ("REFERENCES" "X-REF"
"X-PRIORITY" "X-MSMAIL-PRIORITY" "X-MSOESREC" "NEWSGROUPS")]{2}
IMAP: 17:09:42 [rx] Buffer (literal) of length 2
IMAP: 17:09:42 [rx]  ENVELOPE ("Wed, 1 Mar 2006 18:16:20 +0530 (GMT)"
"testmail2" ((NIL NIL "guest" "archimedes.co.in")) ((NIL NIL "guest" "
archimedes.co.in")) ((NIL NIL "guest" "archimedes.co.in")) ((NIL NIL "lk" "
192.168.11.21")) NIL NIL NIL "<
12468716.1141217181025.JavaMail.root@pythagorus>") RFC822.SIZE 433 FLAGS ()
INTERNALDATE " 1-Mar-2006 18:16:20 +0530")
IMAP: 17:09:42 [db] PARSE ERROR: hr=2148322516
IMAP: 17:09:42 [rx] * 3 FETCH (BODY[HEADER.FIELDS ("REFERENCES" "X-REF"
"X-PRIORITY" "X-MSMAIL-PRIORITY" "X-MSOESREC" "NEWSGROUPS")]{2}
IMAP: 17:09:42 [rx] Buffer (literal) of length 2
IMAP: 17:09:42 [rx]  ENVELOPE ("Fri, 3 Mar 2006 16:51:40 +0530 (GMT)"
"testmail3" ((NIL NIL "guest" "archimedes.co.in")) ((NIL NIL "guest" "
archimedes.ampersand.co.in")) ((NIL NIL "guest" "archimedes.co.in")) ((NIL
NIL "lk" "192.168.11.21")) NIL NIL NIL "<
11733267.1141384902172.JavaMail.root@pythagorus>") RFC822.SIZE 433 FLAGS ()
INTERNALDATE " 3-Mar-2006 16:51:40 +0530")
IMAP: 17:09:42 [db] PARSE ERROR: hr=2148322516
IMAP: 17:09:42 [rx] qse6 OK UID FETCH completed.
IMAP: 17:09:42 [tx] bfzr IDLE
IMAP: 17:09:42 [db] OnNotify: asOld = 5, asNew = 5, ae = 3
IMAP: 17:09:42 [rx] + Waiting for DONE.
IMAP: 17:19:31 [tx] Dropping connection, LOGOUT sent
IMAP: 17:19:31 [db] Connection to '192.168.11.21' closed.
IMAP: 17:19:31 [db] OnNotify: asOld = 5, asNew = 0, ae = 5


Eagerly waiting for solution,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman13.u.washington.edu/pipermail/imap-protocol/attachments/20060320/519c8d16/attachment.html>
Reply
E-mail headers
From: lakshmikiran.pai@gmail.com
To: imap-protocol@localhost
Date: Fri, 08 Jun 2018 12:34:36 -0000
Message-ID: c67efeb50603192157v1d3993fu434e0096a07cc461@mail.gmail.com permalink / raw / eml / mbox
>  Client: Outlook Express 6
> Implementing Server in java
>
> Scenario: I am able to list the folders but not able to list the mails
> when i select a particular mail folder say customised or Sent/Trash.. etc
>
> Problem: Select and UID Fetch command
> Question:
> 1.   can i have UIDVALIDITY 1 as uid next will always be unique. If not
> how and when should i change UIDVALIDITY ? can i toggle with 0 or 1?
> 2.   in the log below;UIDNEXT is 3158 but when client issues the UID Fetch
> command its 1:* WHY??
> 3.    PARSE ERROR: hr=2148322516. what is the cause for this error?? how
> can i rectify?? Is there any syntax mistake is Response???
> 4.   Buffer(literal) length is same for all its {2}.  Do i need to
> calculate this ??i have hard coded this.  If needs calculation how??
> 5.  Because of above problems I am unable to get the list of mails when i
> select a particular mail folder. How can i proceed further??
>
> Client Log is as below:
>
> k9ri SELECT "INBOX."
> IMAP: 17:09:42 [db] OnNotify: asOld = 5, asNew = 5, ae = 3
> IMAP: 17:09:42 [rx] * 3 EXISTS
> IMAP: 17:09:42 [rx] * 0 RECENT
> IMAP: 17:09:42 [rx] * OK [UIDVALIDITY 1]UID validity status
> IMAP: 17:09:42 [rx] * OK [UIDNEXT 3158] Predicted next UID.
> IMAP: 17:09:42 [rx] * FLAGS (\Answered \Flagged \Deleted \Recent \Draft
> \Seen).
> IMAP: 17:09:42 [rx] * OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted
> \Recent \Draft \Seen)] Permanent flags
> IMAP: 17:09:42 [rx] * OK [UNSEEN 0].
> IMAP: 17:09:42 [rx] k9ri OK [READ-WRITE] SELECT completed
> IMAP: 17:09:42 [tx] wo9i IDLE
> IMAP: 17:09:42 [db] OnNotify: asOld = 5, asNew = 5, ae = 3
> IMAP: 17:09:42 [rx] + Waiting for DONE.
> IMAP: 17:09:42 [tx] DONE
> IMAP: 17:09:42 [db] OnNotify: asOld = 5, asNew = 5, ae = 3
> IMAP: 17:09:42 [rx] wo9i OK IDLE completed.
> IMAP: 17:09:42 [tx] qse6 UID FETCH 1:* (BODY.PEEK[HEADER.FIELDS(References X-Ref X-Priority X-MSMail-Priority X-MSOESRec Newsgroups)]
> ENVELOPE RFC822.SIZE UID FLAGS INTERNALDATE)
> IMAP: 17:09:42 [db] OnNotify: asOld = 5, asNew = 5, ae = 3
> IMAP: 17:09:42 [rx] * 1 FETCH (BODY[HEADER.FIELDS ("REFERENCES" "X-REF"
> "X-PRIORITY" "X-MSMAIL-PRIORITY" "X-MSOESREC" "NEWSGROUPS")]{2}
> IMAP: 17:09:42 [rx] Buffer (literal) of length 2
> IMAP: 17:09:42 [rx]  ENVELOPE ("Wed, 1 Mar 2006 17:32:03 +0530 (GMT)"
> "testmail1" ((NIL NIL "guest" " archimedes.co.in")) ((NIL NIL "guest" "
> archimedes.ampersand.co.in")) ((NIL NIL "guest" "archimedes.co.in "))
> ((NIL NIL "lk" "192.168.11.21")) NIL NIL NIL "<8755816.1141214523971.JavaMail.root@pythagorus
> >") RFC822.SIZE 432 FLAGS () INTERNALDATE " 1-Mar-2006 17:32:03 +0530")
> IMAP: 17:09:42 [db] PARSE ERROR: hr=2148322516
> IMAP: 17:09:42 [rx] * 2 FETCH (BODY[HEADER.FIELDS ("REFERENCES" "X-REF"
> "X-PRIORITY" "X-MSMAIL-PRIORITY" "X-MSOESREC" "NEWSGROUPS")]{2}
> IMAP: 17:09:42 [rx] Buffer (literal) of length 2
> IMAP: 17:09:42 [rx]  ENVELOPE ("Wed, 1 Mar 2006 18:16:20 +0530 (GMT)"
> "testmail2" ((NIL NIL "guest" " archimedes.co.in")) ((NIL NIL "guest" "
> archimedes.co.in")) ((NIL NIL "guest" "archimedes.co.in")) ((NIL NIL "lk"
> " 192.168.11.21")) NIL NIL NIL "<
> 12468716.1141217181025.JavaMail.root@pythagorus>") RFC822.SIZE 433 FLAGS
> () INTERNALDATE " 1-Mar-2006 18:16:20 +0530")
> IMAP: 17:09:42 [db] PARSE ERROR: hr=2148322516
> IMAP: 17:09:42 [rx] * 3 FETCH (BODY[HEADER.FIELDS ("REFERENCES" "X-REF"
> "X-PRIORITY" "X-MSMAIL-PRIORITY" "X-MSOESREC" "NEWSGROUPS")]{2}
> IMAP: 17:09:42 [rx] Buffer (literal) of length 2
> IMAP: 17:09:42 [rx]  ENVELOPE ("Fri, 3 Mar 2006 16:51:40 +0530 (GMT)"
> "testmail3" ((NIL NIL "guest" " archimedes.co.in")) ((NIL NIL "guest" "
> archimedes.ampersand.co.in")) ((NIL NIL "guest" "archimedes.co.in "))
> ((NIL NIL "lk" "192.168.11.21")) NIL NIL NIL "<11733267.1141384902172.JavaMail.root@pythagorus
> >") RFC822.SIZE 433 FLAGS () INTERNALDATE " 3-Mar-2006 16:51:40 +0530")
> IMAP: 17:09:42 [db] PARSE ERROR: hr=2148322516
> IMAP: 17:09:42 [rx] qse6 OK UID FETCH completed.
> IMAP: 17:09:42 [tx] bfzr IDLE
> IMAP: 17:09:42 [db] OnNotify: asOld = 5, asNew = 5, ae = 3
> IMAP: 17:09:42 [rx] + Waiting for DONE.
> IMAP: 17:19:31 [tx] Dropping connection, LOGOUT sent
> IMAP: 17:19:31 [db] Connection to ' 192.168.11.21' closed.
> IMAP: 17:19:31 [db] OnNotify: asOld = 5, asNew = 0, ae = 5
>
>
> Eagerly waiting for solution,
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman13.u.washington.edu/pipermail/imap-protocol/attachments/20060320/21281921/attachment.html>
Reply
E-mail headers
From: MRC@CAC.Washington.EDU
To: imap-protocol@localhost
Date: Fri, 08 Jun 2018 12:34:36 -0000
Message-ID: Pine.WNT.4.65.0603192213490.2732@Shimo-Tomobiki.panda.com permalink / raw / eml / mbox
On Mon, 20 Mar 2006, Lakshmi Kiran Pai wrote:
> 1.   can i have UIDVALIDITY 1 as uid next will always be unique.

What happens if you delete the mailbox, then later create a new mailbox 
with the same name?

Unless you guarantee that a new mailbox will ALWAYS remember the UIDLAST 
from any past mailbox with the same name, and will never use UIDs from 
such a past mailbox, then the new mailbox MUST have a higher UIDVALIDITY.

> If not how
> and when should i change UIDVALIDITY ? can i toggle with 0 or 1?

UIDVALIDITY can not be zero.

> 2.   in the log below;UIDNEXT is 3158 but when client issues the UID Fetch
> command its 1:* WHY??

Why not?  UIDNEXT doesn't tell you the UID of the last message; all we 
know is that UIDNEXT is higher than the UID of the last message.

> 3.    PARSE ERROR: hr=2148322516. what is the cause for this error?? how can
> i rectify?? Is there any syntax mistake is Response???

There is a missing space before the {2} literal designator.  Please refer 
to the Formal Syntax in RFC 3501.  There may be other syntax errors, but 
fix that one first.

Speaking as someone who hand-coded the syntax rules (because the rules 
didn't exist when I wrote the code!) I recommend that you do not 
hand-code.  Instead, you should use one of the excellent syntax generators 
that read ABNF.

> 4.   Buffer(literal) length is same for all its {2}.  Do i need to calculate
> this ??i have hard coded this.  If needs calculation how??

This does not make sense to me.  How can you be hard-coding a literal 
length, when the literal itself is variable?

> 5.  Because of above problems I am unable to get the list of mails when i
> select a particular mail folder. How can i proceed further??

Fix the bugs which have been identified to you, and try again.  Repeat 
until there are no more bugs.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
Reply