Had XML existed back when IMAP was invented I think it would have been a very different protocol...

Yes, why invent your own insane pseudo-Lisp when there's a ready-made insane pseudo-Lisp you could use instead?

Actually I agree, XML would be a much saner pseudo-Lisp to have used.

Peter