The Sup mail client[1] went through a phase trying to handle IMAP directly, but the consensus was that it was simply too awful. It did yield some colorful code[2], but the fallout was that most people relied on offlineimap[3] to get their mail successfully.