|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractCommentHandler
cern.jira.emailhandler.NonQuotedCommentHandler
public class NonQuotedCommentHandler
This handler adds the body of the email as a comment, using the subject
to determine which issue to add the comment to.
The difference between this and FullCommentHandler is that this will
strip any quoted lines from the email (i.e. lines that start with > or |).
FullCommentHandler
Field Summary | |
---|---|
private static Category |
log
|
private java.util.Collection |
messages
|
private static java.lang.String |
OUTLOOK_QUOTED_FILE
|
Constructor Summary | |
---|---|
NonQuotedCommentHandler()
|
Method Summary | |
---|---|
protected boolean |
attachHtmlParts(Part part)
Attaches HTML parts. |
protected boolean |
attachPlainTextParts(Part part)
Attaches plaintext parts. |
protected java.lang.String |
getEmailBody(Message message)
Given a message, adds the entire message body as a comment to the first issue referenced in the subject. |
private java.util.Collection |
getOutlookQuoteSeparators()
|
private boolean |
isOutlookQuotedLine(java.lang.String line)
|
private boolean |
isQuotedLine(java.lang.String line)
|
private boolean |
looksLikeAttribution(java.lang.String line)
|
java.lang.String |
stripQuotedLines(java.lang.String body)
Given an email body, strips quoted lines and the 'attribution' line that most mailers prepend (eg. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Category log
private static final java.lang.String OUTLOOK_QUOTED_FILE
private java.util.Collection messages
Constructor Detail |
---|
public NonQuotedCommentHandler()
Method Detail |
---|
protected java.lang.String getEmailBody(Message message) throws MessagingException
MessagingException
public java.lang.String stripQuotedLines(java.lang.String body)
private boolean looksLikeAttribution(java.lang.String line)
private boolean isQuotedLine(java.lang.String line)
private boolean isOutlookQuotedLine(java.lang.String line)
private java.util.Collection getOutlookQuoteSeparators()
protected boolean attachPlainTextParts(Part part) throws MessagingException, java.io.IOException
part
- the part being tested
MessagingException
java.io.IOException
protected boolean attachHtmlParts(Part part) throws MessagingException, java.io.IOException
part
- the part being tested
MessagingException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |