Community Discussions and Support
AW: Open .ics/.vcs attachments

To avoid some of these problems with attachments of type iCalender and VCalendar, I've done this:

FILETYPE.PM added:

iCalendar,0,X,0,.ics
vCalendar,0,X,0,.vcs

 MIME-MAP.PM

text/calendar = iCalendar

This should avoid the [Type unknown]. For PMICAL to open those attachments:

VIEWER .PM

1;.ICS;.ICS;pmical.exe
1;.VCS;.VCS;pmical.exe
2;text/calendar;.ics;pmical.exe

For the problem  with the "Alternative message format" I do not have any solution. It arises with vCalender attached by webinterface of Exchange Server (don't know if Outlook too). The understanding of Microsoft is, because they put the text in "plain text" and "HTML Text" in addition into field description of their calenderfile, that a calenderfile is an alternative of that text. May be discussed ... but Pegasus does abviously not expect this to be an alternative and so simply marks it as text and not as an attachment. David would say, that this is another case where Pegasus has to correct problems arising by an mal programed mailprograms :-)

 

Bye    Olaf

<p>To avoid some of these problems with attachments of type iCalender and VCalendar, I've done this:</p><p>FILETYPE.PM added:</p><blockquote><p>iCalendar,0,X,0,.ics vCalendar,0,X,0,.vcs </p></blockquote><p> MIME-MAP.PM</p><blockquote><p>text/calendar = iCalendar </p></blockquote><p>This should avoid the [Type unknown]. For PMICAL to open those attachments: </p><p>VIEWER .PM</p><blockquote><p>1;.ICS;.ICS;pmical.exe 1;.VCS;.VCS;pmical.exe 2;text/calendar;.ics;pmical.exe</p></blockquote><p>For the problem  with the "Alternative message format" I do not have any solution. It arises with vCalender attached by webinterface of Exchange Server (don't know if Outlook too). The understanding of Microsoft is, because they put the text in "plain text" and "HTML Text" in addition into field description of their calenderfile, that a calenderfile is an alternative of that text. May be discussed ... but Pegasus does abviously not expect this to be an alternative and so simply marks it as text and not as an attachment. David would say, that this is another case where Pegasus has to correct problems arising by an mal programed mailprograms :-)</p><p> </p><p>Bye    Olaf</p>

Hello

I know pmical exists solely for opening .ics and .vcs files, and I can use it externally to Pegasus to open them, but I can't open them from within Pegasus by double-clicking on the attached file, since Pegasus doesn't recognise the attachment as an .ics or .vcs file.

In the attachment view within message preview mode, the columns from left to right (| Type | File name | Description | ~Size |) show the files as follows: |  Text  |  -  |    | 1.5k

