Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add event organizer #260

Merged
merged 3 commits into from
Apr 26, 2021
Merged

Add event organizer #260

merged 3 commits into from
Apr 26, 2021

Conversation

markuspoerschke
Copy link
Owner

Fix #252

### Organizer

The Organizer defines the person who is organizing the event.
The property consists of an email address.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
The verb ‘recommended’ is used with the gerund form: “recommended using”. (ADMIT_ENJOY_VB[1])
Suggestions: recommended using
URL: https://www.ef.com/english-resources/english-grammar/gerund-equals-infinitive/
Rule: https://community.languagetool.org/rule/show/ADMIT_ENJOY_VB?lang=en-US&subId=1
Category: GRAMMAR

### Organizer

The Organizer defines the person who organises the event.
The property consists of at least an email address.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
The verb ‘recommended’ is used with the gerund form: “recommended using”. (ADMIT_ENJOY_VB[1])
Suggestions: recommended using
URL: https://www.ef.com/english-resources/english-grammar/gerund-equals-infinitive/
Rule: https://community.languagetool.org/rule/show/ADMIT_ENJOY_VB?lang=en-US&subId=1
Category: GRAMMAR

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

False finding...

@markuspoerschke markuspoerschke merged commit 4a5ade3 into 2.x Apr 26, 2021
@markuspoerschke markuspoerschke deleted the add-organizer branch April 26, 2021 20:16
@aarongerig
Copy link

@markuspoerschke Would it be possible to get a new version for that? :)

@markuspoerschke
Copy link
Owner Author

@aarongerig Thanks for the reminder.

My bot just created a new release: https://github.com/markuspoerschke/iCal/releases/tag/2.2.0

@aarongerig
Copy link

@markuspoerschke Awesome, thank you!


public function toUri(): Uri
{
return new Uri('mailto:' . urlencode($this->emailAddress));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outlook 2016 is having trouble with the encoded "@" character in the email address.

According to RFC standard, the mailto: doesn't require the url-encoding of that character. From the RFC 5545 3.8.4.3 (Organizer) section, see its examples, but it says "Value Type: CAL-ADDRESS" -> look for that in the RFC, find definition here -> says "the value must be a mailto URI, as defined by [RFC2368].", see its examples.

By RFC 2368's examples, it seems that it implies the "@" should remain unencoded. The solution then would mean parsing the email address, such as is seen in this related StackOverflow discussion on the topic: https://stackoverflow.com/questions/8940445/what-is-the-correct-way-to-escape-a-string-for-a-mailto-link

In our case, we're going to just look for %40 in the ORGANIZER property and convert it back to @, which will suffice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add organizer in Version 2.*
4 participants