rem: void commitData(QSessionManager& sm) { kernel->notClosedByUser(); KApplication::commitData( sm ); }
add: void KMailApplication::commitData(QSessionManager& sm) { kernel->dumpDeadLetters(); kernel->setShuttingDown( true ); KApplication::commitData( sm ); }
context:   void commitData(QSessionManager& sm) {    kernel->notClosedByUser();    KApplication::commitData( sm );  }