From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uGiML8YmtF8QdgAA0tVLHw (envelope-from ) for ; Tue, 17 Nov 2020 19:38:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QE9tK8YmtF9fKgAA1q6Kng (envelope-from ) for ; Tue, 17 Nov 2020 19:38:46 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6A2089403AD for ; Tue, 17 Nov 2020 19:38:44 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D772E28C4D; Tue, 17 Nov 2020 14:38:35 -0500 (EST) Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by mail.notmuchmail.org (Postfix) with ESMTPS id 2D31A28824 for ; Tue, 17 Nov 2020 14:38:33 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8BB265345F for ; Tue, 17 Nov 2020 20:38:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bagbyL4Hem21 for ; Tue, 17 Nov 2020 20:38:29 +0100 (CET) From: "Jorge P. de Morais Neto" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1605641908; bh=iLq+16sSdtkTg3eo2vnoy/VhQZv9oFlxBkx1St8F8eE=; h=From:To:Subject:Date; b=T0KF+olTptnIB02cpvCNW0X5xj//6TfvmAIHJRp2T5GcK7NPK47sKWLoodCmQAfQP BvgSeMV21TVS/gdcY9sbP6NpkvOMemsTL9PBgdPbYQXUzcNnyut1XE7Zf9gP60OVps 7dAF0CGQvJDlGqlt77xQZRId2B0HBhZzOdZetWhaV6hPyjNeujJFcVJ353On9J38K3 mtrRnewL52WRionbn9gUMM4Y/RWkDrWnVUkV+oO3RQNzB3h5y7Brff35gFgzbg2Z3R 063HbBkRl9TqbUZCvmPRH+E4Tga08ZzbVJIRaxA6oULp5g+zfclx4/6OHIigfNz7nr mc0nwNpPtbgeA== To: notmuch@notmuchmail.org Subject: Programmatically set "From", Ispell dictionary and signature based on recipient Mail-Followup-To: notmuch@notmuchmail.org Date: Tue, 17 Nov 2020 16:38:24 -0300 Message-ID: <87h7pnpydr.fsf@disroot.org> Mime-Version: 1.0 Message-ID-Hash: 7F2OFHNFODRHT5LZRBDF25Y7VMMFTBLG X-Message-ID-Hash: 7F2OFHNFODRHT5LZRBDF25Y7VMMFTBLG X-MailFrom: jorge+list@disroot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Scanner: ns3122888.ip-94-23-21.eu X-Spam-Score: 6.00 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=disroot.org header.s=mail header.b=T0KF+olT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=disroot.org (policy=quarantine); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam: Yes X-TUID: KAAYCfD7koMa Hi. I use Notmuch 0.31.2 on Emacs 27.1.50. When I compose mail to a mailing list, I would like Emacs to automatically set: 1. "From" header to ~"Jorge P. de Morais Neto" ~ 2. Ispell dictionary to "en_US" 3. ~message-signature-file~ to "~/.signature--english" (and it should actually insert the corresponding file as signature) Is there an easy way to do it, or do I have write Elisp and put it in some Message mode hook? Regards -- - - If an email of mine arrives at your spam box, please notify me. - Please adopt free/libre formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z. - Free/libre software for Replicant, LineageOS and Android: https://f-droid.org - [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]