Re: [Trac] Email2Trac: None-1 (236.7 kB) -should be myfile.pdf?

2012-10-04 Thread Bas van der Vlies
Lukasz,

 Do you use the email2trac from: https://subtrac.sara.nl/oss/email2trac
 That is a script there is also a plugin implementation on TracHacks.

 If you use email2trac can you open a ticket and attach the raw message.

regards

On 10/04/2012 12:05 AM, Lukasz Szybalski wrote:
 Hello,
 I've been running a email2trac plugin for a while, and this is a first
 time I'm having trouble with trac not being able to decoded the
 attachment properly.
 
 One of the users is using 3rd party web application to send an
 attachment. In trac it shows up as None-1 (236.7kb), but if I cc
 myself on the email thunderbird opens it without any problems. When
 I open the none-1 it looks like text/binary version of a pdf.
 
 Here is a part of the email from thunderbird. Is anybody familiar with
 email content types to tell me what could be wrong with it? Is this a
 email2trac issue or formatting issue on the person that sends it. Note
 that if I forward the same email using Thunderbird it attaches just
 fine.:
 
 .
 ..email headers...
 Date: 3 Oct 2012 15:32:14 -0500
 Content-Type: multipart/mixed;
 boundary=--boundary_4_cc760ab8-c89d-410d-9943-8117bbe33377
 Message-ID: amc1idk4jdxvhyeuzfk1...@x.com
 X-OriginalArrivalTime: 03 Oct 2012 20:32:21.0891 (UTC)
 FILETIME=[30CBAD30:01CDA1A6]
 
 
 boundary_4_cc760ab8-c89d-410d-9943-8117bbe33377
 Content-Type: text/html; charset=us-ascii
 Content-Transfer-Encoding: quoted-printable
 
 htmlbody style=3Dfont-family : arial, tahoma, sans-serif; fon=
 t-size : 10pt/body/html
 boundary_4_cc760ab8-c89d-410d-9943-8117bbe33377
 Content-Type: application/octet-stream; name=CompanyApp.pdf
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment
 
 JVBERi0xLjYNCg0KODggMCBvYmoNCjw8DQovRSA2NjI2OQ0KL0ggWyA2NzQzIDQy
 NCBdDQovTCAyNDIzODQNCi9MaW5lYXJpemVkIDENCi9OIDENCi9PIDkyDQovVCAy
 NDA1NzMNCj4+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
 ICAgICAgICAgICAgICAgICAgICAgICAgICAgIA0KZW5kb2JqDQoNCnhyZWYNCjg4
 ...
 ..
 MCBuDQowMDAwMjM5ODE1IDAwMDAwIG4NCjAwMDAyNDAxODkgMDAwMDAg
 bg0KdHJhaWxlcg0KPDwNCi9TaXplIDg4DQo+Pg0Kc3RhcnR4cmVmDQoxODQNCiUl
 RU9GDQo=
 boundary_4_cc760ab8-c89d-410d-9943-8117bbe33377--
 
 
 And in trac the comapnyapp.pdf is called none-1 and when opened it shows:
 
 
 %PDF-1.6
 2 
 3 88 0 obj
 4 
 5 /E 66269
 6 /H [ 6743 424 ]
 7 /L 242384
 8 /Linearized 1
 9 /N 1
 10/O 92
 11/T 240573
 12
 13endobj
 14
 15xref
 1688 206
 1712 0 n
 
 
 Any info would be helpfull. There is no error messages in the logs.
 Thanks,
 Lucas
 


-- 

*  Bas van der Vliese-mail: b...@sara.nl   *
*  SARA - Academic Computing Services   Amsterdam, The Netherlands *




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Trac] Email2Trac: None-1 (236.7 kB) -should be myfile.pdf?

2012-10-04 Thread Matthew Caron

On 10/03/2012 06:05 PM, Lukasz Szybalski wrote:

Hello,
I've been running a email2trac plugin for a while, and this is a first
time I'm having trouble with trac not being able to decoded the
attachment properly.

...

htmlbody style=3Dfont-family : arial, tahoma, sans-serif; fon=
t-size : 10pt/body/html
boundary_4_cc760ab8-c89d-410d-9943-8117bbe33377
Content-Type: application/octet-stream; name=CompanyApp.pdf
Content-Transfer-Encoding: base64
Content-Disposition: attachment


Isn't the mime type for PDF supposed to be application/pdf? I bet that 
email2trac (or possibly trac itself, depending on who does the import) 
is strictly following the RFC and Thunderbird has a workaround (likely a 
match on .pdf).


--
Matthew Caron, Software Build Engineer
Sixnet, a Red Lion business | www.sixnet.com
+1 (518) 877-5173 x138 office

--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.