From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: How do attachments in message-mode work? Date: Sun, 18 Mar 2018 08:40:36 +0100 Message-ID: <87lgepsuff.fsf@mbork.pl> References: <87k1uhfogb.fsf@mbork.pl> <87a7vdjsc4.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1521358784 31478 195.159.176.226 (18 Mar 2018 07:39:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Mar 2018 07:39:44 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: Help Gnu Emacs mailing list To: Robert Pluim Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 18 08:39:40 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exSuq-00086J-2h for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Mar 2018 08:39:40 +0100 Original-Received: from localhost ([::1]:36182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exSws-0007eo-Js for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Mar 2018 03:41:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exSwC-0007dH-PK for help-gnu-emacs@gnu.org; Sun, 18 Mar 2018 03:41:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exSw9-0003AX-MM for help-gnu-emacs@gnu.org; Sun, 18 Mar 2018 03:41:04 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:51303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exSw9-0003A7-E6 for help-gnu-emacs@gnu.org; Sun, 18 Mar 2018 03:41:01 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 98AE7E676E; Sun, 18 Mar 2018 08:41:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6oaHLEpAyArx; Sun, 18 Mar 2018 08:40:55 +0100 (CET) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id DB9B1E6700; Sun, 18 Mar 2018 08:40:54 +0100 (CET) In-reply-to: <87a7vdjsc4.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116200 Archived-At: On 2018-03-12, at 15:12, Robert Pluim wrote: > Marcin Borkowski writes: > >> Hi all, >> >> I know that attachments in message-mode are just inserted strings of the >> form like >> >> " >> " >> >> 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