Re: [nmh-workers] [mhical] accepting google calendar meeting invitation

2018-11-10 Thread David Levine
Ralph wrote:

> Hi David,
>
> > I wonder if Google needs the DESCRIPTION in the reply.  mhical strips it.
>
> Could me.  Google put an odd warning it in given it's just a
> description.  You'd think they'd key off just the UID.

They apparently can key off just the UID.  At least now they can,
I noticed that Google no longer sends me the "could not find the
event" responses, even without the DESCRIPTION.

Anyway, I (finally) narrowed the problem down to having more than
one ATTENDEE line in the response.  I just committed an update
that adds an -attendee switch to mhical(1) for cases when more
than one ATTENDEE matches the user's mailboxes.  It also retains
DESCRIPTION lines.

And I added corresponding -a switches to the calaccept, caldecline,
and caltentative aliases on docs/contrib/replaliases.

> I noticed there were two vCalendar files in the invitation email Tom
> forward, though they seem the same.

Gmail seems to do that.

Tom wrote:

# I noticed that the mhical modified invite.ics has the wrong
# value for my email address (it seems to guess it, instead of
# honoring the value in the To: field in the Google meeting
# invitation):

I think that the new -attendee switch can help you get around
this, as long as the email address you want to use is listed in
your profile in either Local-Mailbox or Alternate-Mailboxes.  If
not, I think we'd have to add another switch to mhical.  It
doesn't see the entire message, just the iCalender request.

David

-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [nmh-workers] [mhical] accepting google calendar meeting invitation

2018-09-27 Thread Ralph Corderoy
Hi David,

> I wonder if Google needs the DESCRIPTION in the reply.  mhical strips it.

Could me.  Google put an odd warning it in given it's just a
description.  You'd think they'd key off just the UID.

Please do not edit this section of the description.

I noticed there were two vCalendar files in the invitation email Tom
forward, though they seem the same.

Can an invitation be sent to Gmail and accepted so what it sends out
examined for clues, e.g. DESCRIPTION present?

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [nmh-workers] [mhical] accepting google calendar meeting invitation

2018-09-25 Thread David Levine
Tom wrote:

> I noticed that the mhical modified invite.ics has the wrong value
> for my email address (it seems to guess it, instead of honoring the value in
> the To: field in the Google meeting invitation):

Yeah, that'll take some investigation.

> I might try hand editing invite.ics so it has the correct emai
> address for ATTENDEE;PARTSTAT=ACCEPTED;CN=...
> later today or Wed.

I wonder if Google needs the DESCRIPTION in the reply.  mhical strips it.

David

-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [nmh-workers] [mhical] accepting google calendar meeting invitation

2018-09-25 Thread nmh
Hi Ralph:

On Tue 9/25/18 11:08 +0100 Ralph Corderoy wrote:
>> mhical -reply accept  < .../invite.ics > /tmp/invite.ics
>
>What's `mhical -version' say?

$ mhical -version
mhical -- nmh-1.7.1 built 2018-05-19 10:39:15 + on ibisbil.mumble.com

