public class MailUtil extends Object
Constructor and Description |
---|
MailUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addPersonAndEmail(String string,
Property personProperty,
Property emailProperty,
Metadata metadata)
This tries to split a "from" or "to" value into a person field and an email field.
|
static boolean |
containsEmail(String chunk)
If the chunk looks like it contains an email
|
static void |
setPersonAndEmail(String string,
Property personProperty,
Property emailProperty,
Metadata metadata)
This tries to split a "from" or "to" value into a person field and an email field.
|
public static void setPersonAndEmail(String string, Property personProperty, Property emailProperty, Metadata metadata)
string
- personProperty
- emailProperty
- metadata
- public static void addPersonAndEmail(String string, Property personProperty, Property emailProperty, Metadata metadata)
string
- personProperty
- emailProperty
- metadata
- public static boolean containsEmail(String chunk)
chunk
- to analysetrue
if chunk looks like it contains an emailCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.