Gnus development mailing list
 help / color / mirror / Atom feed
* Saving gzipped MIME parts.
@ 1999-05-02 16:55 Gareth Jones
  1999-06-12  5:38 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Gareth Jones @ 1999-05-02 16:55 UTC (permalink / raw)


If a MIME part is application/octet-stream then jka is skipped to
prevent files being compressed twice etc.  But people sometimes send
them as application/x-compressed or application/x-gzip which do get
compressed when saved.  Is there a good solution to this?  For
instance, should mm-save-part suppress jka if the extension of the
attachment's filename is the same as the extension that the filename
to which it's being saved?

-- 
Gareth Jones

What is written without effort is in general read without pleasure.
S. Johnson


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

* Re: Saving gzipped MIME parts.
  1999-05-02 16:55 Saving gzipped MIME parts Gareth Jones
@ 1999-06-12  5:38 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-06-12  5:38 UTC (permalink / raw)


gdj1@gdjones.demon.co.uk (Gareth Jones) writes:

> If a MIME part is application/octet-stream then jka is skipped to
> prevent files being compressed twice etc.  But people sometimes send
> them as application/x-compressed or application/x-gzip which do get
> compressed when saved.  Is there a good solution to this?  For
> instance, should mm-save-part suppress jka if the extension of the
> attachment's filename is the same as the extension that the filename
> to which it's being saved?

Well, I think it would make sense to always suppress jka.  On the
other hand, perhaps not.  For such a trivial problem, it's rather
difficult.

The cases:

  1) The part is called thing.gz
     a) We let jka do its thing, and end up with something that is
        compressed twice
     b) We don't let jka do its thing, and we might end up with a
        file that's most likely compressed once

  2) The part is called thing, and the user adds ".gz"
     a) We let jka do its thing, and end up with something that is
        possibly compressed twice
     b) We don't let jka do its thing, and end up with a file
        that's most likely uncompressed

Whether the file is application/octet-stream or application/x-gzip
doesn't really help us that much.

Perhaps the sanest thing to do would be to disable jka, but enable it
if the user has edited the name to include ".gz".  Ick.

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


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

end of thread, other threads:[~1999-06-12  5:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-02 16:55 Saving gzipped MIME parts Gareth Jones
1999-06-12  5:38 ` 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).