author | zautrix <zautrix> | 2004-09-15 15:08:01 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-15 15:08:01 (UTC) |
commit | 93d16eea6d3324611d6150e7ee3e7f7f36320eff (patch) (unidiff) | |
tree | f0437e15f455ddfe1bd4ed8908fdaee67c26d38c | |
parent | d37aeeb9aa023d52b364c971fa4aabd0c8f339b9 (diff) | |
download | kdepimpi-93d16eea6d3324611d6150e7ee3e7f7f36320eff.zip kdepimpi-93d16eea6d3324611d6150e7ee3e7f7f36320eff.tar.gz kdepimpi-93d16eea6d3324611d6150e7ee3e7f7f36320eff.tar.bz2 |
KOPi OLE import changes
-rw-r--r-- | korganizer/koimportoldialog.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/korganizer/koimportoldialog.cpp b/korganizer/koimportoldialog.cpp index 16f2eca..0a3c2d5 100644 --- a/korganizer/koimportoldialog.cpp +++ b/korganizer/koimportoldialog.cpp | |||
@@ -439,8 +439,16 @@ void KOImportOLdialog::ol2kopiCalendar( _AppointmentItem * aItem, bool computeRe | |||
439 | else | 439 | else |
440 | role = KCal::Attendee::NonParticipant; | 440 | role = KCal::Attendee::NonParticipant; |
441 | QString mail = QString::fromUcs2(pItem->GetAddress().GetBuffer()); | 441 | QString mail = QString::fromUcs2(pItem->GetAddress().GetBuffer()); |
442 | if( mail.isEmpty() && name.find("@") > 0 ) | 442 | if( mail.isEmpty() && name.find("@") > 0 ) { |
443 | int kl = name.find("<"); | ||
444 | int gr = name.find(">"); | ||
445 | if ( kl >= 0 && gr >= 0) { | ||
446 | mail = name.mid (kl+1, gr - kl -1); | ||
447 | name = name.left( kl ); | ||
448 | } | ||
449 | else | ||
443 | mail = name; | 450 | mail = name; |
451 | } | ||
444 | mail = mail.stripWhiteSpace(); | 452 | mail = mail.stripWhiteSpace(); |
445 | 453 | ||
446 | QString uid = getUidByEmail( mail ); | 454 | QString uid = getUidByEmail( mail ); |