9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] IMAP clients and plan9 imap server
Date: Fri, 10 Oct 2003 20:53:54 -0400	[thread overview]
Message-ID: <02533719979dc214deeeeb88a5c0bb12@plan9.bell-labs.com> (raw)
In-Reply-To: <86brsuyaqo.fsf@gic.mteege.de>

[-- Attachment #1: Type: text/plain, Size: 410 bytes --]

I gave up trying to fix mutt.  I'ld have to change the structure of its parsing to make
it parse correctly, too much work.  From the comments, they know its screwed up.

I was wrong about what it was misparsing.  The problem was that we returned flags in
a seperate fetch reply.  Fine by the RFC but not fine with mutt.  I just changed
our behaviour because it was a lot easier to do.

Fixes on sources.

[-- Attachment #2: Type: message/rfc822, Size: 7413 bytes --]

From: Matthias Teege <matthias-9fans@mteege.de>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] IMAP clients and plan9 imap server
Date: Mon, 06 Oct 2003 11:30:07 +0200
Message-ID: <86brsuyaqo.fsf@gic.mteege.de>

David Presotto <presotto@closedmind.org> writes:

> without.  If you don't manage to debug the problem, I'll bring up opera M2
> in a few days and give it a try.

I've made a snapshot of the opera/imap conversation. Opera has
problems to fetch the message.

* OK coco IMAP4rev1 server ready
3 CAPABILITY
* CAPABILITY IMAP4REV1 IDLE NAMESPACE AUTH=CRAM-MD5
3 OK CAPABILITY
4 AUTHENTICATE CRAM-MD5
+ PGI5N2Q5MDRlMTVjNWZhYmIuOWYzZjUzNTliYzU5ZGM3M0Bjb2NvPg==
bXRnIDBmMmQzNWI3NTBmM2Q2YzBmYjA1OWYzZGQwYTM1ZGZk
4 OK AUTHENTICATE
5 STATUS INBOX (MESSAGES UIDNEXT RECENT)
* STATUS (MESSAGES 1 RECENT 0 UIDNEXT 85)
5 OK STATUS completed
6 SELECT INBOX
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft)
* 1 exists
* 0 recent
* OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Draft \Deleted)]
* OK [UIDNEXT 85]
* OK [UIDVALIDITY 1065365553]
6 OK [READ-WRITE] SELECT INBOX completed
7 FETCH 1:* (UID FLAGS)
* 1 FETCH (uid 48)
* 1 fetch (flags (\Seen))
7 OK FETCH completed
8 UID FETCH 0 (UID FLAGS RFC822.SIZE RFC822.HEADER)
8 BAD UID bad syntax

Mutt fetches the header of the messages but has problems with the
format. I get a listing of the folders in mutt and kmail but both
cant display the messages.

