<<< Date Index >>>     <<< Thread Index >>>

IMAP problems



Hello together (especially Brendan),
I don't understand the following behaviour. And I have not a clue what
is going wrong. So hopefully someone will enlighten me. I am using
mutt CVS HEAD with an lotus notes IMAP Server. 

I compiled it with the following options:
        export CFLAGS="-g"
        export CC=gcc-2.95
        aclocal -I m4 && autoheader2.50 && (cd m4 && make -f Makefile.am.in ) 
&& automake && autoconf2.50
        ./configure --enable-hcache --enable-imap --with-slang --with-ssl 
--enable-debug

on debian-testing

muttrc:
        set imap_pass=password
        set folder=imaps://username@servername/
        set spoolfile=+INBOX
        mailboxes ! +dprepair

when I start mutt using

./mutt -nF ~/.muttrc-hans -d100

mutt retrieves the headers of the 17 mails in the inbox, stats the
dprepair mailbox. And tries to fetch

> a0006 FETCH 17:2234 (...)
              ~~ -> Note that 16 is the last eMail of the INBOX.

17 - 2234, but forgets about 'SELECTING' 'dprepair'. I don't have the
slightest clue what is going on.

my precise questions are:

        - Obviously mutt tries to stat dprepair for new messages, I
          think and forgets to SELECT the mailbox before statting. But
          why retrieves it ALL the std headers. And why does it have a
          partial or complete state of the INBOX (like msgbegin seems to
          be 17?)

I appended the anonymized log.

Honestly,
        Thomas
Mutt 1.5.6i started at Thu Nov 25 13:24:16 2004
.
Debugging at level 100.

Reading configuration file '/home/cip/adm/sithglan/.muttrc-hans'.
Using default IMAP port 143
Using default IMAPS port 993
X509_STORE_load_locations_failed
X509_verify_cert: self signed certificate (18)
imap_cmd_step: grew buffer to 512 bytes
< * OK Domino IMAP4 Server Release 6.53HF53 ready Thu, 25 Nov 2004 05:24:16 
-0700
> a0000 CAPABILITY
< * CAPABILITY IMAP4rev1 AUTH=PLAIN LITERAL+ NAMESPACE QUOTA UIDPLUS
Handling CAPABILITY
< a0000 OK CAPABILITY completed
imap_authenticate: Using any available method.
> a0001 LOGIN "lutz" "gielen"
< a0001 OK LOGIN completed
Communication encrypted at 128 bits
> a0002 LIST "" ""
< * LIST (\Noselect) "\\" ""
< a0002 OK LIST completed
Delimiter: \
> a0003 SELECT "INBOX"
< * 16 EXISTS
Handling EXISTS
cmd_handle_untagged: New mail in INBOX - 16 messages total.
< * 0 RECENT
< * OK [UIDVALIDITY 5] UIDs valid
< * OK [UIDNEXT 4651] Predicted next UID
< * FLAGS (\Flagged \Seen \Answered \Deleted \Draft)
Getting mailbox FLAGS
< * OK [PERMANENTFLAGS (\Flagged \Seen \Answered \Deleted \Draft \*)] Permanent 
flags
Getting mailbox PERMANENTFLAGS
< a0003 OK [READ-WRITE] SELECT completed
Mailbox flags: [\Flagged] [\Seen] [\Answered] [\Deleted] [\Draft] [\*] 
message.c:81: mutt_mktemp returns "/tmp/mutt-faui01-31401-16215-0".
> a0004 FETCH 1:16 (UID FLAGS INTERNALDATE RFC822.SIZE BODY.PEEK[HEADER.FIELDS 
> (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE 
> CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)])
< * 1 FETCH (UID 4608 INTERNALDATE "22-Nov-2004 20:44:38 +0000" RFC822.SIZE 
1306 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{264}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 264 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>


<  FLAGS (\Seen))
parse_parameters: `charset=US-ASCII'
parse_parameter: `charset' = `US-ASCII'
< * 2 FETCH (UID 4609 INTERNALDATE "22-Nov-2004 20:44:38 +0000" RFC822.SIZE 
1108 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{239}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 239 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>



<  FLAGS (\Seen))
parse_parameters: `charset=US-ASCII'
parse_parameter: `charset' = `US-ASCII'
< * 4 FETCH (UID 4611 INTERNALDATE "22-Nov-2004 20:44:38 +0000" RFC822.SIZE 
1820 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{278}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 278 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>

<  FLAGS (\Seen))
imap_read_headers: msgcount and sequence ID are inconsistent!parse_parameters: 
`charset=US-ASCII'
parse_parameter: `charset' = `US-ASCII'
< * 3 FETCH (UID 4610 INTERNALDATE "22-Nov-2004 20:44:38 +0000" RFC822.SIZE 
10061 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{308}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 308 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>


<  FLAGS (\Seen))
imap_read_headers: msgcount and sequence ID are inconsistent!< * 5 FETCH (UID 
4612 INTERNALDATE "22-Nov-2004 20:44:38 +0000" RFC822.SIZE 4265 
BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE 
CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] {302}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 302 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>


