mail.HeaderCodec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of skype2gmail Show documentation
Show all versions of skype2gmail Show documentation
Send skype chat history to a gmail account
The newest version!
package mail;
import java.io.UnsupportedEncodingException;
import javax.mail.internet.MimeUtility;
import skype.MessageProcessingException;
public class HeaderCodec {
public String decodeText(String aHeader) {
try {
String decodedText = MimeUtility.decodeText(aHeader);
String decodedWithoutMailLineBreaks = decodedText.replaceAll("(?