I am using the calendar event api to list events by an attendee's email address. The api cannot find events if the attendee's email contains a plus "+". The plus is supported by gmail for aliasing. Is this a bug?
Example
https://developers.google.com/calendar/api/v3/reference/events/list?apix=true&apix_params=%7B%22calendarId%22%3A%22some_email%40gmail.com%22%2C%22q%22%3A%22joe%2Bspam%40gmail.com%22%2C%22timeMax%22%3A%222022-02-23T21%3A00%3A00-00%3A00%22%2C%22timeMin%22%3A%222022-01-15T21%3A00%3A00-00%3A00%22%7D#try-it
Raw API call
/calendar/v3/calendars/{calendar_name}/events?timeMin=2022-02-05T21%3A00%3A00-08%3A00&timeMax=2022-02-13T21%3A00%3A00-08%3A00&singleEvents=true&orderBy=startTime&q=joe%2Bspam%40gmail.com
Create an GMail event and invite any email address containing a + (joe+spam#gmail.com). Use Google's Try It Editor, https://developers.google.com/calendar/api/v3/reference/events/list?apix=true#try-it, to try and find the event.
Related
When you send an email through sendgrid, and the recipient opens the email, SendGrid will notify my server about that using webhooks (open) event.
https://docs.sendgrid.com/for-developers/tracking-events/event
But what happens if I specify multiple recipients for the same email with personalizations, do I get the same (open) event every time one of the recipients opens that email? If so how can my server figure which recipient?
What about the (delivered) event? Same questions.
Twilio SendGrid developer evangelist here.
The best way I found to achieve this is to send custom_args with the email, you can add custom_args to each individual personalisation object. Parameters set in custom_args are also sent along in the event webhook.
I wrote a post about how to use custom_args to track email statuses. The post uses Ruby on Rails as the framework, but covers using custom_args and reading them back in the event webhook to update the email in your own database.
How would I parse an email and extract flight reservation details (if it exists)?
I'm only looking to parse Gmail emails right now, so if it specifically uses the Gmail API, that's okay.
Though I had a look at the Gmail API (https://developers.google.com/gmail/api/v1/reference/users/messages/get), and tried the API on a specific message from my inbox that contains the flight reservation popup on the webapp, and couldn't find anything flight-related in the API.
So how would I do that in the generic case? By parsing directly the email body? Is there a library for that?
Thanks.
Up until approximately 1 month ago, we were able to achieve full calendar sync using event response email notifications from google calendar:
our system generated an email with an ics attachment
the user responded via gmail or google calendar
the email address listed for the organizer in the ics file received an event response email notification with corresponding ics information
our system ingested the ics file to keep their response in sync
We have now noticed that event response email notifications are no longer sent to non-gmail organizer email addresses.
We were able to confirm the change in behavior using yahoo calendar/mail as well:
Notifications Sent:
create google calendar event, invite user via a gmail address, invitee responds via google calendar/gmail
create google calendar event, invite yahoo email address, invitee responds via yahoo calendar/yahoo mail
Notifications Not Sent:
create yahoo calendar event, invite gmail address, invitee responds via google calendar/gmail
Anybody have experience with this? Any workarounds?
Checkout these few resources:
google calendar invites are sometimes marked as spam
solution: add email filter to never mark emails from calendar-notification#google.com as spam.
google calendar help - invitation not received
solution 1: same thing, check spam folder.
solution 2: check calendar notification settings.
yahoo calenda help - not getting reminders
solution: check spam filters.
It may also help to add the address to your contacts so that it will be less likely that the notifications are marked as spam.
When users receive a notification email about a new private message on Facebook, they can reply to the email and have their response automatically added to the conversation on the site.
How can I build a cross platform system like that? I'm building a group chat system.
This is obviously way over-simplified, but here we go:
The way Facebook's emails work is by using a string that's unique to the receiver in the reply-to address:
<m+50edqb50000003jtdj389k6xib6hofj6t41q1c45sdt92qc#reply.facebook.com>
So when Facebook receive an email into reply.facebook.com, they (presumably) parse the string after the plus sign, decide which user/conversation it's relevant to, and add the text of the email into that conversation.
One option:
Send every notification email with a unique reply-to address, then receive replies with a customized SMTP server that will pair responses with the originating message object in your DB.
Since you are using django (according to your tags) I would recommend looking at the Lamson python SMTP server. It can be programmed to correctly attribute each message. Using Lamson with Django is documented.
I've heard it mentioned that each KRL ruleset can have an email address associated with it, allowing the ruleset to respond to mail events (such as mail received). What is the format of that email address?
The documentation on the email endpoint can be found at http://docs.kynetx.com/docs/Email_Endpoint
The format of the email for each app is
{appid}[.dev][+{label}]#kynetxapps.net
The simplest example if your app id is a60x42
a60x42#kynetxapps.net