How-To: Set Up KMail With GMail and IMAP

According to Wikipedia, IMAP (Internet Message Access Protocol), together with POP is one of the most popular protocols for email retrieval. In this short tutorial I will show you how to set up KMail (the default email client in KDE4 and also most - if not all - distributions which ship it, like Kubuntu) with a GMail account, using IMAP as a protocol.