You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Mathias Berg <ma...@gmail.com> on 2006/12/01 09:58:01 UTC

UUEncoded mail

Hi, i have a problem with some customers who is sending their mail to
our James server (2.3.0).

When we recieve their mail its says that
mail.getMessage().getContent() is of instance String!

And the output from the content looks like this

....
M/#]X;6P@=F5R<VEO;CTB,2XP(B!E;F-O9&EN9STB551&+3@B('-T86YD86QO
M;F4](FYO(C\^"CQT<F%D941O=6)L97)096YD:6YG('AM;&YS.GAS:3TB:'1T
M<#HO+W=W=RYW,RYO<F<O,C`P,2]834Q38VAE;6$M:6YS=&%N8V4B/@H@(#QC
....

If im not wrong here the mail is uuencoded. How can i handle this cind of mails?

--------------------------------------------
Code example

public void service(org.apache.mailet.Mail mail) throws MessagingException {

content = mail.getMessage().getContent();
if (content != null && content instanceof MimeMultipart) {
  MimeMultipart part = (MimeMultipart) content;
  .....
}else{
  log.error(content)
}

--------------------------------------------

It always ends up in the else block.

Please help.

Best regards, Mathias.

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org