Extracting all Header info
0 posts in topic
Flat View  Flat View

Posted By:   Javi_Tabemoor
Posted On:   Tuesday, July 3, 2001 05:29 PM

Will the following code completely extract all the header info from a source Message into another Message? What is the best way to do this?

Enumeration headers = sourceMsg.getAllHeaderLines();
while (headers.hasMoreElements()) {
header = (Header) headers.nextElement();
msg.addHeader(header.getName(), header.getValue());

About | Sitemap | Contact