Gnus development mailing list
 help / color / mirror / Atom feed
* [Q]: PDF attachments and Gnus
@ 2004-01-22 22:31 Xavier Maillard
  2004-01-22 22:41 ` Jesper Harder
  0 siblings, 1 reply; 9+ messages in thread
From: Xavier Maillard @ 2004-01-22 22:31 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 679 bytes --]

Hi,

I have a question: what is the supposed encoding to be used when
sending a pdf file as attachment ?

I currently use base64 encoding which seems to be problematic for
Outlook users.

Any idea ? 

Here is how I set it up:

,----
| (setq mm-content-transfer-encoding-defaults
|       '(("text/x-patch" 8bit)
|         ("text/.*" qp-or-base64)
|         ("message/rfc822" 8bit)
|         ("application/emacs-lisp" 8bit)
|         ("application/x-patch" 8bit)
|         ("application/pdf" base64)
|         (".*" base64)))
`----

Is this the right way ?

Thanks,

zeDek
-- 
.o.                     | zedek (at) gnu-rox.org
..o Hacker Wonderland   | 
ooo                     | 


[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Q]: PDF attachments and Gnus
  2004-01-22 22:31 [Q]: PDF attachments and Gnus Xavier Maillard
@ 2004-01-22 22:41 ` Jesper Harder
  2004-01-22 23:04   ` Xavier Maillard
  0 siblings, 1 reply; 9+ messages in thread
From: Jesper Harder @ 2004-01-22 22:41 UTC (permalink / raw)


Xavier Maillard <zedek@gnu-rox.org> writes:

> I have a question: what is the supposed encoding to be used when
> sending a pdf file as attachment ?

base64.

> I currently use base64 encoding which seems to be problematic for
> Outlook users.

In which way?

> Here is how I set it up:
>
> ,----
> | (setq mm-content-transfer-encoding-defaults
> |       '(("text/x-patch" 8bit)
> |         ("text/.*" qp-or-base64)
> |         ("message/rfc822" 8bit)
> |         ("application/emacs-lisp" 8bit)
> |         ("application/x-patch" 8bit)
> |         ("application/pdf" base64)
> |         (".*" base64)))
> `----

The application/pdf entry is redundant.  Everything that doesn't have
an entry is base64 encoded, so adding the pdf entry does not make any
difference.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Q]: PDF attachments and Gnus
  2004-01-22 22:41 ` Jesper Harder
@ 2004-01-22 23:04   ` Xavier Maillard
  2004-01-23 10:57     ` Steinar Bang
  0 siblings, 1 reply; 9+ messages in thread
From: Xavier Maillard @ 2004-01-22 23:04 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 2478 bytes --]

On 22 Jan 2004, Jesper Harder outgrape:

> Xavier Maillard <zedek@gnu-rox.org> writes:
> 
> > I have a question: what is the supposed encoding to be used when
> > sending a pdf file as attachment ?
> 
> base64.

Ok.
 
> > I currently use base64 encoding which seems to be problematic for
> > Outlook users.
> 
> In which way?

See it :

