java - Extract Message-id from Message Header Grails -
i need message-id of email message header,what ways extract message id message header.i using grails mail plugin.
the message id first element of mail header. way achieve output e-mail content in string , extract message-id using regex (example done in java can same using groovy regex).
string id; string mailtostring; pattern p = pattern.compile("message-id: <(.*)>"); matcher m = p.matcher(mailtostring); if(m.find()){ id = m.group(); }
Comments
Post a Comment