* OK coco IMAP4rev1 server ready
a0000 CAPABILITY
* CAPABILITY IMAP4REV1 IDLE NAMESPACE AUTH=CRAM-MD5
a0000 OK CAPABILITY
a0001 AUTHENTICATE CRAM-MD5
+ PDlkNWFiNzY5NDBmNWNmOTkuYmExYTdiZTY1Y2MyMjc5QGNvY28+
bXRnIGQzNGNkNTY0YjM4NDI3YTUxMmM3MWI3NDQ4ZmVjZjYz
a0001 OK AUTHENTICATE
a0002 LIST "" ""
* LIST (\Noselect) "/" ""
a0002 OK LIST
a0003 SELECT "INBOX/"
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft)
* 1 exists
* 0 recent
* OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Draft \Deleted)]
* OK [UIDNEXT 85]
* OK [UIDVALIDITY 1065365553]
a0003 OK [READ-WRITE] SELECT INBOX completed
a0004 FETCH 1:1 (UID FLAGS INTERNALDATE RFC822.SIZE BODY.PEEK[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE IN-REPLY-TO REPLY-TO LINES X-LABEL)])
* 1 FETCH (uid 48 internaldate " 5-Oct-2003 16:50:44 +0000" RFC822.SIZE 2518 body[HEADER.FIELDS ("DATE" "FROM" "SUBJECT" "TO" "CC" "MESSAGE-ID" "REFERENCES" "CONTENT-TYPE" "IN-REPLY-TO" "REPLY-TO" "LINES" "X-LABEL")] {356}
Message-ID: <f7bd72734d345af047cb4ccf4e3403ed@plan9.bell-labs.com>
From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] IMAP clients and plan9 imap server
In-Reply-To: <868ynzd5zr.fsf@gic.mteege.de>
Content-Type: text/plain; charset="US-ASCII"
Reply-To: 9fans@cse.psu.edu
Date: Sun, 5 Oct 2003 12:14:58 -0400

)
* 1 fetch (flags (\Seen))
a0004 OK FETCH completed
a0005 NAMESPACE
* namespace (("" "/")) nil nil
a0005 OK NAMESPACE completed
a0006 LIST "" "%"
* LIST (\Noinferiors) "/" INBOX
* LIST (\Noinferiors) "/" presotto
* LIST (\Noinferiors) "/" steve.simon
* LIST (\Noinferiors) "/" cross
* LIST (\Noinferiors) "/" jmk
* LIST (\Noinferiors \Marked) "/" rsc
* LIST (\Noinferiors) "/" matthias
* LIST (\Noinferiors) "/" fst
* LIST (\Noinferiors) "/" somefile
* LIST (\Noinferiors) "/" arisawa
* LIST (\Noinferiors) "/" stored
* LIST (\Noinferiors) "/" Trash
* LIST (\Noinferiors \Marked) "/" mirtchov
* LIST (\Noinferiors \Marked) "/" vdharani
a0006 OK LIST completed
a0007 SELECT "arisawa"
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft)
* 2 exists
* 0 recent
* OK [UNSEEN 1]
* OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Draft \Deleted)]
* OK [UIDNEXT 3]
* OK [UIDVALIDITY 1065290476]
a0007 OK [READ-WRITE] SELECT arisawa completed
a0008 FETCH 1:2 (UID FLAGS INTERNALDATE RFC822.SIZE BODY.PEEK[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE IN-REPLY-TO REPLY-TO LINES X-LABEL)])
* 1 FETCH (uid 1 internaldate "30-Sep-2003 03:07:13 +0000" RFC822.SIZE 2574 body[HEADER.FIELDS ("DATE" "FROM" "SUBJECT" "TO" "CC" "MESSAGE-ID" "REFERENCES" "CONTENT-TYPE" "IN-REPLY-TO" "REPLY-TO" "LINES" "X-LABEL")] {367}
Subject: Re: [9fans] cpdir
Content-Type: text/plain; charset=US-ASCII; format=flowed
From: Kenji Arisawa <arisawa@ar.aichi-u.ac.jp>
To: 9fans@cse.psu.edu
In-Reply-To: <B7AFB2F0-F285-11D7-B085-000393A941BC@ar.aichi-u.ac.jp>
Message-Id: <B252C002-F2BD-11D7-9345-000393A941BC@ar.aichi-u.ac.jp>
Reply-To: 9fans@cse.psu.edu
Date: Tue, 30 Sep 2003 05:44:18 +0900

)
* 2 FETCH (uid 2 internaldate " 3-Oct-2003 11:40:34 +0000" RFC822.SIZE 2572 body[HEADER.FIELDS ("DATE" "FROM" "SUBJECT" "TO" "CC" "MESSAGE-ID" "REFERENCES" "CONTENT-TYPE" "IN-REPLY-TO" "REPLY-TO" "LINES" "X-LABEL")] {357}
Content-Type: text/plain; charset=US-ASCII; format=flowed
From: Kenji Arisawa <arisawa@ar.aichi-u.ac.jp>
To: 9fans@cse.psu.edu
In-Reply-To: <cbf531fd25e93c6fb4d6330150b71608@sdgm.net>
Message-Id: <115AB500-F596-11D7-BEBE-000393A941BC@ar.aichi-u.ac.jp>
Subject: [9fans] Pegasus 2.0b
Reply-To: 9fans@cse.psu.edu
Date: Fri, 3 Oct 2003 20:38:11 +0900

)
* 1 fetch (flags ())
* 2 fetch (flags ())
a0008 OK FETCH completed
a0009 LOGOUT
* bye
a0009 OK LOGOUT completed

Read the imap rfc will take some time. ;-)

Matthias

  parent reply	other threads:[~2003-10-11  0:53 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-05 12:37 Matthias Teege
2003-10-05 13:04 ` boyd
2003-10-05 13:40   ` Matthias Teege
2003-10-05 13:52     ` boyd
2003-10-05 13:06 ` boyd
2003-10-05 13:37   ` Matthias Teege
2003-10-05 13:49     ` boyd
2003-10-05 15:21     ` matt
2003-10-05 15:59       ` Matthias Teege
2003-10-05 16:03         ` David Presotto
2003-10-05 17:56           ` Dan Cross
2003-10-05 19:54             ` Christopher Nielsen
2003-10-05 21:51             ` Charles Forsyth
2003-10-05 16:54     ` Dan Cross
2003-10-05 17:04       ` matt
2003-10-05 17:47       ` Matthias Teege
2003-10-06  9:58       ` boyd
2003-10-05 15:14 ` David Presotto
2003-10-05 16:06   ` Matthias Teege
2003-10-05 16:14     ` David Presotto
2003-10-05 16:55       ` matt
2003-10-06  9:11       ` boyd
2003-10-05 16:23     ` Eric Grosse
2003-10-05 17:50       ` Matthias Teege
2003-10-05 16:29     ` Jim Choate
2003-10-06  9:30   ` Matthias Teege
2003-10-06 12:25     ` David Presotto
2003-10-10 18:30     ` David Presotto
2003-10-10 20:58     ` David Presotto
2003-10-11  5:09       ` Matthias Teege
2003-10-11  0:53     ` David Presotto [this message]
2003-10-05 13:16 Tiit Lankots
2003-10-05 13:43 ` Matthias Teege
2003-10-05 16:29 andrey mirtchovski
2003-10-10 17:12 David Presotto
     [not found] <9cee3c08f48b79252e3e53aa59d488c0@plan9.bell-labs.com>
2003-10-11  5:03 ` Matthias Teege

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=02533719979dc214deeeeb88a5c0bb12@plan9.bell-labs.com \
    --to=presotto@closedmind.org \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).