,----
| -----Message d'origine-----
| De : Xavier Maillard [mailto:zedek@gnu-rox.org] 
| Envoyé : mercredi 21 janvier 2004 17:49
| À : pelletro@essilor.fr
| Objet : Bilan des courses
| 
| Bonjour,
| MIME-Version: 1.0
| Content-Type: multipart/mixed; boundary="=-=-="
| Bon c'est la fin de =?iso-8859-1?q?journ=E9e=2E?=
| Résultat d'une journée de grève: =?iso-8859-1?q?gal=E8re?= ! --=-=-=
| Content-Type: text/plain; charset=iso-8859-1
| Content-Transfer-Encoding: 8bit
| [Je suppose que si tu ne m'as pas =?utf-8?q?appel=E9?= (ni personne d'autre
| dailleurs) c'est que rien n'a =?utf-8?q?explos=E9?= pendant mon absence (et
| tant mieux ;)).] Donc du fait de
| =?utf-8?q?l'impossibilit=E9_de_me_connecter_au_r=E9seau?= Essilor (je sais
| toujours pas pourquoi =?utf-8?q?=E7a?= ne fonctionne plus), je me suis
| "rabattu" sur la doc et un peu de dev. Donc j'ai fait les docs de WESS et
| Varillux. J'ai aussi finaliser (?) RMES pour MSSQL et MS 2000 il ne reste
| plus =?utf-8?q?qu'=E0_tester_sur_FRER0033_=28j'esp=E8re?= demain). J'ai
| essayer de voir en quoi l'indus de COWS (et les composnat .NET) pouvaient
| poser problème: toujours rien de probant. Enfin j'ai aussi
| =?utf-8?b?cGVuc+kg4A==?= modifier mon CV. Il y en a maintenant 2 (1 pour
| l'admin et 1 pour le dev). Ils sont identiques en tous points sauf pour le
| titre ;) Encore =?utf-8?b?ZOlzb2zp?= pour le retard... --=-=-=
| Content-Type: application/pdf
| Content-Disposition: attachment; filename=CV_Dev.pdf
| Content-Transfer-Encoding: base64
| Content-Description: CV Dev
| JVBERi0xLjQKNSAwIG9iago8PCAvUyAvR29UbyAvRCBbNiAwIFIgIC9GaXQgXSA+PgplbmRv
| JVBERi0xLjQKNSAwIG9iago8PCAvUyAvR29UbyAvRCBbNiAwIFIgIC9GaXQgXSA+YmoK
| OCAwIG9iaiA8PAovTGVuZ3RoIDI2ODAgICAgICAKL0ZpbHRlciAvRmxhdGVEZWNvZGUKPj4Kc3Ry
| .....
`----

This is exactly what my manager saw today ;)
 
And as he is against Emacs/Gnus, I didn't mark points today :p

zeDek
-- 
GNUSFR.ORG                       http://gnusfr.org/
EMACSFR.ORG                      http://emacsfr.org/
Xavier Maillard                  Tel: +33 6 68 04 64 37


[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Q]: PDF attachments and Gnus
  2004-01-22 23:04   ` Xavier Maillard
@ 2004-01-23 10:57     ` Steinar Bang
  2004-01-24  2:41       ` Xavier Maillard
  0 siblings, 1 reply; 9+ messages in thread
From: Steinar Bang @ 2004-01-23 10:57 UTC (permalink / raw)


>>>>> Xavier Maillard <zedek@gnu-rox.org>:

>> > I currently use base64 encoding which seems to be problematic for
>> > Outlook users.
>> 
>> In which way?

> See it :

You mean he saw the unparsed MIME message?  How did you send it?  Via
the Exchange server with SMTP?

I just did an experiment: I sent an email with a PDF attachment, using
Gnus, from my home email address, and then forwarded it back (using
message/rfc822 in the Outlook forwarding).

The PDF file showed up as an attachment in Outlook 98 (8.5.5104.6)
Corporate or Workgroup.

One factlet: was that the message I forwarded back, had the
application/pdf part quoted-printable, while the original message sent
by Gnus had it quoted base64.

I'm not sure what significance this has, if any.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Q]: PDF attachments and Gnus
  2004-01-23 10:57     ` Steinar Bang
@ 2004-01-24  2:41       ` Xavier Maillard
  2004-01-25  8:29         ` Yair Friedman
                           ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Xavier Maillard @ 2004-01-24  2:41 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

On 23 Jan 2004, Steinar Bang said:

> > > > > > Xavier Maillard <zedek@gnu-rox.org>:
> 
> > > > I currently use base64 encoding which seems to be problematic
> > > > for Outlook users.
> > > 
> > > In which way?
> 
> > See it :
> 
> You mean he saw the unparsed MIME message?  How did you send it?  Via

Yep.

> the Exchange server with SMTP?

I used my SMTP to send the mail. The message then passed through my
manager Exchange server.
 
> One factlet: was that the message I forwarded back, had the
> application/pdf part quoted-printable, while the original message sent
> by Gnus had it quoted base64.

The original mail I sent was base64 encoded but apparently something
went wrong with it.

-- 
Xavier Maillard

main(){printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}


[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Q]: PDF attachments and Gnus
  2004-01-24  2:41       ` Xavier Maillard
@ 2004-01-25  8:29         ` Yair Friedman
  2004-01-25 13:39         ` Steinar Bang
  2004-01-27 13:54         ` Kai Grossjohann
  2 siblings, 0 replies; 9+ messages in thread
From: Yair Friedman @ 2004-01-25  8:29 UTC (permalink / raw)


On Sat, 24 Jan 2004 03:41:13 +0100, 
Xavier Maillard <zedek@gnu-rox.org> writes:

>> One factlet: was that the message I forwarded back, had the
>> application/pdf part quoted-printable, while the original message sent
>> by Gnus had it quoted base64.
>
> The original mail I sent was base64 encoded but apparently something
> went wrong with it.

FWIW, testing with exchange and outlook2002 - sending same pdf file with
gnus, created same base64 encoded file, and nearly same headers. The
problem must be elsewhere.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Q]: PDF attachments and Gnus
  2004-01-24  2:41       ` Xavier Maillard
  2004-01-25  8:29         ` Yair Friedman
@ 2004-01-25 13:39         ` Steinar Bang
  2004-01-26 14:28           ` Steinar Bang
  2004-01-27 13:54         ` Kai Grossjohann
  2 siblings, 1 reply; 9+ messages in thread
From: Steinar Bang @ 2004-01-25 13:39 UTC (permalink / raw)


>>>>> Xavier Maillard <zedek@gnu-rox.org>:

> The original mail I sent was base64 encoded but apparently something
> went wrong with it.

From what your manager received, if I'd guess, I'd say it looked like
something had stripped some of the MIME headers on the message itself,
so that it didn't appear to be a MIME message to the Exchange server.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Q]: PDF attachments and Gnus
  2004-01-25 13:39         ` Steinar Bang
@ 2004-01-26 14:28           ` Steinar Bang
  0 siblings, 0 replies; 9+ messages in thread
From: Steinar Bang @ 2004-01-26 14:28 UTC (permalink / raw)


>>>>> Steinar Bang <sb@dod.no>:

>>>>> Xavier Maillard <zedek@gnu-rox.org>:
>> The original mail I sent was base64 encoded but apparently something
>> went wrong with it.

> From what your manager received, if I'd guess, I'd say it looked like
> something had stripped some of the MIME headers on the message itself,
> so that it didn't appear to be a MIME message to the Exchange server.

Perhaps a virus/spam filter is the culprit?

(Again, a pure guess)




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Q]: PDF attachments and Gnus
  2004-01-24  2:41       ` Xavier Maillard
  2004-01-25  8:29         ` Yair Friedman
  2004-01-25 13:39         ` Steinar Bang
@ 2004-01-27 13:54         ` Kai Grossjohann
  2 siblings, 0 replies; 9+ messages in thread
From: Kai Grossjohann @ 2004-01-27 13:54 UTC (permalink / raw)


Xavier Maillard <zedek@gnu-rox.org> writes:

> I used my SMTP to send the mail. The message then passed through my
> manager Exchange server.

Can you send to someone using Outlook in the same way?  Have that
person look at the "SMTP headers" or somesuch for the message.  (If
you have lots of Received lines, then you're looking at the right
thing.)  Look if there is a Mime-Version header there.  If it is
missing, that could be the problem.

Kai




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-01-27 13:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-22 22:31 [Q]: PDF attachments and Gnus Xavier Maillard
2004-01-22 22:41 ` Jesper Harder
2004-01-22 23:04   ` Xavier Maillard
2004-01-23 10:57     ` Steinar Bang
2004-01-24  2:41       ` Xavier Maillard
2004-01-25  8:29         ` Yair Friedman
2004-01-25 13:39         ` Steinar Bang
2004-01-26 14:28           ` Steinar Bang
2004-01-27 13:54         ` Kai Grossjohann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).