>Any chance we can see the `.ics' before and after, even if you redact
>the private parts?

I ran this email through a scrub script to get rid of private stuff;hopefully
this does not munge anything.

I used the #forw mh directive to attach
* Google meeting invitation email I received. Has original invite.ics
* My attempt to accept Google meeting invitation (sent msg w/mhical 
modified invite.ics).

I noticed that the mhical modified invite.ics has the wrong value
for my email address (it seems to guess it, instead of honoring the value in
the To: field in the Google meeting invitation):

ATTENDEE;PARTSTAT=ACCEPTED;CN="nym moob":MAILTO:"nym moob" 

(I use a lot of /etc/aliases mail aliases.)

The 'accept' email message seen in the x...@gmail.com inbox:
shows a calendar graphic  added by google and then to the right of that the 
text:

Accepted: test asdf
From Google Calendar
Unable to retrieve this event from your calendar.

This is not urgent at all.  Would be nice to get working though.

I might try hand editing invite.ics so it has the correct emai
address for ATTENDEE;PARTSTAT=ACCEPTED;CN=...
later today or Wed.

--
thanks,
T-o-m

--- Begin Message ---
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20180926T103000Z
DTEND:20180926T113000Z
DTSTAMP:20180925T104054Z
ORGANIZER;CN=x...@gmail.com:mailto:x...@gmail.com
UID:0rc7qfm58i93046dlqeobdr...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=x...@gmail.com;X-NUM-GUESTS=0:mailto:x...@gmail.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=z...@nounce.com;X-NUM-GUESTS=0:mailto:z...@nounce.com
CREATED:20180925T103956Z
DESCRIPTION:-::~:~::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~
 :~:~:~:~:~:~:~:~::~:~::-\nPlease do not edit this section of the descriptio
 n.\n\nView your event at https://www.google.com/calendar/event?action=VIEW;
 eid=MHJjN3FmbTU4aTkzMDQ2ZGxxZW9iZHIzdTQgem1AdHJvZG1hbi5jb20=MTkjZG92ZW5
 vd2FyQGdtYWlsLmNvbTM3ZDY5YWEzNjk0NzFlZGU0Y2Y0OTQ4ODUwMTE5ODdiM2ZjNDY3ZmU
 z=America%2FChicago=en=1.\n-::~:~::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:
 ~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-
LAST-MODIFIED:20180925T104054Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:test asdf
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


invite.ics
Description: application/ics
--- End Message ---
--- Begin Message ---
On Tue 9/25/18 10:40 - x...@gmail.com wrote:
>You have been invited to the following event.
>
>Title: test asdf When: Wed Sep 26, 2018 5:30am – 6:30am Central 
>Time - Chicago Calendar: z...@nounce.com Who: * x...@gmail.com -  
>organizer * z...@nounce.com
>
>Event details:
>https://www.google.com/calendar/event?action=VIEW=MHJjN3FmbTU4aTk 
>zMDQ2ZGxxZW9iZHIzdTQgem1AdHJvZG1hbi5jb20=MTkjZG92ZW5vd2FyQGdtYWls 
>LmNvbTM3ZDY5YWEzNjk0NzFlZGU0Y2Y0OTQ4ODUwMTE5ODdiM2ZjNDY3ZmU=Ameri 
>ca%2FChicago=en=0   
>
>Invitation from Google Calendar: https://www.google.com/calendar/
>
>You are receiving this courtesy email at the account z...@nounce.com   
>because you are an attendee of this event.
>
>To stop receiving future updates for this event, decline this 
>event.  Alternatively you can sign up for a Google account at 
>https://www.google.com/calendar/ and control your notification
>settings for your entire calendar.
>
>Forwarding this invitation could allow any recipient  
>to modify your RSVP response. Learn more at   
>https://support.google.com/calendar/answer/37135#forwarding   
>>> application/ics attachment, name=invite.ics
BEGIN:VCALENDAR
PRODID:nmh mhical v0.1
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REPLY
BEGIN:VEVENT
DTSTART:20180926T103000Z
DTEND:20180926T113000Z
DTSTAMP:20180925T110058Z
ORGANIZER;CN=x...@gmail.com:mailto:x...@gmail.com
ATTENDEE;PARTSTAT=ACCEPTED;CN="nym moob":MAILTO:"nym moob" 
UID:0rc7qfm58i93046dlqeobdr...@google.com
CREATED:20180925T103956Z
LAST-MODIFIED:20180925T104054Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Accepted: test asdf
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
--- End Message ---
-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Re: [nmh-workers] [mhical] accepting google calendar meeting invitation

2018-09-25 Thread Ralph Corderoy
Hi Tom,

> mhical -reply accept  < .../invite.ics > /tmp/invite.ics

What's `mhical -version' say?
Any chance we can see the `.ics' before and after, even if you redact
the private parts?

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy

-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers


[nmh-workers] [mhical] accepting google calendar meeting invitation

2018-09-25 Thread nmh
>From google calendar I invited a non gmail account of mine ( on a linux vps
using sendmail ) that I read with nmh to a "test meeting".

Using nmh, I replied to the gmail message, with a modified "invite.ics" 
attached,
where "invite.ics" is from

mhical -reply accept  < .../invite.ics > /tmp/invite.ics
# .../invite.ics is from the google calendar invite email.

The result, shown in the gmail received,  was that google "could not find the 
event".

Any tips on how I can convince google calendar that I have accepted
the meeting invite?

--
thanks,
Tom

-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers