Summary: | KMail fails when @ is used in recipient's name | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Diego Elio Pettenò <flameeyes> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bjoern, carlos-spam |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Proposed patch |
Description
Diego Elio Pettenò
2006-01-27 23:44:31 UTC
Created attachment 14449 [details]
Proposed patch
Okay tonight I found some time and I wrote the attached patch, it's a rewrite
of the KPIM::isValidEmailAddress() function, replacing the stateful parser with
some regexps.
It doesn't seem to decrease performance noticeably, and it does not fail in the
situation it was failing before, and mails are sent fine.
*** Bug 124572 has been marked as a duplicate of this bug. *** Hi, can someone please review this patch? Sorry, but your patch is not acceptable. If you want to know how a regular expression for checking the validity of RFC822 addresses looks like take a look at http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html. And no, we don't want to have this regular expression in KMail. Please try to fix the parser instead of trying to replace it by something else. I checked with KDE 4.3. I can send a mail with "flameeyes@gentoo.org" <adress> , so I consider the main problem solved. I cannot send an mail like "flameeyes\@gentoo.org" <adress> , but that's a problem with the backslash. |