<  FLAGS (\Seen))
parse_parameters: `charset=ISO-8859-1'
parse_parameter: `charset' = `ISO-8859-1'
< * 6 FETCH (UID 4613 INTERNALDATE "22-Nov-2004 20:44:38 +0000" RFC822.SIZE 
1292 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{262}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 262 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>


<  FLAGS (\Seen))
parse_parameters: `charset=ISO-8859-1'
parse_parameter: `charset' = `ISO-8859-1'
< * 7 FETCH (UID 4614 INTERNALDATE "22-Nov-2004 20:44:38 +0000" RFC822.SIZE 
2877 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{416}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 416 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>


<  FLAGS (\Seen))
parse_parameters: `charset=US-ASCII; format=flowed'
parse_parameter: `charset' = `US-ASCII'
parse_parameter: `format' = `flowed'
< * 9 FETCH (UID 4616 INTERNALDATE "22-Nov-2004 20:44:38 +0000" RFC822.SIZE 
2472 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{481}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 481 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>


<  FLAGS (\Seen))
imap_read_headers: msgcount and sequence ID are inconsistent!parse_parameters: 
`charset=US-ASCII; format=flowed'
parse_parameter: `charset' = `US-ASCII'
parse_parameter: `format' = `flowed'
< * 8 FETCH (UID 4615 INTERNALDATE "22-Nov-2004 20:44:38 +0000" RFC822.SIZE 
4543 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{496}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 496 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>


<  FLAGS (\Seen))
imap_read_headers: msgcount and sequence ID are inconsistent!parse_parameters: 
`charset=US-ASCII; format=flowed'
parse_parameter: `charset' = `US-ASCII'
parse_parameter: `format' = `flowed'
< * 10 FETCH (UID 4641 INTERNALDATE "23-Nov-2004 23:02:06 +0000" RFC822.SIZE 
4773 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{356}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 356 bytes
In-Reply-To: <20041123213549.GB19057@xxxxxxxxxx>
To: Hans Fugal <hfugal@xxxxxxxxxx>
Subject: Re: New user Brian Kwant.
Message-ID: 
<OF04B4B469.9A4A93FB-ON87256F55.007E76BC-87256F55.007E8684@xxxxxxxxxx>
Date: Tue, 23 Nov 2004 16:02:05 -0700
From: bkwant@xxxxxxxxxx
Content-Type: multipart/alternative; boundary="=_alternative 007E868387256F55_="


<  FLAGS (\Seen \Answered))
parse_parameters: `boundary="=_alternative 007E868387256F55_="'
parse_parameter: `boundary' = `=_alternative 007E868387256F55_='
< * 12 FETCH (UID 4644 INTERNALDATE "24-Nov-2004 06:31:49 +0000" RFC822.SIZE 
4267 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{207}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 207 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>


<  FLAGS (\Seen))
imap_read_headers: msgcount and sequence ID are inconsistent!< * 11 FETCH (UID 
4642 INTERNALDATE "23-Nov-2004 23:13:00 +0000" RFC822.SIZE 2885 
BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE 
CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] {474}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 474 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>


<  FLAGS (\Seen))
imap_read_headers: msgcount and sequence ID are inconsistent!parse_parameters: 
`charset=us-ascii'
parse_parameter: `charset' = `us-ascii'
< * 14 FETCH (UID 4646 INTERNALDATE "24-Nov-2004 15:28:41 +0000" RFC822.SIZE 
4182 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{547}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 547 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>


<  FLAGS (\Seen))
imap_read_headers: msgcount and sequence ID are inconsistent!parse_parameters: 
`charset=us-ascii'
parse_parameter: `charset' = `us-ascii'
< * 16 FETCH (UID 4650 INTERNALDATE "25-Nov-2004 00:07:05 +0000" RFC822.SIZE 
3155 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{292}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 292 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>


<  FLAGS (\Seen))
imap_read_headers: msgcount and sequence ID are inconsistent!parse_parameters: 
`micalg=pgp-sha1; protocol="application/pgp-signature"; 
boundary="2oS5YaxWCcQjTEyO"'
parse_parameter: `micalg' = `pgp-sha1'
parse_parameter: `protocol' = `application/pgp-signature'
parse_parameter: `boundary' = `2oS5YaxWCcQjTEyO'
< * 13 FETCH (UID 4645 INTERNALDATE "24-Nov-2004 15:14:54 +0000" RFC822.SIZE 
2048 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{259}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 259 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>

<  FLAGS (\Seen \Answered))
imap_read_headers: msgcount and sequence ID are inconsistent!parse_parameters: 
`charset=US-ASCII'
parse_parameter: `charset' = `US-ASCII'
< * 15 FETCH (UID 4647 INTERNALDATE "24-Nov-2004 16:21:37 +0000" RFC822.SIZE 
1031 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] 
{234}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 234 bytes
<SOME ANONYMIZED MESSAGE HEADERS HERE>


<  FLAGS (\Seen \Answered))
imap_read_headers: msgcount and sequence ID are inconsistent!parse_parameters: 
`charset=US-ASCII'
parse_parameter: `charset' = `US-ASCII'
< a0004 OK FETCH completed
imap_open_mailbox: msgcount is 16
> a0005 STATUS "dprepair" (RECENT)
< * 2234 EXISTS
Handling EXISTS
cmd_handle_untagged: New mail in INBOX - 2234 messages total.
< * 0 RECENT
< * STATUS dprepair (RECENT 0)
< a0005 OK STATUS completed
imap_cmd_finish: Fetching new mail
message.c:81: mutt_mktemp returns "/tmp/mutt-faui01-31401-16215-1".
> a0006 FETCH 17:2234 (UID FLAGS INTERNALDATE RFC822.SIZE 
> BODY.PEEK[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES 
> CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST 
> X-LABEL)])
< a0006 NO FETCH Entry not found in index
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mail_addr_is_user: no, all failed.
mutt_index_menu[581]: Got op 142
> a0007 CLOSE
< a0007 NO CLOSE Entry not found in index
imap_exec: command failed: a0007 NO CLOSE Entry not found in index
CLOSE failed
> a0008 LOGOUT
< * BYE logging out
Handling BYE
< a0008 OK LOGOUT completed