diff --git a/identitydialog.cpp b/identitydialog.cpp index b38eb9fc9..87b952286 100644 --- a/identitydialog.cpp +++ b/identitydialog.cpp @@ -453,6 +453,15 @@ void IdentityDialog::slotOk() { return; } + // check the Bcc address + const QString bcc = mBccEdit->text().stripWhiteSpace(); + if ( !( isValidSimpleEmailAddress( bcc ) || bcc.isEmpty() )) { + QString errorMsg( simpleEmailAddressErrorMsg()); + KMessageBox::sorry( this, errorMsg, i18n("Invalid Email Address") ); //FIXME:change to Invalid Bcc Address after stringfreeze + return; + } + + const std::vector & pgpSigningKeys = mPGPSigningKeyRequester->keys(); const std::vector & pgpEncryptionKeys = mPGPEncryptionKeyRequester->keys(); const std::vector & smimeSigningKeys = mSMIMESigningKeyRequester->keys();