See JIRA issue here + patch:
http://jira.jboss.org/jira/browse/JBMAIL-247
Essentially, I moved the creation of the String array into the try/catch block. If an
exception is thrown (i.e., no "content-type" header) then it is eaten and
ignored.
Note: I kept the "split" around the newline since stored messages have a
newline after the "content-type" label. I guess this is one argument in favor
of not merging MessageData and Mail classes (i.e., backing a MessageData class with a Mail
object per my previous suggestion below) because this function behaves differently in each
class.
| String[] header = getHeader("Content-Type").split("\\r\\n");
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966092#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...