[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 101847] kmail crash when sending via smtp with a password from
From: Till Adam <adam () kde ! org>
Date: 2005-07-29 12:26:56
Message-ID: 20050729122656.21149.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=101847
adam kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From adam kde org 2005-07-29 14:26 -------
SVN commit 439964 by tilladam:
Crash guards, inspired by a patch by Gustavo Pichorim Boiko. Thanks,
dude.
BUG: 101847
M +10 -5 kmsender.cpp
--- branches/KDE/3.4/kdepim/kmail/kmsender.cpp #439963:439964
@ -519,8 +519,10 @
.arg(mCurrentMsg->subject()));
if (!mSendProc->send(mCurrentMsg))
{
- mCurrentMsg->setTransferInProgress( false );
- mOutboxFolder->unGetMsg( mFailedMessages );
+ if ( mCurrentMsg )
+ mCurrentMsg->setTransferInProgress( false );
+ if ( mOutboxFolder )
+ mOutboxFolder->unGetMsg( mFailedMessages );
mCurrentMsg = 0;
cleanup();
setStatusMsg(i18n("Failed to send (some) queued messages."));
@ -596,7 +598,8 @
// sending of message aborted
if ( mCurrentMsg ) {
mCurrentMsg->setTransferInProgress( false );
- mOutboxFolder->unGetMsg( mFailedMessages );
+ if ( mOutboxFolder )
+ mOutboxFolder->unGetMsg( mFailedMessages );
mCurrentMsg = 0;
}
msg = i18n("Sending aborted:\n%1\n"
@ -610,8 +613,10 @
setStatusMsg( i18n( "Sending aborted." ) );
} else {
if (!mSendProc->sendOk()) {
- mCurrentMsg->setTransferInProgress( false );
- mOutboxFolder->unGetMsg( mFailedMessages );
+ if ( mCurrentMsg )
+ mCurrentMsg->setTransferInProgress( false );
+ if ( mOutboxFolder )
+ mOutboxFolder->unGetMsg( mFailedMessages );
mCurrentMsg = 0;
mFailedMessages++;
// Sending of message failed.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic