bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AUTH= !*, what to do...


From: Sam Roberts
Subject: AUTH= !*, what to do...
Date: Fri, 3 Aug 2001 00:48:50 -0400
User-agent: Mutt/1.3.16i

Currently if auth is not known, we just move into the authorized state.
This leads to bad commands being issued, they aren't valid yet:

==
$ ./sieve -vvvf "imap://;address@hidden/archive.info-cyrus" 
examples/ex-save-all.sv
imap_open (cyrus.andrew.cmu.edu:143)
* OK mail1.andrew.cmu.edu Cyrus IMAP4 v2.0.16-045 server ready
g0 SELECT archive.info-cyrus
NO/Bad Tagged: BAD Please login first

mbox has 0 messages...
g1 SELECT archive.info-cyrus
NO/Bad Tagged: BAD Please login first

mailbox_expunge failed: Invalid argument
==

I made it return ENOTSUP, so at least things fail gracefully.

==
$ ./sieve -vvvf "imap://;address@hidden/archive.info-cyrus" 
examples/ex-save-all.sv
imap_open (cyrus.andrew.cmu.edu:143)
* OK mail1.andrew.cmu.edu Cyrus IMAP4 v2.0.16-045 server ready
mailbox open <imap://;address@hidden/archive.info-cyrus> failed: Not supported
==


However, I think:

- we should initialize the authority when we create the mailbox and
  parse the url, that way we can fail early
- I want to support AUTH=ANONYMOUS, so I need an anonymous authentication
  object, I'll look at this over the weekend.

I mentions this in case anybody has some ideas about how to do this
that they haven't had the time to code, now would be the time to
mention it!

Sam

p.s. I committed some stuff, in case I'm still invisible!

-- 
Sam Roberts <address@hidden> (Vivez sans temps mort!)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]