From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: David Edmondson Newsgroups: gmane.mail.notmuch.general,gmane.emacs.devel Subject: Re: message.el and browse-url.el interaction [was: Re: BUG: notmuch-emacs-mua wrong signing MML placement] Date: Fri, 13 Dec 2019 10:20:15 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="216681"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel-mXXj517/zsQ@public.gmane.org To: Tomi Ollila , notmuch-gxuj+Tv9EO5zyzON3hdc1g@public.gmane.org Original-X-From: notmuch-bounces-gxuj+Tv9EO5zyzON3hdc1g@public.gmane.org Fri Dec 13 11:20:26 2019 Return-path: Envelope-to: gmn-notmuch@m.gmane.org Original-Received: from arlo.cworth.org ([50.126.95.6]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ifi3e-000uBc-3K for gmn-notmuch@m.gmane.org; Fri, 13 Dec 2019 11:20:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 268776DE1373; Fri, 13 Dec 2019 02:20:23 -0800 (PST) Authentication-Results: arlo.cworth.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=dme-org.20150623.gappssmtp.com header.i=@dme-org.20150623.gappssmtp.com header.b="WDJ7bD8N"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org Original-Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 73-62CpM-7wQ; Fri, 13 Dec 2019 02:20:22 -0800 (PST) Original-Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 772806DE1374; Fri, 13 Dec 2019 02:20:22 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id F12556DE1374 for ; Fri, 13 Dec 2019 02:20:20 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org Original-Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3B4p3ujdT2ja for ; Fri, 13 Dec 2019 02:20:19 -0800 (PST) Original-Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by arlo.cworth.org (Postfix) with ESMTPS id 567176DE1373 for ; Fri, 13 Dec 2019 02:20:19 -0800 (PST) Original-Received: by mail-wm1-f68.google.com with SMTP id a5so5734596wmb.0 for ; Fri, 13 Dec 2019 02:20:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dme-org.20150623.gappssmtp.com; s=20150623; h=to:cc:subject:in-reply-to:references:from:date:message-id :mime-version; bh=vqda8h4ZYiGWMMdU+ea4CMqzFs5wozElOecg/0jQwKM=; b=WDJ7bD8NwAChhbeZ3rs4SxZEBgXDvCdpICCs5H1Q1swyuti5xl9XHvIaIeTfLW0Vpb jE6wipVQWSC+CAjlcIHohsI5D4/Zk89fOx6ga8bobhEnItQ842GmGvJC3o3RhoXWcIIE EPNCRdkmMigskjc6PS3Zz1KPVgyHvL53XoBst8k1cpQKjPZrmOYLaZzeEOM/+0YwNm13 2PCvlEQ5nxhCsvkWABy7Tj3UzP0bzcD7PrZNoJZOfUbKVzdH7e+yz5QnHUG782p8OMSB QyqGJX6BeTVb1FQrwzminwTHBuPLOe4fWQ2oWSZtw+N8aQpL/E5FBiH4TAB/KipOQEbJ wvuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:subject:in-reply-to:references:from:date :message-id:mime-version; bh=vqda8h4ZYiGWMMdU+ea4CMqzFs5wozElOecg/0jQwKM=; b=plGpKrHfAsiG4qwBbvt9nhZsII7DyI7BSwAoN3SJkXEk7YRDpJlU/TIz/LNKdADzJC vlye0O6qnAHXu20wNJnDRv1wv/BAO/zWwq6dsCGWmBMlF6z/oXtRI2Eyaj80EklnGMIB DuDt04hOhpYb7FlbrqgkogvB5qVt/wLHMqU8rkDkbSgdi8V1mvIYumGb+fOlUQcaDdMK 5Pw7K3+ESOGUjTzYDoELEmgMIvTeOWAP7ORvQmQnTOagtFN3/ymn4Y1RQSaChmhy71RH mW2dPcR68pfOISEGOz1VG0PFGNEKABhDniNHRS2bnvEqgN1IkKy0J7j31gEsFP/tZ4nT afYA== X-Gm-Message-State: APjAAAU3n3gBRxX6Tj8356xRBpqapPRaXVBRWsYzbex6aSnW+0Mpw0P1 X81/62ByimsoEIr22m2AjrXJ821sIHQ= X-Google-Smtp-Source: APXvYqyRCB9Gy+wzeqpQ9NMfJm4Nfg0XiyZz4g49x5SzjD+/MoZ3y/H5xC53ngaD9HlDzWw1gBzrTw== X-Received: by 2002:a1c:1fc5:: with SMTP id f188mr13128344wmf.55.1576232416805; Fri, 13 Dec 2019 02:20:16 -0800 (PST) Original-Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net. [81.149.164.25]) by smtp.gmail.com with ESMTPSA id a9sm433503wmm.15.2019.12.13.02.20.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2019 02:20:15 -0800 (PST) Original-Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 7b1b99cf; Fri, 13 Dec 2019 10:20:15 +0000 (UTC) In-Reply-To: X-HGTTG: heart-of-gold X-BeenThere: notmuch-gxuj+Tv9EO5zyzON3hdc1g@public.gmane.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: notmuch-bounces-gxuj+Tv9EO5zyzON3hdc1g@public.gmane.org Original-Sender: "notmuch" Xref: news.gmane.org gmane.mail.notmuch.general:28987 gmane.emacs.devel:243344 Archived-At: On Friday, 2019-12-13 at 09:33:11 +02, Tomi Ollila wrote: > Small update from my front -- looked message.el and (message-setup-1) > there in particular, and then tested the following code: > > (with-demoted-errors > (require 'notmuch) > (let ((message-signature-setup-hook message-signature-setup-hook)) > (add-hook 'message-signature-setup-hook > (lambda () (message-goto-body) (insert "testbody") > (if (/= (point) (line-beginning-position)) > (newline)))) > (notmuch-mua-mail "fred" nil nil nil > (notmuch-mua-get-switch-function)) > )) > > This has moderate chance of working, so I'll have to think it a bit > further (and clean up the code =D)... This seems like liberal abuse of `message-signature-setup-hook' :-) It's also message.el specific, which may not matter. The `compose-mail' argument approach should in principle work with all mail-user-agent settings. dme. -- Why stay in college? Why go to night school?