|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractMessageHandler
org.cert.cc.jira.email.handler.AttachmentMailHandler
public final class AttachmentMailHandler
AttachmentMailHandler creates new JIRA issue from incoming emails. If the incoming emails is just text/plain, its data is used to create the issue. If the incoming email is multi-part, each message/rfc822 attachment is interrogated and used to create a new issue. This allows a user to "forward as an attachment" and have the forwarded email be the input for a new JIRA issue. If there are more than one attachment, the attachments are just passed through to JIRA.
© 2010 Carnegie Mellon University
Field Summary | |
---|---|
static File |
PROPERTIES_DIRECTORY
Directory for all of EAH's propertes files |
Constructor Summary | |
---|---|
AttachmentMailHandler()
|
Method Summary | |
---|---|
protected boolean |
attachHtmlParts(Part p)
|
protected boolean |
attachPlainTextParts(Part p)
|
protected User |
getReporter(Message message)
|
boolean |
handleMessage(Message message)
|
void |
init(Map map)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final File PROPERTIES_DIRECTORY
Constructor Detail |
---|
public AttachmentMailHandler()
Method Detail |
---|
public void init(Map map)
public boolean handleMessage(Message message) throws MessagingException
MessagingException
protected User getReporter(Message message) throws MessagingException
MessagingException
protected boolean attachHtmlParts(Part p) throws MessagingException, IOException
MessagingException
IOException
protected boolean attachPlainTextParts(Part p) throws MessagingException, IOException
MessagingException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |