Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: MML multipart tag -- what does it do?
Date: Fri, 03 Aug 2001 19:35:49 +0200	[thread overview]
Message-ID: <ilur8utavwq.fsf@barbar.josefsson.org> (raw)
In-Reply-To: <vafwv4lt7nw.fsf@INBOX.auto.gnus.tok.lucy.cs.uni-dortmund.de> (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Fri, 03 Aug 2001 18:44:35 +0200")

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> Okay, the examples in the emacs-mime info file are fairly clear.  But
> what they leave open to interpretation: suppose I compose a message,
> and the very first line of the body is a multipart tag, followed by a
> couple of part tags.
> 
> What does the whole message look like that comes out?

At the top-level it's a multipart that contains a couple of parts.

> You see, if I just put several part tags in the body, then I get a
> multipart/mixed message, so maybe the same thing happens with a
> multipart tag.
> 
> I kinda suspect that under some circumstances the top-level MML tag
> will become the Content-Type of the whole message, whereas under some
> circumstances the Content-Type of the whole message will me
> multipart/mixed with the MML tags given as `children' of that.

You can't have more than one MIME part in a message without some kind
of multipart.  So if you put more than one <part> in your message, it
implicitely adds a <multipart> at the top.

Maybe what's confusing is the </part> tag -- I don't think it's ever
necessary.  Maybe because there is a close tag you might believe it's
possible to say e.g.

<part>
foo
<part>
bar
</part>
</part>

which isn't unreasonable, but it doesn't work that way.  Maybe the
Insert/Attach/etc commands shouldn't insert </part> or </multipart>,
just because they only add confusion and no semantic.

All the MML commands ends when a new command of the same type is
inserted, I think.  There's no need for </part> or </multipart>.
Maybe someone could try to come up with a counter-example..


  reply	other threads:[~2001-08-03 17:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-03 16:44 Kai Großjohann
2001-08-03 17:35 ` Simon Josefsson [this message]
2001-08-03 18:16   ` ShengHuo ZHU
2001-08-03 17:52 ` ShengHuo ZHU
2001-08-03 19:21   ` Kai Großjohann
2001-08-03 21:05     ` Nuutti Kotivuori
2001-08-04 15:42       ` Florian Weimer
2001-08-04 17:00         ` Simon Josefsson
2001-08-05 16:06           ` Florian Weimer
2001-08-05 19:54             ` Simon Josefsson
2001-08-17 10:57           ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ilur8utavwq.fsf@barbar.josefsson.org \
    --to=jas@extundo.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).