* How do attachments in message-mode work?
@ 2018-03-12 12:49 Marcin Borkowski
2018-03-12 14:12 ` Robert Pluim
0 siblings, 1 reply; 5+ messages in thread
From: Marcin Borkowski @ 2018-03-12 12:49 UTC (permalink / raw)
To: Help Gnu Emacs mailing list
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.)
TIA,
--
Marcin Borkowski
http://mbork.pl
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How do attachments in message-mode work?
2018-03-12 12:49 Marcin Borkowski
@ 2018-03-12 14:12 ` Robert Pluim
2018-03-18 7:40 ` Marcin Borkowski
0 siblings, 1 reply; 5+ messages in thread
From: Robert Pluim @ 2018-03-12 14:12 UTC (permalink / raw)
To: Marcin Borkowski; +Cc: Help Gnu Emacs mailing list
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How do attachments in message-mode work?
2018-03-12 14:12 ` Robert Pluim
@ 2018-03-18 7:40 ` Marcin Borkowski
0 siblings, 0 replies; 5+ messages in thread
From: Marcin Borkowski @ 2018-03-18 7:40 UTC (permalink / raw)
To: Robert Pluim; +Cc: Help Gnu Emacs mailing list
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-03-18 7:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.10456.1520859044.27995.help-gnu-emacs@gnu.org>
2018-03-12 13:18 ` How do attachments in message-mode work? Emanuel Berg
2018-03-18 7:40 ` Marcin Borkowski
2018-03-12 12:49 Marcin Borkowski
2018-03-12 14:12 ` Robert Pluim
2018-03-18 7:40 ` Marcin Borkowski
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).