Gnus development mailing list
 help / color / mirror / Atom feed
* Mail digest and MIME headers
@ 2001-02-06 13:08 Per Abrahamsen
  2001-02-06 14:09 ` ShengHuo ZHU
  0 siblings, 1 reply; 8+ messages in thread
From: Per Abrahamsen @ 2001-02-06 13:08 UTC (permalink / raw)



Why does "gnus-uu-digest-mail-forward" insert 

        MIME-Version: 1.0
        Content-Type: text/plain; charset=us-ascii

in each digested message?  This is the default content type, so there
should be no reason to insert the headers.



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

* Re: Mail digest and MIME headers
  2001-02-06 13:08 Mail digest and MIME headers Per Abrahamsen
@ 2001-02-06 14:09 ` ShengHuo ZHU
  2001-02-06 22:41   ` Per Abrahamsen
  0 siblings, 1 reply; 8+ messages in thread
From: ShengHuo ZHU @ 2001-02-06 14:09 UTC (permalink / raw)


Per Abrahamsen <abraham@dina.kvl.dk> writes:

> Why does "gnus-uu-digest-mail-forward" insert 
> 
>         MIME-Version: 1.0
>         Content-Type: text/plain; charset=us-ascii
> 
> in each digested message?  This is the default content type, so there
> should be no reason to insert the headers.

Fixed.

ShengHuo

-- 
(setq gnus-posting-styles '((".*" (signature-file "~/.signature"))))



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

* Re: Mail digest and MIME headers
  2001-02-06 14:09 ` ShengHuo ZHU
@ 2001-02-06 22:41   ` Per Abrahamsen
  2001-02-06 22:53     ` Russ Allbery
  2001-02-06 23:09     ` ShengHuo ZHU
  0 siblings, 2 replies; 8+ messages in thread
From: Per Abrahamsen @ 2001-02-06 22:41 UTC (permalink / raw)


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

ShengHuo ZHU <zsh@cs.rochester.edu> writes:

> Per Abrahamsen <abraham@dina.kvl.dk> writes:
> 
> > Why does "gnus-uu-digest-mail-forward" insert 
> > 
> >         MIME-Version: 1.0
> >         Content-Type: text/plain; charset=us-ascii
> > 
> > in each digested message?  This is the default content type, so there
> > should be no reason to insert the headers.
> 
> Fixed.

Thanks, but does it has to add the MIME-version header?  When there is
no other MIME headers?

I also found a problem with the first "Topics" entry, there is an
empty line before the "Subject: " header which makes it part of the
body, instead of part of the header.  This patch fixes that:

2001-02-06  Per Abrahamsen  <abraham@dina.kvl.dk>

	* gnus-uu.el (gnus-uu-save-article): Make the topics summary a
	message/rfc822.

Index: gnus-uu.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-uu.el,v
retrieving revision 6.2
diff -c -r6.2 gnus-uu.el
*** gnus-uu.el	2000/12/28 17:44:20	6.2
--- gnus-uu.el	2001/02/06 22:35:10
***************
*** 886,892 ****
  	      (when (and message-forward-as-mime gnus-uu-digest-buffer)
  		;; The default part in multipart/digest is message/rfc822.
  		;; Subject is a fake head.
! 		(insert "

[-- Attachment #2: Type: text/plain, Size: 317 bytes --]

\nSubject: Topics\n\n"))
  	      (insert "Topics:\n")))
  	(when (not (eq in-state 'end))
  	  (setq state (list 'middle))))
--- 886,892 ----
  	      (when (and message-forward-as-mime gnus-uu-digest-buffer)
  		;; The default part in multipart/digest is message/rfc822.
  		;; Subject is a fake head.
! 		(insert "

[-- Attachment #3: Type: message/rfc822, Size: 144 bytes --]




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

* Re: Mail digest and MIME headers
  2001-02-06 22:41   ` Per Abrahamsen
@ 2001-02-06 22:53     ` Russ Allbery
  2001-02-06 23:04       ` Per Abrahamsen
  2001-02-06 23:09     ` ShengHuo ZHU
  1 sibling, 1 reply; 8+ messages in thread
From: Russ Allbery @ 2001-02-06 22:53 UTC (permalink / raw)


Per Abrahamsen <abraham@dina.kvl.dk> writes:

> Thanks, but does it has to add the MIME-version header?  When there is
> no other MIME headers?

It's not strictly necessary, but it does say to other MUAs that you're
guaranteeing that they can assume all of the standard defaults for the
other MIME parameters, whereas if you leave off MIME-Version you're saying
that the message may not comply with MIME and could be in an unknown
character set.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>



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

* Re: Mail digest and MIME headers
  2001-02-06 22:53     ` Russ Allbery
