From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6CZVHo0yJmHEdgEAgWs5BA (envelope-from ) for ; Wed, 25 Aug 2021 14:07:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SP4IGo0yJmH4ZAAAB5/wlQ (envelope-from ) for ; Wed, 25 Aug 2021 12:07:41 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D6B752418D for ; Wed, 25 Aug 2021 14:07:40 +0200 (CEST) Received: from localhost ([::1]:46470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIrgx-0004eq-Sx for larch@yhetil.org; Wed, 25 Aug 2021 08:07:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIrep-0002Gw-9s for emacs-orgmode@gnu.org; Wed, 25 Aug 2021 08:05:28 -0400 Received: from www.selma.hfmdk-frankfurt.de ([46.4.92.145]:33686 helo=mail.selma.hfmdk-frankfurt.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIrem-0008FE-7T for emacs-orgmode@gnu.org; Wed, 25 Aug 2021 08:05:26 -0400 Received: by mail.selma.hfmdk-frankfurt.de (Postfix, from userid 113) id AE1EAF60C63; Wed, 25 Aug 2021 14:05:18 +0200 (CEST) Received: from selma.hfmdk-frankfurt.de (ip-37-201-1-103.hsi13.unitymediagroup.de [37.201.1.103]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by mail.selma.hfmdk-frankfurt.de (Postfix) with ESMTPSA id 8B268F60918 for ; Wed, 25 Aug 2021 14:05:16 +0200 (CEST) Received: by selma.hfmdk-frankfurt.de (Postfix, from userid 1000) id A71EE3CE0DBE; Wed, 25 Aug 2021 14:05:15 +0200 (CEST) Date: Wed, 25 Aug 2021 14:05:15 +0200 From: Orm Finnendahl To: emacs-orgmode@gnu.org Subject: org-capture config broken Message-ID: Mail-Followup-To: emacs-orgmode@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Disclaimer: Why are you listening to me? X-Operating-System: GNU/Linux Organization: Hochschule =?utf-8?B?ZsO8?= =?utf-8?Q?r?= Musik und Darstellende Kunst Frankfurt, Frankfurt, Germany Received-SPF: pass client-ip=46.4.92.145; envelope-from=orm.finnendahl@selma.hfmdk-frankfurt.de; helo=mail.selma.hfmdk-frankfurt.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629893261; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=4hj+Dg8++zpR9c6pq9OWkYE1kJZQgAjbWdIulhFhjEg=; b=Rx/uzAua0qM6dDqoGifhFl7dDwJeUGtOa+VMaWR5uCa6lbBTBk25OpPwB9zR4sZryDh/2k mqhN6PpYMscrOst0VNvevGD7cLlDeezwmo8fZ1BZQf/Xfhg1ObGl9TvP/moCTtnMLUWq2z ks0LXrNzGpeBl9KcM9m854ja7xKfTjtsbh8y9qY0wCX0DiB6HLZhHaEZ9DPcvj9EeGgIFk t0Te1+SGl+Swj4EhqwXi+L9J1oCg1vKAtHVgR9k9NGlh6us5iedKYXJfqGG+b0+UUi8BJP hCA+043EctoXF3hEKxmXhFeKsQKyts8hnGC8YZdNGAAmwoChZsy+jxOlEl02rQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629893261; a=rsa-sha256; cv=none; b=FiZbCt+o79a9OjdvFIGkEc40pdo5mO3EP1qS/PXdWVLe8qiIN98qV5aWwEQm4mwTPIYADb 8+y5LgUOjCwGYwTn9ko5tvZ5hO578lDRse7Ow6tjj2xANNRmVBP+W4z7568U+PrzCmU4x1 vCYTAqcxUyaB/yNZfgFpUP4oleJn1chRFBoOwaLqxohA4AHmjV0GjFPlsxs+0LQn1N1sAB H4SxYbzbylx8JihcgodBZEMQrc/4BmezwAEyrcpB4IRJJOmQ7/Z4cgh+Isi7YFwY0RN8Mg jXdpETJNqMZVFudvBuX+ABP2AmaQUpEU/XKjeByPa/7ed8cOQSkYMAQkGB3GQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=hfmdk-frankfurt.de (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.33 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=hfmdk-frankfurt.de (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: D6B752418D X-Spam-Score: -2.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: iCsLBhXciRCM Hi, I use a custom script (dating back to a post from 2013) to capture my mutt Emails using org-capture. It worked flawlessly but stopped working some time ago (I don't exactly know, when, probably last year). I assume the code has changed and doesn't accept the syntax of the org-protocol line any more. I'm calling emacsclient with the following command: emacsclient org-protocol:/capture:/m/mutt:YSYuf6sKfSbwtIeB@example.com/mail/%20%20Subject%3A%20test%0A%20%20%20%20From%3A%20Unknown%20%3Cdummy%40example.com%3E It fails printing "*ERROR*: Wrong type argument: arrayp, nil" in the terminal and posts "Greedy org protocol handler. Killing client" in the minibuffer. The emacsclient commmand above is generated with a perl script using uri_escape for everything after /mail/. The single slashes in the protocol line of the emacsclient command seem strange, but I couldn't find any hint in the internet how the syntax is supposed to be for a certain org-capture-template. Maybe someone can help to debug it? Below is my init.el configuration. Best, Orm (setq org-capture-templates (quote (("m" "Mail" entry (file+headline "~/work/gtd.org" "Incoming") "* %^{Title}\n Source: %u, %:link\n %i" :empty-lines 1) ;; ... more templates here ... ))) ;; ensure that emacsclient will show just the note to be edited when invoked ;; from Mutt, and that it will shut down emacsclient once finished; ;; fallback to legacy behavior when not invoked via org-protocol. (add-hook 'org-capture-mode-hook 'delete-other-windows) (setq my-org-protocol-flag nil) (defadvice org-capture-finalize (after delete-frame-at-end activate) "Delete frame at remember finalization" (progn (if my-org-protocol-flag (delete-frame)) (setq my-org-protocol-flag nil))) (defadvice org-capture-kill (after delete-frame-at-end activate) "Delete frame at remember abort" (progn (if my-org-protocol-flag (delete-frame)) (setq my-org-protocol-flag nil))) (defadvice org-protocol-capture (before set-org-protocol-flag activate) (setq my-org-protocol-flag t))