[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 74380] Change of the account symbolic name caused loss of the
From: Carsten Burghardt <cb () magic-shop ! de>
Date: 2004-02-09 17:40:29
Message-ID: 20040209174029.10171.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=74380
cb@magic-shop.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From cb@magic-shop.de 2004-02-09 18:40 -------
CVS commit by burghard:
Display warning when the user tries to send a mail or save a draft and the folder
of the identity is not found
CCMAIL: 74380-done@bugs.kde.org
M +10 -0 kmcomposewin.cpp 1.770.2.3
M +11 -1 kmsender.cpp 1.197.2.1
--- kdepim/kmail/kmsender.cpp #1.197:1.197.2.1
@@ -267,4 +267,5 @@ kdDebug(5006) << "KMSender::doSendMsg()
const KMIdentity & id = kmkernel->identityManager()
->identityForUoidOrDefault( mCurrentMsg->headerField( "X-KMail-Identity" \
).stripWhiteSpace().toUInt() ); + bool folderGone = false;
if ( !mCurrentMsg->fcc().isEmpty() )
{
@@ -277,4 +278,6 @@ kdDebug(5006) << "KMSender::doSendMsg()
imapSentFolder =
kmkernel->imapFolderMgr()->findIdString( mCurrentMsg->fcc() );
+ if ( !sentFolder && !imapSentFolder )
+ folderGone = true;
}
else if ( !id.fcc().isEmpty() )
@@ -286,6 +289,13 @@ kdDebug(5006) << "KMSender::doSendMsg()
if ( sentFolder == 0 )
imapSentFolder = kmkernel->imapFolderMgr()->findIdString( id.fcc() );
+ if ( !sentFolder && !imapSentFolder )
+ folderGone = true;
}
if (imapSentFolder && imapSentFolder->noContent()) imapSentFolder = 0;
+ if (folderGone)
+ KMessageBox::information(0, i18n("The custom sent-mail folder for identity "
+ "\"%1\" doesn't exist (anymore). "
+ "Therefore the default sent-mail folder "
+ "will be used.").arg( id.identityName() ) );
if ( sentFolder == 0 )
--- kdepim/kmail/kmcomposewin.cpp #1.770.2.2:1.770.2.3
@@ -4930,4 +4930,14 @@ bool KMComposeWin::doSend(int aSendNow,
if ( draftsFolder == 0 )
imapDraftsFolder = kmkernel->imapFolderMgr()->findIdString( mMsg->drafts() \
); + if ( !draftsFolder && !imapDraftsFolder )
+ {
+ const KMIdentity & id = kmkernel->identityManager()
+ ->identityForUoidOrDefault( mMsg->headerField( "X-KMail-Identity" \
).stripWhiteSpace().toUInt() ); + KMessageBox::information(0, i18n("The custom \
drafts folder for identity " + "\"%1\" doesn't exist (anymore). "
+ "Therefore the default drafts folder "
+ "will be used.")
+ .arg( id.identityName() ) );
+ }
}
if (imapDraftsFolder && imapDraftsFolder->noContent())
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic