[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/kmail
From:       Matt Douhan <matt () fruitsalad ! org>
Date:       2005-02-20 20:04:32
Message-ID: 20050220200432.5ABEF1B918 () office ! kde ! org
[Download RAW message or body]

CVS commit by mdouhan: 

Adde email addressvalidation for the Bcc lineedit in the
identity dialog, this helps the user to not mistype
an address and thus causing strange error messages.


  M +9 -0      identitydialog.cpp   1.53


--- kdepim/kmail/identitydialog.cpp  #1.52:1.53
@@ -454,4 +454,13 @@ void IdentityDialog::slotOk() {
     }
 
+    // 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<GpgME::Key> & pgpSigningKeys = \
                mPGPSigningKeyRequester->keys();
     const std::vector<GpgME::Key> & pgpEncryptionKeys = \
mPGPEncryptionKeyRequester->keys();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic