[ 
https://issues.apache.org/jira/browse/CONNECTORS-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15967695#comment-15967695
 ] 

Furkan KAMACI commented on CONNECTORS-1407:
-------------------------------------------

[[email protected]] I think that this is the right way to handle it:

{code:java}
Pattern.compile("<(.*?)@(.*?)>");
{code} 

When you check [RFC5322|https://tools.ietf.org/html/rfc5322] You can also 
check: 
[here|https://social.technet.microsoft.com/Forums/azure/en-US/69f393aa-d555-4f8f-bb16-c636a129fc25/what-are-valid-and-invalid-email-address-characters?forum=exchangesvradminlegacy]
 Do I miss anything?

> Properly Extract From and To Fields
> -----------------------------------
>
>                 Key: CONNECTORS-1407
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1407
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Email connector
>    Affects Versions: ManifoldCF 2.6
>            Reporter: Furkan KAMACI
>            Assignee: Furkan KAMACI
>             Fix For: ManifoldCF 2.7
>
>         Attachments: CONNECTORS-1407.patch
>
>
> From and To fields include username / surname pair if user is known or 
> e-mail. i.e.
> "Mike Donua <[email protected]>"
> "[email protected] <[email protected]>"
> We should extract e-mail addresses if this pattern exists. However, From and 
> To fields are not extracted such way.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to