@ 2001-02-06 23:04       ` Per Abrahamsen
  2001-02-07  0:45         ` Russ Allbery
  0 siblings, 1 reply; 8+ messages in thread
From: Per Abrahamsen @ 2001-02-06 23:04 UTC (permalink / raw)


Russ Allbery <rra@stanford.edu> writes:

> It's not strictly necessary, but it does say to other MUAs that you're
> guaranteeing that they can assume all of the standard defaults for the
> other MIME parameters, whereas if you leave off MIME-Version you're saying
> that the message may not comply with MIME and could be in an unknown
> character set.

Does this reasoning apply to nested messages, such as messages within
MIME digests?  

For a top-level message, I agree it is a good tradeoff, because
unknown headers are hidden by most agents, even those that are not
MIME aware.



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

* Re: Mail digest and MIME headers
  2001-02-06 22:41   ` Per Abrahamsen
  2001-02-06 22:53     ` Russ Allbery
@ 2001-02-06 23:09     ` ShengHuo ZHU
  2001-02-06 23:16       ` Per Abrahamsen
  1 sibling, 1 reply; 8+ messages in thread
From: ShengHuo ZHU @ 2001-02-06 23:09 UTC (permalink / raw)


Per Abrahamsen <abraham@dina.kvl.dk> writes:

> ShengHuo ZHU <zsh@cs.rochester.edu> writes:
> 
> > Per Abrahamsen <abraham@dina.kvl.dk> writes:
> > 
> > > Why does "gnus-uu-digest-mail-forward" insert 
> > > 
> > >         MIME-Version: 1.0
> > >         Content-Type: text/plain; charset=us-ascii
> > > 
> > > in each digested message?  This is the default content type, so there
> > > should be no reason to insert the headers.
> > 
> > Fixed.
> 
> Thanks, but does it has to add the MIME-version header?  When there is
> no other MIME headers?
> 
> I also found a problem with the first "Topics" entry, there is an
> empty line before the "Subject: " header which makes it part of the
> body, instead of part of the header.  This patch fixes that:
> 
> 2001-02-06  Per Abrahamsen  <abraham@dina.kvl.dk>
> 
> 	* gnus-uu.el (gnus-uu-save-article): Make the topics summary a
> 	message/rfc822.

This patch is munged because of the mml tags.  Could you resent the
patch as an attachment?

ShengHuo

-- 
(setq gnus-posting-styles '((".*" (signature-file "~/.signature"))))



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

* Re: Mail digest and MIME headers
  2001-02-06 23:09     ` ShengHuo ZHU
@ 2001-02-06 23:16       ` Per Abrahamsen
  0 siblings, 0 replies; 8+ messages in thread
From: Per Abrahamsen @ 2001-02-06 23:16 UTC (permalink / raw)


ShengHuo ZHU <zsh@cs.rochester.edu> writes:

> This patch is munged because of the mml tags.  Could you resent the
> patch as an attachment?

I just committed it, hope that is ok.



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

* Re: Mail digest and MIME headers
  2001-02-06 23:04       ` Per Abrahamsen
@ 2001-02-07  0:45         ` Russ Allbery
  0 siblings, 0 replies; 8+ messages in thread
From: Russ Allbery @ 2001-02-07  0:45 UTC (permalink / raw)


Per Abrahamsen <abraham@dina.kvl.dk> writes:
> Russ Allbery <rra@stanford.edu> writes:

>> It's not strictly necessary, but it does say to other MUAs that you're
>> guaranteeing that they can assume all of the standard defaults for the
>> other MIME parameters, whereas if you leave off MIME-Version you're
>> saying that the message may not comply with MIME and could be in an
>> unknown character set.

> Does this reasoning apply to nested messages, such as messages within
> MIME digests?  

I'm fairly sure not.  Good point.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>



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

end of thread, other threads:[~2001-02-07  0:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-06 13:08 Mail digest and MIME headers Per Abrahamsen
2001-02-06 14:09 ` ShengHuo ZHU
2001-02-06 22:41   ` Per Abrahamsen
2001-02-06 22:53     ` Russ Allbery
2001-02-06 23:04       ` Per Abrahamsen
2001-02-07  0:45         ` Russ Allbery
2001-02-06 23:09     ` ShengHuo ZHU
2001-02-06 23:16       ` Per Abrahamsen

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