From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp12.migadu.com ([2001:41d0:403:4789::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms9.migadu.com with LMTPS
	id MMMgNwiAumQRcAAASxT56A
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 21 Jul 2023 14:54:32 +0200
Received: from aspmx1.migadu.com ([2001:41d0:403:4789::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp12.migadu.com with LMTPS
	id UBiONgiAumTRhQAAauVa8A
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 21 Jul 2023 14:54:32 +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 ACDB24A49D
	for <larch@yhetil.org>; Fri, 21 Jul 2023 14:54:32 +0200 (CEST)
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=rsf2ko9A;
	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";
	dmarc=pass (policy=none) header.from=posteo.net
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1689944072;
	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=6NoUoAEc7dVZloVqJx/9+7fn1H1KzsT2BN4aCwuDqRY=;
	b=seW/dhJX3yMw9zvdvbuKRKI874Xx7WtLNmh3O0zkk7BQXvzFk/UNfVBP0ZeBZLMMzcTMz4
	DfCxQRp5Xk99ajDrVlK8NyQB1suXHoBF8pKnef8Ff0ALHYeIqII2DdhL8Fd0xuBgiWMfed
	PAEC/dGhswuxv2HWq22W1/54wb+Tu0wvXFYhrFxdAh/OS8MKKURIbqDPuAnNGqyLBMnWNH
	O5ivDdynC3MPwZdUCdsr3+VlkRfXl/+3aomf2/JlW1czMLShqSMQbj9eD6wYaWn4EfXOLM
	pCyMRRdZkaq//onRfHsIIX7UoSCWGXqz1XQGgaRm8d2aXMtpUG/DtIl3H69GNg==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689944072; a=rsa-sha256; cv=none;
	b=CUejN/or1CC4RtWJlwyjXmkW6fb3mWsb+QECynoo1LZpqFLjLFuD6LWjpypIs3WOB5+2MG
	AWNE8/+FXFkfXyMDX2pABwugNgpdvcXLWJT90DEWQ0dZ7PYnzdiBczSlgspBKnaMeP63TR
	fXF15zOjxHtSnR5Kg1cFF1JntIsFak3Ozs7bEDkjVltUn9l9DzWylqzbbsNd5oXKjamqgT
	C5UMjOlyyKS0JrCRjZJEi5FP0z/b1sgWMuC4oyBfW9l3AMu/lExz6ps/USUMsOQWQWGjkQ
	PCV1rtzYEMDz2oq/zqsLHojbne+7FwYCbbrKciAw+HlePk4YrL4MjWVDARIH4Q==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=rsf2ko9A;
	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";
	dmarc=pass (policy=none) header.from=posteo.net
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1qMpdn-0005nY-V4; Fri, 21 Jul 2023 08:53:52 -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 <yantar92@posteo.net>)
 id 1qMpdl-0005nJ-Vl
 for emacs-orgmode@gnu.org; Fri, 21 Jul 2023 08:53:49 -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 <yantar92@posteo.net>)
 id 1qMpdj-0007Di-46
 for emacs-orgmode@gnu.org; Fri, 21 Jul 2023 08:53:49 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id D304F240027
 for <emacs-orgmode@gnu.org>; Fri, 21 Jul 2023 14:53:44 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1689944024; bh=gjhGy8KPLmN4pO7/Oe7/nw2pu83kak9DjceOprU3k64=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From;
 b=rsf2ko9Au++h+gLNkJQtO8KKajmGo17jzAJuSLtFWpHQlYdioMCE7bjFjd0TIf+QE
 q7aqiQMCWHDjVrYd3Uk04QV8LndgiwAvoFD581TMl7R5z06doQZDH/YxsyoO4ltdzz
 jr3JBCSmkgjBhT+IaxcGjAndGkNzxWM2BfpPjVoyWmO7p1ZpSeeP/qiy4bWEOacrk1
 /ntI1KywXB8umWOEiTBAW6347+7xz9NcK9ps02J+nZ6rxWBG3Cc2nLehkhqo4ZWH2t
 2jwLxlAyIxatIHVe3+LOe6/UbTIdgb/U3ZdTLcN77SnDHd2T6sv1S4gvP+M8y+3yO+
 YCLOSWRRp554Q==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4R6qHX0S6bz9rxX;
 Fri, 21 Jul 2023 14:53:43 +0200 (CEST)
From: Ihor Radchenko <yantar92@posteo.net>
To: Marcus Zibrowius <marcus.zibrowius@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: org-anniversary dates not exported to iCalendar [9.4.6
 (9.4.6-3-g37f69b-elpaplus @
 /home/marcus/.emacs.d/elpa/org-plus-contrib-20210531/)]
In-Reply-To: <2688a48d5383625b5acd5b803ff6b8b947322369.camel@posteo.net>
References: <2688a48d5383625b5acd5b803ff6b8b947322369.camel@posteo.net>
Date: Fri, 21 Jul 2023 12:53:55 +0000
Message-ID: <874jlxmnmk.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,
 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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=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
X-Migadu-Spam-Score: -5.86
X-Spam-Score: -5.86
X-Migadu-Queue-Id: ACDB24A49D
X-Migadu-Scanner: mx1.migadu.com
X-TUID: V85sLtSks+aK

Marcus Zibrowius <marcus.zibrowius@posteo.net> writes:

> I have an org-file with entries of the form
>
> * Abel's birthday party
>   <2023-11-13>
>
> and with entries of the form
>
> * Abel Jacobi
> %%(org-anniversary 1978 11 11) Abel %d
>
> Both types of events show up in my agenda view in emacs. However, when I
> export to ics (e.g. org-export-dispatch > [c] Export to icalendar > [f]
> Current file), only the former type of entries is included in the
> resulting ics-file.

This is because Emacs diary only looks
`icalendar-export-sexp-enumeration-days' days ahead from now when
exporting non-standard diary sexps. By default, it is 2 weeks.
So, you would see the anniversary in icalendar if it were 2 weeks from
now.

You can increase `icalendar-export-sexp-enumeration-days' to get the
anniversary occurrences exported up to that number of days ahead.

Also, `org-anniversary' does not support %d. AFAIK, it is only working
for built-in sexp types, which are handled specially.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>