unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: How do attachments in message-mode work?
Date: Mon, 12 Mar 2018 15:12:27 +0100	[thread overview]
Message-ID: <87a7vdjsc4.fsf@gmail.com> (raw)
In-Reply-To: <87k1uhfogb.fsf@mbork.pl> (Marcin Borkowski's message of "Mon, 12 Mar 2018 13:49:56 +0100")

Marcin Borkowski <mbork@mbork.pl> writes:

> Hi all,
>
> I know that attachments in message-mode are just inserted strings of the
> form like
>
> "<hash part type="image/jpeg" filename="..." disposition=attachment>
> <hash /part>"
>
> where "hash" is an actual hash character.
>
> Where can I find the code responsible for parsing them?  I'd like to
> know whether I could add another attribute (like "type", "filename", or
> "disposition") and be sure it is going to be ignored.  (I want to hack
> adding attachments so that the size is displayed along with other data.
> I'd like also to change faces a bit, so that the values of the
> attributes are more prominent, but I do not expect any troubles there.)

It's all in mml.el, specifically mml-parse-1. Good luck.

Robert



  reply	other threads:[~2018-03-12 14:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-12 12:49 How do attachments in message-mode work? Marcin Borkowski
2018-03-12 14:12 ` Robert Pluim [this message]
2018-03-18  7:40   ` Marcin Borkowski
     [not found] <mailman.10456.1520859044.27995.help-gnu-emacs@gnu.org>
2018-03-12 13:18 ` Emanuel Berg
2018-03-18  7:40   ` Marcin Borkowski

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87a7vdjsc4.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mbork@mbork.pl \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).