unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Robert Pluim <rpluim@gmail.com>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: How do attachments in message-mode work?
Date: Sun, 18 Mar 2018 08:40:36 +0100	[thread overview]
Message-ID: <87lgepsuff.fsf@mbork.pl> (raw)
In-Reply-To: <87a7vdjsc4.fsf@gmail.com>


On 2018-03-12, at 15:12, Robert Pluim <rpluim@gmail.com> wrote:

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

Well, thanks.

Actually, I succeeded.  I will blog about it one day.

Thanks

-- 
Marcin Borkowski
http://mbork.pl



  reply	other threads:[~2018-03-18  7:40 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
2018-03-18  7:40   ` Marcin Borkowski [this message]
     [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=87lgepsuff.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rpluim@gmail.com \
    /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).