From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Abdo Haji-Ali Newsgroups: gmane.emacs.bugs Subject: bug#34654: Attaching a file with a new name in a message Date: Mon, 25 Feb 2019 18:42:05 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="118655"; mail-complaints-to="usenet@blaine.gmane.org" To: 34654@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 25 21:40:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyN2u-000Uju-IF for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Feb 2019 21:40:16 +0100 Original-Received: from localhost ([127.0.0.1]:44073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyN2t-0004yV-Kg for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Feb 2019 15:40:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyN2m-0004yI-KF for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2019 15:40:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyN2k-0006Tu-En for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2019 15:40:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38229) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gyN2g-0006Rp-6b for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2019 15:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gyN2f-00040k-TL for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2019 15:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Abdo Haji-Ali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Feb 2019 20:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34654 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155112717415369 (code B ref -1); Mon, 25 Feb 2019 20:40:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Feb 2019 20:39:34 +0000 Original-Received: from localhost ([127.0.0.1]:51773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyN2E-0003zp-1F for submit@debbugs.gnu.org; Mon, 25 Feb 2019 15:39:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyLDe-0001Ek-Nk for submit@debbugs.gnu.org; Mon, 25 Feb 2019 13:43:15 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:33284) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gyLDZ-00023E-DX for submit@debbugs.gnu.org; Mon, 25 Feb 2019 13:43:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyLDY-0002fz-2V for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2019 13:43:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyLDX-0001zO-9X for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2019 13:43:07 -0500 Original-Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:39563) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gyLDW-0001jD-Ui for bug-gnu-emacs@gnu.org; Mon, 25 Feb 2019 13:43:07 -0500 Original-Received: by mail-wm1-x333.google.com with SMTP id z84so189244wmg.4 for ; Mon, 25 Feb 2019 10:42:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8Zi9gDcpgvkQ+f+A6rpjVIJnHZS9bBhaqFj/Zs5i0eQ=; b=FbE9YtjRCKsAjM7/OHzpoLJUgg3Ttg5Ga5cGiUJXIBKM3No5qZQqYKZKQx2ZERBrjz ZjSy6s/q5C9o/HUvpZlDihRtuDOhPxxFsKFdmsAJUIxMLdzuHkHpcF6s37F2TSVQAwsI b92CVNf8fEDBg8+ynI1cZbJ1hRqEckNCTvdkXOc99viN82BiCN21rUUr7LH7hvPdjjYy BEWHKmzX7W4qtxrCZ4Pa2WBi9PU/N1efaTf7FzQsEpbl6jGhSHnyWjFX9jcpMTqSIMCF C9x7vNpWPNA7FEkF7iBV71NsDk+1HMCObrICuHP/gKG0HjOnXJnte1Yp8MzKN9hvuUS0 3LkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8Zi9gDcpgvkQ+f+A6rpjVIJnHZS9bBhaqFj/Zs5i0eQ=; b=IE4Zih49kIky+ZQDFSbq233HggDjHtcL7m+cjx4EXb8Jz9ZY/+qGjbix932e8Kyjho kmMRI75vlOPdsg7AnwsDIuZ1ZwluWcgcRtkOH3B+FmZ7ILKLLQQKHdUTe3pVEoD8bgKG s237auWuHpqULkcq/ELvcMxHilYQ4Arh+z7Mlo+cs0cXnnKRKimGIdnII4qKRUbvF8zi FNglUIvk3kSdgfvah6UYqlqmCkiqKcZ/iblnSwWUv7zjN7vQ4hqCCUX87cJGKge7KdBf fKk0jUKT9EVJuWsnCvkgVI2ZdzbvxumbyViPKh53prKMSY5Rkc0vfdddN1NF+kSDcQpP lb6g== X-Gm-Message-State: AHQUAuak9Vhp6+xZX4YjJPmhW1e1ORnOgczoxIPZXe6Smryd9OfS2k6H SHI5dZ+O880So3QDwv0NR0twSumMs+f+Rwo8chavCAWT X-Google-Smtp-Source: AHgI3IZQWvPPr65MhP3Hb9TvwSEjIB6gkH6nhszKGVGakmhmiVHU9DypdTWLndVwIy/ndgAJM2GWNNGRh0fu9lOX2XI= X-Received: by 2002:a1c:1fc8:: with SMTP id f191mr137673wmf.110.1551120161625; Mon, 25 Feb 2019 10:42:41 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 25 Feb 2019 15:39:32 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155778 Archived-At: Hello, I am using Emacs 26.1 to send my emails. While writing an email, I attach files by calling `mail-attach-file` (bound to C-c C-a on my setup) I usually want to rename the file before sending so that my local file name doesn't appear to the recipient. I found in the docs that setting the properties 'recipient-filename' or 'name' in the tag should do the trick. However, this doesn't seem to be the case, since my recipients are still receiving files with my original filenames. Looking at the raw message I found in the header Content-Disposition: attachment; filename="old-name.pdf" Even when I set the 'recipient-filename' and 'name' properties. Looking through the source, it seems that line 904 in mml.el always sets the Content-Disposition filename to the original filename, disregarding the 'recipient-filename' and 'name' properties. Is this intentional? Is there another to achieve what I want?