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 ms13.migadu.com with LMTPS id eJr5JSuFhGY1ZQEA62LTzQ:P1 (envelope-from ) for ; Tue, 02 Jul 2024 22:54:35 +0000 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 eJr5JSuFhGY1ZQEA62LTzQ (envelope-from ) for ; Wed, 03 Jul 2024 00:54:35 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=AFj9Q8K3; dmarc=pass (policy=none) header.from=gmail.com; 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=1719960875; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=efxRBcL3UP+RMiXL5H8H/cWMAdzuYtzJwDF9kGKhfeA=; b=VO0vysu2XCzbOQq9kWXH6ukR31kb8eqm28sMmv1t+r+tTyOCoMqmdvkUezNiGyDsGwauSC JTiuatCO0pM0kvYDC//ZpwQV/8ogJbNyLrZVzpbkFpv9Wx/yAEaW054Vecm1FzSQlChstR +qlMfuKGDB5pHtjMQYwYBETIwK6MPFcXwKGkpnG0vbeAoH/9JcHpX9iFZMebGU4HIDodmL UFkXYd6WnH4Q7Rd2YeVsQIKchKjo6ZHTbyOZgFDtIjNSFOjhsw/vg3NDHOWAV+Ksg40+t4 Bg4yFDckudBNVaZ/XR3aDICE7OXoBjK1oyyOiE/3/6S7ZaCZwGPRav4O97XASQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719960875; a=rsa-sha256; cv=none; b=oItqGJ+LJ6RVb6AmzbQRwKVTdPo8xV2gVstWod0kdSyP48sxRoXBa+Q58hnhZQrsLvCnCN vgi9X1jsXDuKJFh8JXaYYOsNL8akUp9gTJDlPV/lzPiflvwTGO2fzxkZyragGrXOYriYx/ 1Lec1H10lI4rhaykmhfhv7fVvEQmuFGJ7oEECbydTvRKTfF2Q5ikYXCRXgpFTAuNaSXL5M zEOoKDd6PJY7kdd3snPeQL5ZZMCGJPO3qEkbqMClqO9wLjrXISRBa6LGfG59++1+tLEEMN b915QMJsB7g4aGIhjmtcKHcWqb33P09a+YCsNhtZ1v2aH1v5qmHbodEb91K7Iw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=AFj9Q8K3; dmarc=pass (policy=none) header.from=gmail.com; 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" 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 6444E362DF for ; Wed, 3 Jul 2024 00:54:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOmNV-0004o6-FJ; Tue, 02 Jul 2024 18:53:37 -0400 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 1sOmNT-0004nY-NN for emacs-orgmode@gnu.org; Tue, 02 Jul 2024 18:53:35 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOmNR-0008Hy-2X for emacs-orgmode@gnu.org; Tue, 02 Jul 2024 18:53:35 -0400 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1fa3bdd91c1so36079945ad.2 for ; Tue, 02 Jul 2024 15:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719960811; x=1720565611; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=efxRBcL3UP+RMiXL5H8H/cWMAdzuYtzJwDF9kGKhfeA=; b=AFj9Q8K3O1o3XPxLeo7HQkKT9c5BDEEzvlikl3E/anMebY3abVKg38H700x37d0DvG 5xrQGso5M/Jyp0a67LLZn4MAJHvJFIo2AHous929iDN4TNEUvuApbBZeXKKOkNw3lPCc CtFgm55831r4sbK1sk/TDnB/9TPKcXE9WIRgUD8880B5la+pq05oNWSvHzjfBG1TJiIC 9EHH+T+UVnfoAzwQo5vH+/MB5jJ01fkUeuW1zO1yfjFDcrmdXwqOA5uf4y3v+BUaA96g vfwJprwTz6SWQOGrIijpGW1bUjS2dA4X6+i2b1FJHE3c+/1Bay/ps8qlJez+W0pNt+bG wIEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719960811; x=1720565611; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=efxRBcL3UP+RMiXL5H8H/cWMAdzuYtzJwDF9kGKhfeA=; b=aNCSxovqlCLmqeFYjNNMgiYiPbSQ9wjkRTRxIwFcVw49hC4KGtLS7ewC1pcZWzDUQs PWajuLnhz5xnqXhbu+vlZoKXCoX0W+l4LOV5ToK2zdQVO9XL/92cAGF9ANRoakONlEib bpE+Gpj6i5LqnFCG2c4SPs/zmczKnyIMfcL6BUqJZvuR95jouoVy9ujZM9eNU0TB5rmc H5UmWT8Ks1EVJ9OwHhQmvtWXq4ZuoeInb5dkjUue3l9ARQB3lMPX4pJIgODCFM8lxZCm r0GvzLv74QwAIJ+ryi9EHGWFTLjU1kEEPO+6PaR5goRwyDzYeRvQzW0SxbmdlXFpnwKW QU/A== X-Gm-Message-State: AOJu0Yy2YI/PUkogW08WRbspUEwaArhIFuef1QvrOGFpdyrra6ge2d4z GxA5d/EZb1/GN8zP9xVq7wsrMlIWX63D4vYZBj8ZSl/7VyLv85zb X-Google-Smtp-Source: AGHT+IEqZsstVe4NlNYCYSmVRyxVzLkY4Zhq0K5/aqMKcEmPVEXhZVVJR8PYlsYjHXrfb/mmQIk+sA== X-Received: by 2002:a17:902:e892:b0:1f6:e4ab:a1f4 with SMTP id d9443c01a7336-1fadbc5c269mr89596745ad.12.1719960810748; Tue, 02 Jul 2024 15:53:30 -0700 (PDT) Received: from localhost (157-131-78-143.fiber.dynamic.sonic.net. [157.131.78.143]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fac1594eb0sm89584515ad.246.2024.07.02.15.53.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 15:53:30 -0700 (PDT) From: Jack Kamm To: Ihor Radchenko , Jean Luc Cc: "emacs-orgmode@gnu.org" Subject: Re: [BUG] ox-icalendar does not support custom export snippets (was: Turning all my "all day events" FREE in an ics export) In-Reply-To: <87sewrj29n.fsf@localhost> References: <1374731113.85480.1719912621305.ref@mail.yahoo.com> <1374731113.85480.1719912621305@mail.yahoo.com> <87sewrj29n.fsf@localhost> Date: Tue, 02 Jul 2024 15:53:29 -0700 Message-ID: <871q4bo17a.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=jackkamm@gmail.com; helo=mail-pl1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.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-Queue-Id: 6444E362DF X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.73 X-Spam-Score: -9.73 X-TUID: x0E49tvfLdxw Ihor Radchenko writes: > CCing the maintainer. Thanks Ihor. This issue dovetails nicely with the other recent iCalendar issue [1] that I am still looking into (sorry for the tardiness) > In theory, you should be able to do something like > > #+ICALENDAR_VCALENDAR: X-MICROSOFT-CDO-INTENDEDSTATUS:FREE > or an equivalent export snippet, but ox-icalendar does not support such > thing. I believe that it should be considered a bug - we should provide > some means to produce text to be exported verbatim from inside Org files. Yes I agree we should support this functionality. I see two basic ways: first, as you suggest #+ICALENDAR_VEVENT: X-MICROSOFT-CDO-INTENDEDSTATUS:FREE Or alternatively, #+begin_export icalendar X-MICROSOFT-CDO-INTENDEDSTATUS:FREE #+end_export We could follow the example of the latex exporter which supports both usages. However I am not sure we can simply export verbatim -- we may need to add additional checks. In particular various Org properties or special keywords may also be exported as iCal properties (e.g. SCHEDULED as DTSTART, or TODO as STATUS:NEEDS-ACTION), and we may want to handle duplicate behavior -- for example, by default TODO could be exported as STATUS:NEEDS-ACTION unless explicitly overridden by #ICALENDAR_STATUS (this is also related to the discussion in [1]). We could possibly use icalendar.el to parse the icalendar export blocks/keywords to check for duplicate properties. icalendar.el provides many useful parsing functions, though some are private methods (e.g. icalendar--get-event-property) and may need to be copied (or we could consider asking emacs-devel to make those methods public). [1] https://list.orgmode.org/87r0cmu7lc.fsf@localhost/T/#t