From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id cM7vHNntw2VFIwEA62LTzQ:P1 (envelope-from ) for ; Wed, 07 Feb 2024 21:53:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cM7vHNntw2VFIwEA62LTzQ (envelope-from ) for ; Wed, 07 Feb 2024 21:53:45 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=cam.ac.uk header.s=20230328.ppsw header.b=sdmpuABI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=cam.ac.uk (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707339225; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NgQNsxc4gq7MdUl432hDnJG9QtCBRYrWE9ZGrbfIIXI=; b=A6trOZkCE9JwSlFlKSaSiSXP0RlxGk2VLexaJvjASckifDOGqMMvH8ctBGgZ5PCWAJznqW d6/aROQQm/yZLbZe2/DJ9rhEWNpM8d5zbd7j2A8A7FMTftXGkip0cwJJWpo24AZWrhjXgg rSqml2boRcMMwVLBxkxNuPjOxMZOe2/hvcSvXpC6YKRqzcZF6CZNNgR4hAeLGKm290SAj0 h9LxJXDH3Q6TrYRuEECRiFvLwY7qKFaltjR3+TPKvp+3OBzJsftV8yroowfC0PYCclr1jp 0Xp1cWYJgt1XheP4lulbguI+/LtnTldTdliBsbB0SiQj/CCeqXRFeZaJ/KCFbA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=cam.ac.uk header.s=20230328.ppsw header.b=sdmpuABI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=cam.ac.uk (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707339225; a=rsa-sha256; cv=none; b=bz36ga0ifDFgC1DgzxhdBDL+MTU1VhkT3KXERQxRslKTPG/gEJDRNX+gKnqYlvzQ8bb+0Z S///J/8wpvMdAiacp3fesdaQNlOgWOmzMtksW4PffAPGRbqYTyYzNTc8HSOL2mXJfGxFic JZk03+saKr3Q8XYvC8HkpBXLN6IXB+BY19+Q3jF+RL9Tl5hknkOjpywPKHqQaLA+uXxKEP 7qqyQy9N6wc57TUmD+IxK1gkddkjnhBtlUrrf802wPVrR7T0uvsaNBgBEY0zRVTMsu7QkP qU+Nf/HaWjn4js5aGXp0+D0XzmP1/fEpQYfmy3mHZ/5BvpZPyQ1eRo+9EN5n0w== 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 680221179A for ; Wed, 7 Feb 2024 21:53:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXoua-0007vI-3S; Wed, 07 Feb 2024 15:52:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXouX-0007v0-ND for emacs-orgmode@gnu.org; Wed, 07 Feb 2024 15:52:49 -0500 Received: from ppsw-41.srv.uis.cam.ac.uk ([131.111.8.141]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXouV-0005NK-BB for emacs-orgmode@gnu.org; Wed, 07 Feb 2024 15:52:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cam.ac.uk; s=20230328.ppsw; h=Content-Type:MIME-Version:Message-ID:cc:Date:Subject:To: From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=NgQNsxc4gq7MdUl432hDnJG9QtCBRYrWE9ZGrbfIIXI=; b=sdmpuABIszFx+dZxR4SCgsQ5Td RuZoXe60EowY3t959SvzPqGaTVxP/BFl2KJDPTIKIlJHbppSp62wOZ0hqJS4iJs3S3QGdhoGN6XPk 8Gk84mNBl7X4Zcjw6lmaz0SIlTfcTYipbpYRWJPsEnPVJLKMwSw8MotAWDpxvut3lv9WdMQm/Bkma Cccg7rc4fpNRfI3MwJm9nhL7bwWy29jbabMRKGqewtYb5r3WE1xorWckM6kOW2RmMJvWP4geOkztn ZOLDIBD1wH0FbPUjCfCbhK1FaL3ViZ8hCZG2bWre97uJV6bIEQ2nGBHCAj3GLHz8AAYZsHJfdzD9K mGUIELwA==; X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: https://help.uis.cam.ac.uk/email-scanner-virus Received: from smtp.maths.cam.ac.uk ([131.111.20.158]:49261 helo=evander.maths.cam.ac.uk) by ppsw-41.srv.uis.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.137]:25) with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rXouQ-00000001Avi-NdM2 (Exim 4.97.1) for emacs-orgmode@gnu.org (return-path ); Wed, 07 Feb 2024 20:52:42 +0000 Received: from 225.217.6.51.dyn.plus.net ([51.6.217.225] helo=localhost) by evander.maths.cam.ac.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1rXouO-004bvs-Bq; Wed, 07 Feb 2024 20:52:41 +0000 User-agent: mu4e 1.10.8; emacs 29.1 From: "Stephen J. Eglen" To: "emacs-orgmode@gnu.org" Subject: help with gnus-icalendar.el and orgmode agenda Date: Wed, 07 Feb 2024 20:41:04 +0000 cc: Jan Tatarik Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=131.111.8.141; envelope-from=sje30@cam.ac.uk; helo=ppsw-41.srv.uis.cam.ac.uk X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.74 X-Spam-Score: 2.74 X-Migadu-Queue-Id: 680221179A X-Migadu-Scanner: mx12.migadu.com X-TUID: i11RlinXJXyG hi, I have the following snippet set up so that mu4e will parse icalendar attachments and add them to an org file ... this seems to be the standard prescription: (when (fboundp 'gnus-icalendar-org-setup) (setq gnus-icalendar-org-capture-file "~/todo.org") (setq gnus-icalendar-org-capture-headline '("Calendar")) (gnus-icalendar-org-setup)) gnus-icalendar.el is part of Emacs, authored by Jan Tatarik (cc'ed). When I use this package on icalendar attachments, it creates entries that look like this: ** [#B] subject of email :PROPERTIES: :ICAL_EVENT: t ... :END: <2024-02-22 18:30-20:00> Note that the timestamp DOES NOT include a day of the week. With the default settings of org-time-stamp-formats, i.e. ("%Y-%m-%d %a" . "%Y-%m-%d %a %H:%M") this means that the agenda does not show this entry -- which defeats the purpose of me saving the icalendar entry! If I manually add the dayname then the agenda item appears. Looking inside gnus-icalendar.el, the relevant defun seems to be gnus-icalendar-event--org-timestamp that creates the timestamp. e.g. it includes this text to generate the timestamp: (format "<%s %s-%s%s>" start-date start-time end-time repeat) which does not include the dayname. What is the best way to improve this code? Best wishes, Stephen