diff options
author | alecpl <alec@alec.pl> | 2010-09-30 09:11:33 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-09-30 09:11:33 +0000 |
commit | 1f49ce50a9ca23da16fe2a1c512bded3d1cb9c07 (patch) | |
tree | afb65a09ff1c6c641796c977c397a5232f50f4a3 /program/steps/mail/func.inc | |
parent | 9f9664338f66a82e15c1ce9b79dc24430c593af4 (diff) |
- Improve a little email address pattern, broken with IDNA support implementation
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r-- | program/steps/mail/func.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 4dd6d8b55..041eed1db 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -26,7 +26,7 @@ $SEARCH_MODS_DEFAULT = array('*' => array('subject'=>1, 'from'=>1), $SENT_MBOX = // Simplified for IDN in Unicode //$EMAIL_ADDRESS_PATTERN = '([a-z0-9][a-z0-9\-\.\+\_]*@[a-z0-9][a-z0-9\-\.]*\\.[a-z]{2,5})'; -$EMAIL_ADDRESS_PATTERN = '([a-z0-9][a-z0-9\-\.\+\_]*@[^.].*\\.[a-z]{2,5})'; +$EMAIL_ADDRESS_PATTERN = '([a-z0-9][a-z0-9\-\.\+\_]*@[^&@"\'.][^@&"\']*\\.[a-z]{2,5})'; // actions that do not require imap connection here $NOIMAP_ACTIONS = array('addcontact', 'autocomplete', 'upload', 'display-attachment', 'remove-attachment', 'get'); |