public abstract class MimeUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MimeUtils.MimeMessageImpl
MimeMessageImpl
|
Modifier and Type | Field and Description |
---|---|
static String[] |
STANDARD_HEADER_FIELDS |
Constructor and Description |
---|
MimeUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getHeadersAsRFC822(javax.mail.Part part,
String[] fields)
Get headers in RFC822 format.
|
static boolean |
isAllAscii(String s)
Test whether string contains ASCII chars only.
|
static javax.mail.internet.MimeMessage |
mapMsgToMime(InputStream msgStream,
Segment accountSegment,
Map<String,String> addressMap,
boolean validateAddresses,
List<String> errors)
Map MSG to MIME.
|
static String[] |
parseContentType(String contentType)
Parse mime content type.
|
public static final String[] STANDARD_HEADER_FIELDS
public static String getHeadersAsRFC822(javax.mail.Part part, String[] fields) throws javax.mail.MessagingException
part
- fields
- javax.mail.MessagingException
public static boolean isAllAscii(String s)
s
- public static javax.mail.internet.MimeMessage mapMsgToMime(InputStream msgStream, Segment accountSegment, Map<String,String> addressMap, boolean validateAddresses, List<String> errors)
msgStream
- accountSegment
- addressMap
- validateAddresses
- if true, validates whether the mapped SMTP address exists
in account segment.errors
- This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.