From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: How can I get attachments to stick and actually be sent with an email using 27.0.91? Date: Sat, 20 Jun 2020 12:40:17 +0100 Message-ID: <87k102artq.fsf@skimble.plus.com> References: <877dw4cn61.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="24749"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 20 13:41:15 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmbrz-0006K4-S0 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 20 Jun 2020 13:41:11 +0200 Original-Received: from localhost ([::1]:40666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmbry-0005vz-VC for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 20 Jun 2020 07:41:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmbrZ-0005sp-Oi for help-gnu-emacs@gnu.org; Sat, 20 Jun 2020 07:40:46 -0400 Original-Received: from avasout06.plus.net ([212.159.14.18]:46177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmbrX-0003SD-6H for help-gnu-emacs@gnu.org; Sat, 20 Jun 2020 07:40:45 -0400 Original-Received: from london.london ([195.213.72.179]) by smtp with ESMTPA id mbrPjPY0Ykvt5mbrQjZYyd; Sat, 20 Jun 2020 12:40:37 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plus.com; s=042019; t=1592653237; bh=oq2NLVgAtFIPTnu1A/MIfiTc+8VlbF+NourMTYieGRU=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=qHwD6K7L8tAcxhIKF5zRx+j2V0wpiKjjQzg1jZMk1dLfe7K4qSgS6I+WtUkrbJCMA 5zHrzWzAYyjOpLeouVHB/8H95UDXQVvKgCkm+cadiIVmV+ZvWq5bDbXTEvsP1i3S/Z A3fhlXaieGin/EioYq6BwBgPMR50TD4ejPYOFiQ5jkfTbASX9Peq8ngGEvb3PV+8em p/0VVQEX7/yFG8f37E3efWG6Tn1yUjmWbLYmr3kmPuQ/H2f4HzHylDZm3m9HjduNlo PFb15QpVDdTrNXKfrzGpjOtrsaUNwGLpNPezZ5Hc3Wh+N2IDsZfZs/pxO1DLjiXf7g udRFPROehcnwQ== X-Clacks-Overhead: "GNU Terry Pratchett" X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=ENCdL2RC c=1 sm=1 tr=0 a=b9oteIU6sQwwACWZwFHMwA==:117 a=b9oteIU6sQwwACWZwFHMwA==:17 a=iRZporoAAAAA:8 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=bAHfVwKlAAAA:8 a=NoRnm-WRJeND-0rD31YA:9 a=2hAdzihPo9EGM_FT:21 a=9cgIfaXu1enIyEwJ:21 a=NOBgFS-JBQ2l-kSd6-zu:22 a=diwpeB1DDhFXqWA7J4Up:22 a=KxyM1Xthmv57RbWRIpnN:22 a=fjrkRJ71zQ2jzMzczd-K:22 X-AUTH: skimble@:2500 In-Reply-To: (Stefan Monnier's message of "Thu, 18 Jun 2020 13:16:10 -0400") X-CMAE-Envelope: MS4wfIA1zingJ7Jy2IfrpPCWyj9Cm8QlN40T4EPA5F9neYXZWYby1ju+sLCFk6kTcysw6GFI/ZVOOGj0i5lNKAjnWKpZa7BUMVs6YazveXQ+Xq8c99RueWP+ 9ok9t19Yhyz86aIXeYkwOm7Emk5/U/mCoY7C8yQOInAHm0ISa9GnKB1D5suFs3+5qsQpO/PGYWZfIQ== Received-SPF: none client-ip=212.159.14.18; envelope-from=boudiccas@skimble.plus.com; helo=avasout06.plus.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/20 07:40:37 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123408 Archived-At: =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Stefan Monnier writes: >> I've just spent a frustrating 20 minutes trying to attach a pdf file to >> an email to be sent with the email itself. I've tried attaching a file, >> attaching a buffer, and also attaching an external pdf file. None of >> them were successful, so how can I do it please? > > I do > > M-x *-att-fil RET > > which completes to `mml-attach-file`. > Thanks Stefan. I've been trying this again and I've now got an error report which says - =2D --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (void-function mm-substring-no-properties) (mm-substring-no-properties file) (mml-insert-empty-tag 'part 'type type 'filename (mm-substring-no-propert= ies file) 'disposition (or disposition "attachment") 'description descripti= on) (let ((head (if (and (message-in-body-p) (not mml-attach-files-at-end)) n= il (point)))) (if (or head mml-attach-files-at-end) (goto-char (point-max))= ) (mml-insert-empty-tag 'part 'type type 'filename (mm-substring-no-propert= ies file) 'disposition (or disposition "attachment") 'description descripti= on) (or (eq mail-user-agent 'message-user-agent) (setq mail-encode-mml t)) = (if (or head mml-attach-files-at-end) (progn (if (pos-visible-in-window-p) = nil (message "The file \"%s\" has been attached at the end of the ..." (fil= e-name-nondirectory file))) (goto-char head)))) mml-attach-file("/home/boudiccas/.emacs.d/attachments/land-registry..." "= application/pdf" "charge 1" "attachment") funcall-interactively(mml-attach-file "/home/boudiccas/.emacs.d/attachmen= ts/land-registry..." "application/pdf" "charge 1" "attachment") call-interactively(mml-attach-file nil nil) command-execute(mml-attach-file) =2D --8<---------------cut here---------------end--------------->8--- =20=20=20=20=20=20 So how can I get round this please, as my lisp knowledge or/and skills coul= d easily be bettered by a goldfish? Thanks Sharon.=20=20 =2D --=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk DrugFacts =3D https://www.drugfacts.org.uk Debian 10.2, fluxbox 1.3.7, emacs 27.0.91, org 9.3.7 =2D----BEGIN PGP SIGNATURE----- iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl7t9aYbHGJvdWRpY2Nh c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbOQEQAMUEcttm9/+DNVtDX5l7 M7IAu0wccGC7ni9/b7CtUSd0/rRa+RTitc66jsdaoWjTJqw0NkIphJsenWD9wV6Q SdnSEUmkxabZDR16sMgtCK0B50+jh/SOTqtgKch9ql85gGs1RHmGLJD8JhUmAIgl RfDlhyxswJtyv6TUuxTEyLYNzibsesgNpFKZcTSef1MHN61utn3apMn/Tik6l7dZ tXQpjIQqXJUMXJf1KyzU//cXPGjLT7c6HDTK4mPzE8iKAlkEZp2XpPlxDQyhvUYJ ElWMY+GnDfES494K/xk87QXU+t+5C9KEjJm4UL4hB9IjfAl+LWMH6fwYS0QRjEJF R1ybqs5LnZVQm/Pp9A8W7lWwoTD3Vamb6YoGrrLx12Q1tyOjd0aIQ7dpxMyMfL0D rRXW63gueDa97ovNCEeZ8Nz+P5T2evSMdqbFm2bCL+0qfiDaMQyPHB2S/9i3cdyO BOgRhB9SgjfG3II3dYs7BnJ6tBHCNXpRGbVSVGqo8Q76cYIo/yuztVCmJKIOqfrz +T0IWv1ao/73hIChKDxmwvYUoF+VKIN6ESxHkS00GfBW3qFkNUHUYk+U9Z0LETHa TmCC/zIa4ts8VowHBdRF6ma48Qbhlrpz1bGsBeFdn9f96IWfNOVvpSh9r4ke+4Gh jCdVfKfwJChly7sz7Ae+1BFP =3DQMXX =2D----END PGP SIGNATURE-----