[codec] problem with Base64OutputStream

2013-02-16 Thread Thad Humphries
I am using Commons Codec v1.7 to Base64 encode a TIFF file for writing to an XML file as CDATA. Simple: File file = new File(fileName); FileInputStream fis = new FileInputStream(file); ByteArrayOutputStream baos = new ByteArrayOutputStream(); Base64OutputStream b64o

Re: Remove headers on multipart email

2013-02-16 Thread cac...@gmail.com
Here's the bit of the RFC. So the field is optional, but needless to say blocking those messages is rather strange. Is it hoping to receive automated messages only and rejecting spec compliant messages as a spam control feature? 4.4.1. FROM / RESENT-FROM This field contains the iden

Re: Remove headers on multipart email

2013-02-16 Thread Thomas Neidhart
On 02/15/2013 10:44 PM, Ricardo Bevilacqua wrote: > Hi to all! > > I'm facing the following issue: my client has an SMTP server that > blocks incomming mails that have the "from" header for some reason. If > the mail doesn't have this header, it works. > > So my question is if there is a chance t

Re: Remove headers on multipart email

2013-02-16 Thread Siegfried Goeschl
Hi Ricardo, that is rather strange, since the "from" is the FROM address and is AFAIK mandatory according to RFC822 - so you are asked to send an invalid MimeMessage?! Can you check out if you can get the underlying MimeMessage (Email is just a wrapper) and tinker with it ... Cheers, Siegfr