From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QAqTMeTaJmTJJwAASxT56A (envelope-from ) for ; Fri, 31 Mar 2023 15:06:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uNZEMeTaJmT8oQAAauVa8A (envelope-from ) for ; Fri, 31 Mar 2023 15:06:44 +0200 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 48E4B1F5A5 for ; Fri, 31 Mar 2023 15:06:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piERy-0005qB-KR; Fri, 31 Mar 2023 09:05:50 -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 1piERv-0005pw-SR for emacs-orgmode@gnu.org; Fri, 31 Mar 2023 09:05:48 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1piERt-00018P-Fd for emacs-orgmode@gnu.org; Fri, 31 Mar 2023 09:05:47 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id F15D3240049 for ; Fri, 31 Mar 2023 15:05:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1680267943; bh=cG6t5rMZ6YpO5IcYzmxWupytKxfpC5piISE7tUVq2kA=; h=From:To:Cc:Subject:Date:From; b=WMcYQDBDXFSe09lk40Faq2VOX/HsLkbYqMX4PKV06rBWt+e9OvlCvRzggsR5VdArU IsQj825ZmpDGPZlbHdKJewsIXUZb+Kpu0ArAPcux6qPlDFD+/rczX7In6QYrnH9UZu XQxGGs8tN53CTrvC2pPB/DAWKeYS+deQbPVd88M/48uMgpjuPy0J3ezvoPeR5ACvXl 2j6kfDM32Z+Phe1pqoLzngr61x64o/wcuh4LXS4Y/WIoj0LMM1aEBqjTmsmK2S+iAf buf4Ff+G08kWHAV9+2Sk7ov+uILHQrK1hPH2bO1nWIvkWdzk+8GiaQYl+NqsmvbVO5 9UMgh7P7jGHAA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Pp0rz6lKVz9rxG; Fri, 31 Mar 2023 15:05:39 +0200 (CEST) From: Ihor Radchenko To: Jack Kamm Cc: emacs-orgmode@gnu.org, mail@nicolasgoaziou.fr Subject: Re: [RFC] ox-icalendar: Unscheduled tasks & repeating tasks In-Reply-To: <87r0t5jwgy.fsf@gmail.com> References: <874jq75okg.fsf@gmail.com> <87o7oetneo.fsf@localhost> <87r0t5jwgy.fsf@gmail.com> Date: Fri, 31 Mar 2023 13:07:39 +0000 Message-ID: <87v8ih9ihw.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680268004; a=rsa-sha256; cv=none; b=Wq3fcO5YrwrH8vbfmxEzmNkhwqEUygcJ28AmD12HY/W/76tBh2KttPD9nL0+cqPGDIUv9x 9+tVrgBxBLOvGg0YVfWtGBm1ZT2y+ljq0yxd3ZnhI97GLgnxI6Hq61YW4//tZ8FqPZX/IS XAwRqD+F/HYAG/wlRHXIIKynGQuwwVkEVDe8P0c6eYX5R8BZm4TiT6l4tScagIhpxjTsuv amub0+RIpPjNHQ+pg9a4U1s7g+xwc2GpObg+z7ovU/rExaI4BWvEWl8urBKQjjZHhGLJE0 0UpZpUnAExZInaJ7hknKC2MUuGZ20keciTk3IQ6hR07yJ+vqGoWVnrtCbRRKoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WMcYQDBD; dmarc=pass (policy=none) header.from=posteo.net; 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=1680268004; 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=/pZj442KD0oatykLNJvGkNSyxH00HGln20RLhlT/Xsc=; b=BXkKuv0yf1zjhK4Xr+IaplTf5GvpC9O1MvBMoVHVYNm6KLREvfnhM2JliJ2GBPZZkX3Jn0 RIh57paExBabxT9c9Q2l5Qt/nfuDhbQkwFIoboEWnCzI3uJQZrHD2thVgL+73QKhYdreEY ZRY4lDDjfvyhGaqlxXkUEpg6rJZnFyVaflUj6zZIKjTf8UScgx094sHjnjdbzcxIOfx2D4 BxI8KJqaWcGw+5uzptlIgUDFcSEid5ZpA/mZtfCNHab8EdwdrjL+4rL0/91ZooyJ9Ll1wU nKpyDg1R3dkVilk5z17Yc4W43oSD2Yely1AplstunnFrQPzqfqgAmS89DR1bYw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WMcYQDBD; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -6.23 X-Spam-Score: -6.23 X-Migadu-Queue-Id: 48E4B1F5A5 X-TUID: fI+ozfED8t/e Jack Kamm writes: > However you are right that other parts of the iCalendar export have > inconsistent line endings. Currently, VEVENT and VTODO components have > the correct CRLF endings, but the other parts of the VCALENDAR do not > (such as the preamble). > > I like your suggestion in the above thread to just wrap the whole > export in `org-icalendar-fold-string'. Though I think it's slightly > nicer to do it in `org-icalendar--vcalendar' instead of > `org-icalendar-template'. > > So, I've attached a standalone patch to do this. It also fixes an issue > with `org-icalendar-fold-string' where the last newline was missing > "\r", and adds a unit test. Thanks! Note that I did not implement my suggestion because I am concerned if putting CRLF is safe as every single line ending. I am looking at https://icalendar.org/iCalendar-RFC-5545/3-6-2-to-do-component.html, and I note that only BEGIN:VTODO and END:VTODO lines must actually have CRLF. For example, https://icalendar.org/iCalendar-RFC-5545/3-3-11-text.html has no mentions of CRLF, but does talk about escaping staff. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at