Projet

Général

Profil

Development #67104

La présence du champ ATTENDEE dans les fichiers .ics généré empêche l'enregistrement du RdV dans outlook

Ajouté par Benjamin Dauvergne il y a presque 2 ans. Mis à jour il y a plus d'un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
07 juillet 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Cf. ticket client #66891

Chrono génère ça (dans Booking.get_ics(request) utilisé via l'API chrono.api.views.booking_ics):

ATTENDEE:John Doe

mais 1à lire la spec ce n'est pas du tout comme ça qu'il faut faire mais c'est difficle de savoir exactement quoi faire, je proposerai bien ça :

ATTENDEE;CN="John doe";ROLE=REQ-PARTICIPANT:mailto:john.doe@example.net

https://icalendar.org/iCalendar-RFC-5545/3-8-4-1-attendee.html

Description

This property MUST only be specified within calendar components to specify participants, non-participants, and the chair of a group-scheduled calendar entity. The property is specified within an "EMAIL" category of the "VALARM" calendar component to specify an email address that is to receive the email type of iCalendar alarm.

The property parameter "CN" is for the common or displayable name associated with the calendar address; "ROLE", for the intended role that the attendee will have in the calendar component; "PARTSTAT", for the status of the attendee's participation; "RSVP", for indicating whether the favor of a reply is requested; "CUTYPE", to indicate the type of calendar user; "MEMBER", to indicate the groups that the attendee belongs to; "DELEGATED-TO", to indicate the calendar users that the original request was delegated to; and "DELEGATED-FROM", to indicate whom the request was delegated from; "SENT-BY", to indicate whom is acting on behalf of the "ATTENDEE"; and "DIR", to indicate the URI that points to the directory information corresponding to the attendee. These property parameters can be specified on an "ATTENDEE" property in either a "VEVENT", "VTODO", or "VJOURNAL" calendar component. They MUST NOT be specified in an "ATTENDEE" property in a "VFREEBUSY" or "VALARM" calendar component. If the "LANGUAGE" property parameter is specified, the identified language applies to the "CN" parameter.

A recipient delegated a request MUST inherit the "RSVP" and "ROLE" values from the attendee that delegated the request to them.

Multiple attendees can be specified by including multiple "ATTENDEE" properties within the calendar component.
....
Example

The following are examples of this property's use for a to-do:

ATTENDEE;MEMBER="mailto:":
mailto:
ATTENDEE;DELEGATED-FROM="mailto:":
mailto:

The following is an example of this property used for specifying multiple attendees to an event:

ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=TENTATIVE;CN=Henry
Cabot:mailto:
ATTENDEE;ROLE=REQ-PARTICIPANT;DELEGATED-FROM="mailto:bob@
example.com";PARTSTAT=ACCEPTED;CN=Jane Doe:mailto:jdoe@
example.com

The following is an example of this property with a URI to the directory information associated with the attendee:

ATTENDEE;CN=John Smith;DIR="ldap://example.com:6666/o=ABC%
20Industries,c=US???(cn=Jim%20Dolittle)":mailto:jimdo@
example.com

The following is an example of this property with "delegatee" and "delegator" information for an event:

ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=TENTATIVE;DELEGATED-FROM=
"mailto:";CN=Henry Cabot:mailto:hcabot@
example.com
ATTENDEE;ROLE=NON-PARTICIPANT;PARTSTAT=DELEGATED;DELEGATED-TO=
"mailto:";CN=The Big Cheese:mailto:iamboss
@example.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;CN=Jane Doe
:mailto:

Ici un exemple complet: https://stackoverflow.com/questions/4823574/sending-meeting-invitations-with-python

for att in attendees:
    attendee += "ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-    PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE"+CRLF+" ;CN="+att+";X-NUM-GUESTS=0:"+CRLF+" mailto:"+att+CRLF


Fichiers

Révisions associées

Révision 2fb68bcb (diff)
Ajouté par Benjamin Dauvergne il y a plus d'un an

api: add organizer event's attribute in ics exports (#67104)

Historique

#1

Mis à jour par Benjamin Dauvergne il y a presque 2 ans

  • Description mis à jour (diff)
#3

Mis à jour par Benjamin Dauvergne il y a presque 2 ans

J'ai testé plusieurs choses avec le client, rien qui fonctionne je propose soit de l'enlever tout simplement soit de permettre une option sur l'API pour l'enlever (no-attendee=1).

#4

Mis à jour par Benjamin Dauvergne il y a presque 2 ans

HS: Aussi, mais c'est un autre problème, en fichier simplement attaché Gmail ne montre jamais l'écran pour enregistrer le RdV, il faudrait que multipart/alternative soit utilisé je pense. C'est Gmail qui rajoute des entêtes zarbis qui fait ça; ça marche très bien quand on envoie le mail depuis w.c.s. en multipart/mixed et content-disposition:attachment.

#7

Mis à jour par Renaud Boitouzet il y a plus d'un an

Je me permets d’intervenir : dans le ticket lié, j’ai donné des exemples de fichiers ICS dans lesquels j’ai modifié à la main ATTENDEE et ORGANIZER tester le comportement d’Outlook. Le format du champ n’a pas l’air de gêner Outlook en tout cas.

#8

Mis à jour par Benjamin Dauvergne il y a plus d'un an

Ok donc je proposerai bien de laisser ATTENDEE tel qu'il est mais d'ajouter par défaut ceci :

ORGANIZER;CN={{ global_title }}:mailto={{ default_from_email }}

#9

Mis à jour par Renaud Boitouzet il y a plus d'un an

Benjamin Dauvergne a écrit :

Ok donc je proposerai bien de laisser ATTENDEE tel qu'il est mais d'ajouter par défaut ceci :
[...]

avec "mailto:" au lieu de "mailto=" je pense. Ci-joint ce que ça donne sur MS Outlook, je trouve ça bien.

#10

Mis à jour par Benjamin Dauvergne il y a plus d'un an

  • Assigné à mis à Benjamin Dauvergne
#11

Mis à jour par Benjamin Dauvergne il y a plus d'un an

#12

Mis à jour par Valentin Deniaud il y a plus d'un an

  • Statut changé de Solution proposée à Solution validée
#13

Mis à jour par Benjamin Dauvergne il y a plus d'un an

  • Statut changé de Solution validée à Résolu (à déployer)
commit 2fb68bcb8a45eb94ea652e63c8643e9a5636f55a
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Thu Sep 15 14:11:53 2022 +0200

    api: add organizer event's attribute in ics exports (#67104)
#14

Mis à jour par Transition automatique il y a plus d'un an

  • Statut changé de Résolu (à déployer) à Solution déployée
#17

Mis à jour par Transition automatique il y a plus d'un an

Automatic expiration

Formats disponibles : Atom PDF