For a long time I've had Content Viewer entries for the two filename extensions set to run pmical.  I guess they worked sometime in the past when I set them up, but since Pegasus currently doesn't recognise that the attached files have any filename at all, double-clicking on the row in the attachment view has no effect (even setting the content viewer option to use 'Attachment type' information to Text doesn't help).  To open them now, I save the 'Text' file outside of Pegasus, name it with the .ics extension, and then drag and drop it onto pmical.exe.

Is there something I can do to simply double-click and open an attached .ics/.vcs file with pmical?  Is this even a Pegasus issue or has the problem already been caused by a particular set up of the email senders system?

Thanks for your help. 

<p style="font-size: 13.3333px;">Hello</p><p style="font-size: 13.3333px;"><span style="font-size: 10pt;">I know pmical exists solely for opening .ics and .vcs files, and</span><span style="font-size: 13.3333px;"> I can use it externally to Pegasus to open them, but I can't open them from within Pegasus by double-clicking on the attached file, since Pegasus doesn't recognise the attachment as an .ics or .vcs file.</span></p><p style="font-size: 13.3333px;"><span style="font-size: 10pt;">In the attachment view within message preview mode, the columns from left to right (| Type | File name | Description | ~Size |) show the files as follows: |  Text  |  -  |    | 1.5k</span></p><p style="font-size: 13.3333px;"><span style="font-size: 13.3333px;">For a long time I've had Content Viewer entries for the two filename extensions set to run pmical.  I guess they worked sometime in the past when I set them up, but since Pegasus currently doesn't recognise that the attached files have any filename at all, double-clicking on the row in the attachment view has no effect (even setting the content viewer option to use 'Attachment type' information to Text doesn't help).  To open them now, I save the 'Text' file outside of Pegasus, name it with the .ics extension, and then drag and drop it onto pmical.exe.</span></p><p style="font-size: 13.3333px;">Is there something I can do to simply double-click and open an attached .ics/.vcs file with pmical?  Is this even a Pegasus issue or has the problem already been caused by a particular set up of the email senders system?</p><p style="font-size: 13.3333px;">Thanks for your help. </p>

Do you have .ics and .vcs entries in the Pegasus Mail Content Viewer list (Tools/Options/Content Viewers)?

If not, this is a clip from the "To Install" section of the pmicalHelp.htm file:

4.  Go into Pegasus Mail menu Tools/Options/Content Viewers

5.  Add an entry for filename extension ".vcs" (and ".ics") and point to

the location where PmIcal.exe was stored.

 

<p>Do you have .ics and .vcs entries in the Pegasus Mail Content Viewer list (Tools/Options/Content Viewers)?</p><p>If not, this is a clip from the "To Install" section of the pmicalHelp.htm file:</p><p>4.  Go into Pegasus Mail menu Tools/Options/Content Viewers</p><p>5.  Add an entry for filename extension ".vcs" (and ".ics") and point to the location where PmIcal.exe was stored.</p><p> </p>

Hello,

     The problem you are seeing is that the sender has forgotten to supply a filename when attaching a file. So the result is a dash, which correctly is not associated with Pmical.

All you need to do in these cases is to save the file with a name (like temp.ics) and use Windows Explorer to open the stream.

Martin 

<p>Hello,</p><p>     The problem you are seeing is that the sender has forgotten to supply a filename when attaching a file. So the result is a dash, which correctly is not associated with Pmical.</p><p>All you need to do in these cases is to save the file with a name (like temp.ics) and use Windows Explorer to open the stream.</p><p>Martin </p>

Hello

Brian - Yes, I tried to explain that the content viewers are set, and I can confirm they are set according to the Pmical instructions.

Martin -  So, I'm currently doing all I can do.

I've never used Outlook or Exchange server etc, but I get the impression that the sender doesn't create the email themself, attach any files, or have the option to supply a filename.  I assume they create a meeting in their calendar, press the 'Invite' button, and emails send to the addresses of the invitees without any further user input.  I further assume that those receiving these email/files with Outlook simply press a button, and the meeting is added to their calendar.

If the sender did have any more interaction, I would expect one or two of them would do it 'correctly'.  I've had to use the workaround for the past several years from every sender that sends meeting requests.  Thankfully this actually happens very infrequently, so hasn't been and isn't a problem.

The recent updates to Pmical prompted this question though, since I figure there's those using Pmical via a double-click on the Pegasus attachment view, and there might have been something obvious that I'm missing.

If it's of any help, the third line of the latest meeting file received is: PRODID:Microsoft Exchange Server 2010.  There's no X-Mailer header in the email to determine the sending client.

I appreciate your feedback, and will mark this post as resolved. 

<p>Hello</p><p>Brian<span style="font-size: 10pt;"> - Yes, I tried to explain that the content viewers are set, and I can confirm they are set according to the Pmical instructions.</span></p><p><span style="font-size: 10pt;">Martin -  So, I'm currently doing all I can do.</span></p><p><span style="font-size: 10pt;">I've never used Outlook or Exchange server etc, but I get the impression that the sender doesn't create the email themself, attach any files, or have the option to supply a filename.  I assume they create a meeting in their calendar, press the 'Invite' button, and emails send to the addresses of the invitees without any further user input.  I further assume that those receiving these email/files with Outlook simply press a button, and the meeting is added to their calendar.</span></p><p><span style="font-size: 10pt;">If the sender did have any more interaction, I would expect one or two of them would do it 'correctly'.  I've had to use the workaround for the past several years from every sender that sends meeting requests.  Thankfully this actually happens very infrequently, so hasn't been and isn't a problem.</span></p><p><span style="font-size: 10pt;">The recent updates to Pmical prompted this question though, since I figure there's those using Pmical via a double-click on the Pegasus attachment view, and there might have been something obvious that I'm missing.</span></p><p>If it's of any help, the third line of the latest meeting file received is: PRODID:Microsoft Exchange Server 2010.  There's no X-Mailer header in the email to determine the sending client.</p><p>I appreciate your feedback, and will mark this post as resolved. </p>

Hello,

Firstly   I will try to help you. First you must understand that Pmical only displays Exchange calendar events. The MsExchange server uses a database and some strange software called Mapi, that almost no-one else uses for mailing or inviting attendees. That being said not every thing is lost. Given that you or your staff are viewing an event, you can do the following:

A. Open Pmical by dropping an ICS file onto Pmical.exe then go to the Pmical menu and click on File, then click on 'Save event as'...  Then give the Save dialog a file path and name.  A file will be created with the path and filename you supplied (ie testInvite.ics). You can then use that file to open any calendaring application on your devices, such as Microsoft Outlook and import the ICS file which will create a calendar event. All calendaring software understands this standard filetype.

B. If the original sender added a keyword RSVP=YES, then you will get a short dialog asking if you want to accept or decline the invitation. Then a Pegasus Mail standard message dialog will popup with the invitation subject and sender email address filled in.   You can then add other text or recipients, and then click Send. 

Note that Pegasus Mail does not presently have a calendaring application builtin. But there are several alternatives. such as browsers that can handle ICS files. To be a fully operational invitation system, Pmical would have to be updated to maintain the original request and user responses to meeting invitations. And leading on from that it would need to be able to receive updates to a meeting, like time or data or location etc.

Note that I have most of this capability waiting for Pegasus Mail to release V5 with its database support, so I have not been in a rush to deliver these addition functions that Microsoft Outlook in Windows systems have.  My problem is that I no longer have access to a Microsoft Exchange server to test with. So I cannot confirm when these functions will be available.

Finally a word of warning, Microsoft is continually changing its services, so emailing and calendaring have gone through several new generations with each one causing pain until updating is performed. So while users on Windows have little opportunity to try out other solutions, there are many mailers and contact manager apps on different platforms that could be employed(ie Apple,Samsung etc).

Let me know if I can help you further.

Martin 

  

 

 

 

<p>Hello,</p><p><span style="font-size: 10pt;">Firstly </span><span style="font-size: 10pt;">  I will try to help you. First you must understand that Pmical only displays Exchange calendar events. The MsExchange server uses a database and some strange software called Mapi, that almost no-one else uses for mailing or inviting attendees. That being said not every thing is lost. Given that you or your staff are viewing an event, you can do the following:</span></p><p><span style="font-size: 10pt;">A. Open Pmical by dropping an ICS file onto Pmical.exe then go to the Pmical menu and click on File, </span><span style="font-size: 10pt;">then click on </span><span style="font-size: 10pt;">'Save event as'...  </span><span style="font-size: 13.3333px;">Then give the Save dialog a file path and name.</span><span style="font-size: 10pt;">  A file will be created with the path and filename you supplied (ie testInvite.ics). </span><span style="font-size: 10pt;">You can then use that file to open any calendaring application on your devices, such as Microsoft Outlook and import the ICS file which will create a calendar event. All calendaring software understands this standard filetype.</span></p><p><span style="font-size: 10pt;">B. If the original sender added a keyword RSVP=YES, then you will get a short dialog asking if you want to accept or decline the invitation. Then a Pegasus Mail standard message dialog will popup with the invitation subject and sender email address filled in.   You can then add other text or recipients, and then click Send. </span></p><p><span style="font-size: 10pt;">Note that Pegasus Mail does not presently have a calendaring application builtin. But there are several alternatives. such as browsers that can handle ICS files. To be a fully operational invitation system, Pmical would have to be updated to maintain the original request and user responses to meeting invitations. And leading on from that it would need to be able to receive updates to a meeting, like time or data or location etc.</span></p><p>Note that I have most of this capability waiting for Pegasus Mail to release V5 with its database support, so I have not been in a rush to deliver these addition functions that Microsoft Outlook in Windows systems have.  My problem is that I no longer have access to a Microsoft Exchange server to test with. So I cannot confirm when these functions will be available.</p><p>Finally a word of warning, Microsoft is continually changing its services, so emailing and calendaring have gone through several new generations with each one causing pain until updating is performed. So while users on Windows have little opportunity to try out other solutions, there are many mailers and contact manager apps on different platforms that could be employed(ie Apple,Samsung etc).</p><p>Let me know if I can help you further.</p><p>Martin </p><p>  </p><p> </p><p> </p><p> </p><p>r </p>

stuzz78,

Do you use filters to detect .vcs and .ics attachments in messages as they arrive?  If so, I'm curious whether they work on these unnamced attachments.

If not, here are mine should you want to consider this approach.

If expression body matches "BEGIN:VCALENDAR" Goto "vCalendar"
If expression body matches "Content-Type: text/calendar*" Goto "vCalendar"
If expression body matches "Content-type: Application/Octet-stream; name=\"-\"* type=Text" Goto "vCalendar"
If expression body matches "QkVHSU46VkNBTEVOREFS*" Goto "vCalendar"
.
.
.
Always Exit ""
Label "vCalendar"
Always Run "pmical.exe %s"
Always Highlight "4"
Always Exit ""

<p>stuzz78,</p><p>Do you use filters to detect .vcs and .ics attachments in messages as they arrive?  If so, I'm curious whether they work on these unnamced attachments.</p><p>If not, here are mine should you want to consider this approach.</p><p>If expression body matches "BEGIN:VCALENDAR" Goto "vCalendar" If expression body matches "Content-Type: text/calendar*" Goto "vCalendar" If expression body matches "Content-type: Application/Octet-stream; name=\"-\"* type=Text" Goto "vCalendar" If expression body matches "QkVHSU46VkNBTEVOREFS*" Goto "vCalendar" . . . Always Exit "" Label "vCalendar" Always Run "pmical.exe %s" Always Highlight "4" Always Exit "" </p>

Hi Martin

I appreciate your help, but to be honest, I was quite happy with the state of play at my last reply.  My only goal with this was to see if I could make it so a double-click on an attached file would open in Pmical, format nicely, and be more easily readable.  I have no requirement to add details to any calendar software.

That being said...

Hi Brian - No, I've hardly used filters for anything before.  I'll create one like yours and report back the results.

<p>Hi Martin</p><p>I appreciate your help, but to be honest, I was quite happy with the state of play at my last reply.  My only goal with this was to see if I could make it so a double-click on an attached file would open in Pmical, format nicely, and be more easily readable.  I have no requirement to add details to any calendar software.</p><p>That being said...</p><p>Hi Brian - No, I've hardly used filters for anything before.  I'll create one like yours and report back the results.</p>

The new mail filter rules, if they detect a .ics or .vcs attachment, will invoke pmical when the message arrives, and each time the new mail folder is processed if that message marked as unread.  Once the message is marked as read it will be ignored by the filter.  Marking it as unread will again cause a trigger by the rule when the new mail folder is next processed.

The new mail filter rules, if they detect a .ics or .vcs attachment, will invoke pmical when the message arrives, and each time the new mail folder is processed if that message marked as unread.  Once the message is marked as read it will be ignored by the filter.  Marking it as unread will again cause a trigger by the rule when the new mail folder is next processed.

I created the filter as per the one above and nothing happens.  I can't see any of those expressions in the body of the email message, but it could be my inexperience in filter making too.

Maybe this particular email is special and a future email will trigger the actions.  I'll keep the filter in place and see if that happens next time.

For now, let's all move on.

Thanks 

<p>I created the filter as per the one above and nothing happens.  I can't see any of those expressions in the body of the email message, but it could be my inexperience in filter making too.</p><p>Maybe this particular email is special and a future email will trigger the actions.  I'll keep the filter in place and see if that happens next time.</p><p>For now, let's all move on.</p><p>Thanks </p>

Please forward to me (irelam17@telus.net)  the message that isn't working for you, and I will try to sort it out. 

Cheers,

       Martin 

<p>Please forward to me (irelam17@telus.net)  the message that isn't working for you, and I will try to sort it out. </p><p>Cheers,</p><p>       Martin </p>

[quote user="stuzz78"]

I created the filter as per the one above and nothing happens.  I can't see any of those expressions in the body of the email message, but it could be my inexperience in filter making too.

Maybe this particular email is special and a future email will trigger the actions.  I'll keep the filter in place and see if that happens next time.

For now, let's all move on.

Thanks 

[/quote]

I'm jumping in this thread a bit late, so please forgive me if I'm being redundant.

Rules works fine but in this case it is a must to be a "incoming new mail rule". So...

Tools > Mail filtering rules... > Edit new mail filtering rules... > Rules applied when folder is opened...

One of your first rules (if not the very first) should be:

Add rule > Always triggers... > Call label > Set... > PmIcal

.

...other rules

.

Add rule > Label… > PmIcal

Add rule > Attachments... > Only check the extension portion >  And if it contains this... > .ics,.vcs > This string is a list of possible values, separated by commas > Goto label > Set... > vCalendar

Add rule > Expression… > If this regular expression > BEGIN:VCALENDAR > Body only > Goto label > Set... > vCalendar

Add rule > Expression… > If this regular expression > Content-Type: text/calendar* > Body only > Goto label > Set... > vCalendar

Add rule > Expression… > If this regular expression > Content-type: Application/Octet-stream; name="-"* type=Text > Body only > Goto label > Set... > vCalendar

Add rule > Expression… > If this regular expression > QkVHSU46VkNBTEVOREFS > Body only > Goto label > Set... > vCalendar

Add rule > Always triggers... > Return from call

Add rule > Label… > vCalendar

Add rule > Always triggers... > Run a program  > Set... > C:\PMAIL\Programs\pmical.exe %s

Add rule > Always triggers... > Set message colour  > Set... {optional}

Add rule > Always triggers... > Move  > Set... > Calendar {optional}

Add rule > Always triggers... > Exit this rule set

 

These are the rules I'm using. Please make the adjustments like Pmical.exe path, etc.

If you'd like to just open .ics and .vcs through a mouse left-double-click just do it. Windows will ask you which application it needs to call. You just point it to pmical.exe and you're done. Remember to make an entry for each one into Tools > Options... > Content viewers. If you don't have any make empty dummies like dummy.ics and dummy.vcs.

 

[quote user="stuzz78"]<p>I created the filter as per the one above and nothing happens.  I can't see any of those expressions in the body of the email message, but it could be my inexperience in filter making too.</p><p>Maybe this particular email is special and a future email will trigger the actions.  I'll keep the filter in place and see if that happens next time.</p><p>For now, let's all move on.</p><p>Thanks </p><p>[/quote]</p><p>I'm jumping in this thread a bit late, so please forgive me if I'm being redundant.</p><p>Rules works fine but in this case it is a must to be a "incoming new mail rule". So...</p><blockquote><p><b>Tools > Mail filtering rules... > Edit new mail filtering rules... > Rules applied when folder is opened...</b></p></blockquote><p>One of your first rules (if not the very first) should be:</p><blockquote><p><b><i>Add rule > Always triggers... > Call label > Set... > <font color="#0000ff">PmIcal</font></i></b></p><p>.</p><p>...other rules </p><p>. </p><p><i><b>Add rule > Label… > <font color="#0000ff">PmIcal</font></b></i></p><p><i><b>Add rule > Attachments... > Only check the extension portion >  And if it contains this... > <font color="#0000ff">.ics,.vcs</font> > This string is a list of possible values, separated by commas > Goto label > Set... > <font color="#0000ff">vCalendar</font></b></i></p><p><i><b>Add rule > Expression… > If this regular expression > <font color="#0000ff">BEGIN:VCALENDAR</font> > Body only > Goto label > Set... > <font color="#0000ff">vCalendar</font></b></i></p><p><i><b>Add rule > Expression… > If this regular expression > <font color="#0000ff">Content-Type: text/calendar*</font> > Body only > Goto label > Set... > <font color="#0000ff">vCalendar</font></b></i></p><p><i><b>Add rule > Expression… > If this regular expression > <font color="#0000ff">Content-type: Application/Octet-stream; name="-"* type=Text</font> > Body only > Goto label > Set... > <font color="#0000ff">vCalendar</font></b></i></p><p><i><b>Add rule > Expression… > If this regular expression > <font color="#0000ff">QkVHSU46VkNBTEVOREFS</font> > Body only > Goto label > Set... > <font color="#0000ff">vCalendar</font></b></i></p><p><i><b>Add rule > Always triggers... > Return from call</b></i></p><p><i><b>Add rule > Label… > <font color="#0000ff">vCalendar</font></b></i></p><p><i><b>Add rule > Always triggers... > Run a program  > Set... > <font color="#0000ff">C:\PMAIL\Programs\pmical.exe %s</font> </b></i></p><p><i><b>Add rule > Always triggers... > Set message colour  > Set...<font color="#0000ff"><font color="#006600"> {optional}</font></font> </b></i></p><p><i><b>Add rule > Always triggers... > Move  > Set... > <font color="#0000ff">Calendar<font color="#006600"> {optional}</font></font> </b></i></p></blockquote><blockquote><i><b>Add rule > Always triggers... > Exit this rule set</b></i></blockquote><p> </p><p>These are the rules I'm using. Please make the adjustments like Pmical.exe path, etc.</p><p>If you'd like to just open .ics and .vcs through a mouse left-double-click just do it. Windows will ask you which application it needs to call. You just point it to pmical.exe and you're done. Remember to make an entry for each one into <b>Tools > Options... > Content viewers</b>. If you don't have any make empty dummies like dummy.ics and dummy.vcs.</p><p> </p>

-- Euler

Pegasus Mail 4.81.1154 Windows 7 Ultimate
IERenderer: 2.7.1.5 AttachMenu: 1.0.1.2
PMDebug: 2.5.8.34 BearHTML 4.9.9.6

 

Oh, this thread is still going-ish!

As above, yes the Content Viewer that I have set is all that I want to work.  As suggested, I just made myself a dummy.ics and sent an email to myself with it attached.  The content viewer works as expected.  I've come to the conclusion (as I think I did earlier in this thread), that the method which the sender of the email used to create and invite people to the requested meeting is what Pegasus can't deal with.

This is the screenshot of the offending email's attachment section which I tried to describe in my first post:

The contents of the "Text" part of that is a typical .ics/.vcs file that I've had experience with - it's first line is BEGIN:VCALENDAR.  All the emails I can remember receiving look like the above shot, and they're all unable to be opened via a double-click to trigger a Content Viewer rule.

 

Below is the shot of the email I sent to myself from Pegasus, with the dummy.ics attached like any other attachment.  The content viewer was happy to deal with:

 
In an attempt to help, I'll forward the non-working email to Martin as requested.
 
Thanks 
<p> </p><p> </p><p>Oh, this thread is still going-ish!</p> <p>As above, yes the Content Viewer that I have set is all that I want to work.  As suggested, I just made myself a dummy.ics and sent an email to myself with it attached.  The content viewer works as expected.  I've come to the conclusion (as I think I did earlier in this thread), that the method which the sender of the email used to create and invite people to the requested meeting is what Pegasus can't deal with.</p> <p>This is the screenshot of the offending email's attachment section which I tried to describe in my first post:</p><p></p><p> <img mce_src="https://i.imgur.com/Qd4xo2R.jpg" src="https://i.imgur.com/Qd4xo2R.jpg"></p><p>The contents of the "Text" part of that is a typical .ics/.vcs file that I've had experience with - it's first line is BEGIN:VCALENDAR.  <span style="font-size: 10pt;">All the emails I can remember receiving look like the above shot, and they're all unable to be opened via a double-click to trigger a Content Viewer rule.</span></p><p> </p> <p>Below is the shot of the email I sent to myself from Pegasus, with the dummy.ics attached like any other attachment.  The content viewer was happy to deal with:</p> <img mce_src="https://i.imgur.com/kKfWbV7.jpg" src="https://i.imgur.com/kKfWbV7.jpg"> <div> </div><div>In an attempt to help, I'll forward the non-working email to Martin as requested.</div><div> </div><div>Thanks </div>

This is all sorted.  The filter rule that Brian supplied does the job.  I set it up some time ago but didn't test it until I sent the email to myself the other day.  Pmical automatically appears when a meeting message like this - with no attachment filename - is received.

Resolved! 

<p>This is all sorted.  The filter rule that Brian supplied does the job.  I set it up some time ago but didn't test it until I sent the email to myself the other day.  Pmical automatically appears when a meeting message like this - with no attachment filename - is received.</p><p>Resolved! </p>
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft