Gnus development mailing list
 help / color / mirror / Atom feed
* X-face display patch
@ 1999-06-11 18:36 Hrvoje Niksic
  1999-06-11 18:40 ` Karl Kleinpaste
  0 siblings, 1 reply; 14+ messages in thread
From: Hrvoje Niksic @ 1999-06-11 18:36 UTC (permalink / raw)


I believe I saw mention of a patch to reenable x-face display under
pgnus-0.84.  Is such a patch available?


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

* Re: X-face display patch
  1999-06-11 18:36 X-face display patch Hrvoje Niksic
@ 1999-06-11 18:40 ` Karl Kleinpaste
  1999-06-11 18:46   ` Unintended base64 encoding Karl Kleinpaste
  0 siblings, 1 reply; 14+ messages in thread
From: Karl Kleinpaste @ 1999-06-11 18:40 UTC (permalink / raw)


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

Hrvoje Niksic <hniksic@srce.hr> writes:
> I believe I saw mention of a patch to reenable x-face display under
> pgnus-0.84.  Is such a patch available?


[-- Attachment #2: X-Face display patch --]
[-- Type: message/rfc-822, Size: 4163 bytes --]

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

* Unintended base64 encoding
  1999-06-11 18:40 ` Karl Kleinpaste
@ 1999-06-11 18:46   ` Karl Kleinpaste
  1999-06-13  1:17     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Karl Kleinpaste @ 1999-06-11 18:46 UTC (permalink / raw)


Karl Kleinpaste <karl@justresearch.com> writes:
> --=-=-=
> Content-Type: message/rfc-822
> Content-Disposition: inline; filename=24514
> Content-Transfer-Encoding: base64
> Content-Description: X-Face display patch
> 
> WC1Gcm9tLUxpbmU6IG93bmVyLWRpbmdAaHBjLnVoLmVkdSAgV2VkIE1heSAxMiAxMjoyNTo0
> NCAxOTk5ClJldHVybi1QYXRoOiA8b3duZXItZGluZ0BocGMudWguZWR1PgpSZWNlaXZlZDog

Why did p0.84 decide to do that to me?  I composed the message with
`C-c C-a', specified message/rfc-822, and manually tweaked the
disposition to "inline".  The forwarded message itself was text/plain
and us-ascii.

Duh?  I'm confused.


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

* Re: Unintended base64 encoding
  1999-06-11 18:46   ` Unintended base64 encoding Karl Kleinpaste
@ 1999-06-13  1:17     ` Lars Magne Ingebrigtsen
  1999-06-13  2:38       ` Karl Kleinpaste
  1999-06-15 11:41       ` Toby Speight
  0 siblings, 2 replies; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-06-13  1:17 UTC (permalink / raw)


Karl Kleinpaste <karl@justresearch.com> writes:

> > Content-Type: message/rfc-822
> > Content-Transfer-Encoding: base64

[...]

> Why did p0.84 decide to do that to me?

Because mm encodes anything that it doesn't know anything about as
base64.  And it doesn't know about "message/rfc-822", but it does know 
about "message/rfc822".  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: Unintended base64 encoding
  1999-06-13  1:17     ` Lars Magne Ingebrigtsen
@ 1999-06-13  2:38       ` Karl Kleinpaste
  1999-06-15 11:41       ` Toby Speight
  1 sibling, 0 replies; 14+ messages in thread
From: Karl Kleinpaste @ 1999-06-13  2:38 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Because mm encodes anything that it doesn't know anything about as
> base64.  And it doesn't know about "message/rfc-822", but it does know 
> about "message/rfc822".  :-)

Harumph.  Well, considering that pGnus now (0.85) knows only about
message/rfc822, without the dash, this errant base64ification won't
happen any more.


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

* Re: Unintended base64 encoding
  1999-06-13  1:17     ` Lars Magne Ingebrigtsen
  1999-06-13  2:38       ` Karl Kleinpaste
@ 1999-06-15 11:41       ` Toby Speight
  1999-07-03  9:17         ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 14+ messages in thread
From: Toby Speight @ 1999-06-15 11:41 UTC (permalink / raw)


Lars> Lars Magne Ingebrigtsen <URL:mailto:larsi@gnus.org>

0> In <URL:news:m3909o99wo.fsf@quimbies.gnus.org>, Lars wrote:

Lars> ... mm encodes anything that it doesn't know anything about as
Lars> base64.

That's evil.  Why does it do that, rather than inspecting the content
to decide the appropriate encoding?


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

* Re: Unintended base64 encoding
  1999-06-15 11:41       ` Toby Speight
@ 1999-07-03  9:17         ` Lars Magne Ingebrigtsen
  1999-07-09 11:55           ` Toby Speight
  0 siblings, 1 reply; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-07-03  9:17 UTC (permalink / raw)


Toby Speight <Toby.Speight@digitivity.com> writes:

> Why does it do that, rather than inspecting the content to decide
> the appropriate encoding?

What is the appropriate encoding?  base64 is always¹ appropriate.

¹) For some values of.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: Unintended base64 encoding
  1999-07-03  9:17         ` Lars Magne Ingebrigtsen
@ 1999-07-09 11:55           ` Toby Speight
  1999-07-09 18:09             ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Toby Speight @ 1999-07-09 11:55 UTC (permalink / raw)


Lars> Lars Magne Ingebrigtsen <URL:mailto:larsi@gnus.org>

0> In <URL:news:m3908yrt15.fsf@quimbies.gnus.org>, Lars wrote:

Lars> Toby Speight <Toby.Speight@digitivity.com> writes:

>> Why does it do that, rather than inspecting the content to decide
>> the appropriate encoding?

Lars> What is the appropriate encoding?  base64 is always appropriate.

Some time back (a couple of years, I think), I wrote code for TM which
inspected the message to determine the most space-efficient encoding
(if 8bit/binary weren't possible).  So bodyparts containing mostly
US-ASCII printable characters got q-p encoding, and others got base64,
*irrespective of content-type*.  AIUI, pgnus uses content-type or
disposition as the primary heuristic.

[For large parts, it may be a useful optimisation to only scan perhaps
the first 1K and the last 1K and assume they are representative of the
whole.]



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

* Re: Unintended base64 encoding
  1999-07-09 11:55           ` Toby Speight
@ 1999-07-09 18:09             ` Lars Magne Ingebrigtsen
  1999-07-09 18:44               ` François Pinard
                                 ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-07-09 18:09 UTC (permalink / raw)


Toby Speight <Toby.Speight@streapadair.freeserve.co.uk> writes:

