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

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -