Hi again,
I added NetworkManager support to KMail. This patch will put KMail in offline/online mode, according to current NetworkManager state. As a side effect, KMail will be switched automatically to offline when you will suspend the machine, and to online after resume.
https://github.com/serghei/kde3-kdepim/commit/0577b2e0087d6350a099778300ec39...