> Some time back (a couple of years, I think), I wrote code for TM which
> inspected the message to determine the most space-efficient encoding
> (if 8bit/binary weren't possible).  So bodyparts containing mostly
> US-ASCII printable characters got q-p encoding, and others got base64,
> *irrespective of content-type*.  

Seems nice.  I've now written the function, but what is the switchover
point between qp and base64?  Math genius wanted!

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: Unintended base64 encoding
  1999-07-09 18:09             ` Lars Magne Ingebrigtsen
@ 1999-07-09 18:44               ` François Pinard
  1999-07-09 19:18                 ` Lars Magne Ingebrigtsen
  1999-07-09 19:43               ` Aaron M. Ucko
       [not found]               ` <udl4sjdbodp.fsf@tux.mit.edu>
  2 siblings, 1 reply; 14+ messages in thread
From: François Pinard @ 1999-07-09 18:44 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Toby Speight <Toby.Speight@streapadair.freeserve.co.uk> writes:

> > Some time back (a couple of years, I think), I wrote code for TM which
> > inspected the message to determine the most space-efficient encoding
> > (if 8bit/binary weren't possible).  So bodyparts containing mostly
> > US-ASCII printable characters got q-p encoding, and others got base64,
> > *irrespective of content-type*.  

> Seems nice.  I've now written the function, but what is the switchover
> point between qp and base64?  Math genius wanted!

The most efficient encoding might require creating more subparts to a part.
All QP or all 64 might not be the best way to go.  Once away from two
extremes, which is all QP or all 64, recognising that more even subparts
is only an half-hearted solution, why not rather consider optional full
compression with later 64 only?

Unless readability considerations matter and favour QP?  (Yes, I know! :-)

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard



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

* Re: Unintended base64 encoding
  1999-07-09 18:44               ` François Pinard
@ 1999-07-09 19:18                 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-07-09 19:18 UTC (permalink / raw)


François Pinard <pinard@iro.umontreal.ca> writes:

> The most efficient encoding might require creating more subparts to a part.
> All QP or all 64 might not be the best way to go.  Once away from two
> extremes, which is all QP or all 64, recognising that more even subparts
> is only an half-hearted solution, why not rather consider optional full
> compression with later 64 only?

I don't want to create further subparts -- if you split, say, a
Postscript file up into oodles of qp, 7bit and base64 parts, I'm
guessing that all the king's horses and all the king's men will have
some difficulty in putting Humpty Dumpty back together again.

So either qp or base64 will have to do.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: Unintended base64 encoding
  1999-07-09 18:09             ` Lars Magne Ingebrigtsen
  1999-07-09 18:44               ` François Pinard
@ 1999-07-09 19:43               ` Aaron M. Ucko
  1999-07-09 20:01                 ` François Pinard
       [not found]               ` <udl4sjdbodp.fsf@tux.mit.edu>
  2 siblings, 1 reply; 14+ messages in thread
From: Aaron M. Ucko @ 1999-07-09 19:43 UTC (permalink / raw)
  Cc: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Seems nice.  I've now written the function, but what is the switchover
> point between qp and base64?  Math genius wanted!

*raises hand* Ooh, ooh, call on me!

QP adds an overhead of roughly 2 characters per non-ASCII character.
("Roughly" because the line-wrapping stuff makes that number slightly
off.)  On the other hand, base64 always adds an overhead of 1/3
character per character.  The breakeven point occurs when these
overheads are equal; i.e., when about 1/6 of the characters are non-ASCII.

-- 
Aaron M. Ucko, KB1CJC <amu@mit.edu> (finger amu@monk.mit.edu)


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

* Re: Unintended base64 encoding
       [not found]               ` <udl4sjdbodp.fsf@tux.mit.edu>
@ 1999-07-09 20:00                 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-07-09 20:00 UTC (permalink / raw)


amu@MIT.EDU (Aaron M. Ucko) writes:

> > Seems nice.  I've now written the function, but what is the switchover
> > point between qp and base64?  Math genius wanted!
> 
> *raises hand* Ooh, ooh, call on me!

:-)

> QP adds an overhead of roughly 2 characters per non-ASCII character.
> ("Roughly" because the line-wrapping stuff makes that number slightly
> off.)  On the other hand, base64 always adds an overhead of 1/3
> character per character.  The breakeven point occurs when these
> overheads are equal; i.e., when about 1/6 of the characters are non-ASCII.

Okidoke; I've now made 0.1666 the limit.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: Unintended base64 encoding
  1999-07-09 19:43               ` Aaron M. Ucko
@ 1999-07-09 20:01                 ` François Pinard
  0 siblings, 0 replies; 14+ messages in thread
From: François Pinard @ 1999-07-09 20:01 UTC (permalink / raw)
  Cc: Lars Magne Ingebrigtsen, ding, Marc Nadeau

amu@MIT.EDU (Aaron M. Ucko) writes:

> > [...] Math genius wanted!
> *raises hand* Ooh, ooh, call on me!

Please forgive me this tiny intrusion.  One of my friends is an active and
involved SF fan.  This is only recently that we communicated electronically.
I laughed a great deal when I saw his signature, with this quote appended:

   "Those who believe in telekinesis, raise my hand!"

Back to our entertaining Gnus-ish efforts :-)

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard



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

end of thread, other threads:[~1999-07-09 20:01 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-11 18:36 X-face display patch Hrvoje Niksic
1999-06-11 18:40 ` Karl Kleinpaste
1999-06-11 18:46   ` Unintended base64 encoding Karl Kleinpaste
1999-06-13  1:17     ` Lars Magne Ingebrigtsen
1999-06-13  2:38       ` Karl Kleinpaste
1999-06-15 11:41       ` Toby Speight
1999-07-03  9:17         ` Lars Magne Ingebrigtsen
1999-07-09 11:55           ` Toby Speight
1999-07-09 18:09             ` Lars Magne Ingebrigtsen
1999-07-09 18:44               ` François Pinard
1999-07-09 19:18                 ` Lars Magne Ingebrigtsen
1999-07-09 19:43               ` Aaron M. Ucko
1999-07-09 20:01                 ` François Pinard
     [not found]               ` <udl4sjdbodp.fsf@tux.mit.edu>
1999-07-09 20:00                 ` Lars Magne Ingebrigtsen

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).