Add-ons for Pegasus Mail
Vcalendar attachment display

Is there a way to have a vcalendar attachment display in Pegasus mail?


Is there a way to have a vcalendar attachment display in Pegasus mail?

Yes. There is an add-on created by Martin Ireland called PMICAL. It can display vcalendar content as a popup window upon receipt of a message containing such content and/or can be invoked with the attachment. Request it from him by sending an email to irelam17@SHAW.CA with the subject "send_pmical".


Yes. There is an add-on created by Martin Ireland called PMICAL. It can display vcalendar content as a popup window upon receipt of a message containing such content and/or can be invoked with the attachment. Request it from him by sending an email to irelam17@SHAW.CA with the subject "send_pmical".

I have PMICAL installed and it works to a degreee. If the vcalendar attachment has an extension then you go into attachments , find the vcalendar attchment and open it with PMICAL.


Microsoft Teams now puts the vcalendar attachment without an extension so the above does not work. Now you have to find the vcalendar attachment, save it to disk with a .vcs extension and then you can open the file from disk with PMICAL.


What I was hoping for in Pegasus is that it would recognize the vcalendar attachment and show the information when viewing the email - like Outlook and Gmail do.


I have PMICAL installed and it works to a degreee. If the vcalendar attachment has an extension then you go into attachments , find the vcalendar attchment and open it with PMICAL. Microsoft Teams now puts the vcalendar attachment without an extension so the above does not work. Now you have to find the vcalendar attachment, save it to disk with a .vcs extension and then you can open the file from disk with PMICAL. What I was hoping for in Pegasus is that it would recognize the vcalendar attachment and show the information when viewing the email - like Outlook and Gmail do.
edited 5 days ago at 7:32 pm

Below is the content of my notes-to-self on the subject. I don't know your level of expertise with Pegasus Mail so have posted the new mail filter rules and content viewer entries. Post back for specific help.


New mail filter rules:


If expression body matches "Content-Type: text/calendar" Run "c:\pmail\programs\pmical.exe %s"
If expression body matches "Content-Type: text/vcalendar
" Run "c:\pmail\programs\pmical.exe %s"
If expression body matches "QkVHSU46VkNBTEVOREFS" Run "c:\pmail\programs\pmical.exe %s"
If expression body matches "BEGIN:VCALENDAR" Run "c:\pmail\programs\pmical.exe %s"
If attachment ExtnPart contains ".ics,.vcs" Run "c:\pmail\programs\pmical.exe %s"


The Content Viewer (VIEWER.PM) should contain these entries.


1;.ics;-;pmical.exe
1;.vcs;-;pmical.exe


Below is the content of my notes-to-self on the subject. I don't know your level of expertise with Pegasus Mail so have posted the new mail filter rules and content viewer entries. Post back for specific help. New mail filter rules: If expression body matches "Content-Type: text/calendar*" Run "c:\\pmail\\programs\\pmical.exe %s" If expression body matches "Content-Type: text/vcalendar*" Run "c:\\pmail\\programs\\pmical.exe %s" If expression body matches "QkVHSU46VkNBTEVOREFS" Run "c:\\pmail\\programs\\pmical.exe %s" If expression body matches "BEGIN:VCALENDAR" Run "c:\\pmail\\programs\\pmical.exe %s" If attachment ExtnPart contains ".ics,.vcs" Run "c:\\pmail\\programs\\pmical.exe %s" The Content Viewer (VIEWER.PM) should contain these entries. 1;.ics;-;pmical.exe 1;.vcs;-;pmical.exe

I just found it under Tools->Mail but which option to I use and how to I add the example Ifs you provided?


Thanks for the information.


I have the two lines in the Content Viewer(VIEWER.PM)


Because Pegasus identifies the Teams attachments clled Calendar as "Calendar invitation or information" I also added the following to content viewer:


2;Calendar invitation or information;.vcs;P:\PMAIL\Programs\pmical.exe


It does not make the Calendar attachment display in the message viewer and it does not make them recognized in the Attachments tab.


Where/how do I add the "mail filter rules"? I see the "Rule-based mail filtering" entry in Pegasus help but it does not tell you where or how you can add the filtering rules.


I just found it under Tools->Mail but which option to I use and how to I add the example Ifs you provided? Thanks for the information. I have the two lines in the Content Viewer(VIEWER.PM) Because Pegasus identifies the Teams attachments clled Calendar as "Calendar invitation or information" I also added the following to content viewer: 2;Calendar invitation or information;.vcs;P:\PMAIL\Programs\pmical.exe It does not make the Calendar attachment display in the message viewer and it does not make them recognized in the Attachments tab. Where/how do I add the "mail filter rules"? I see the "Rule-based mail filtering" entry in Pegasus help but it does not tell you where or how you can add the filtering rules.
edited 4 days ago at 2:16 pm

I have attempted to add the filtering rules via Tools->Mail Filtering Rules->Create/Edit general rule set.


I then add a new rule set with the following:


Type Trigger Conditions Action
Expression text/vcalendar Run a program, "p:\pmail\programs\pmical.exe %s
Expression BEGIN:VCALENDAR Run a program, "p:\pmail\programs\pmical.exe %s
Expression BEGIN:CALENDAR Run a program, "p:\pmail\programs\pmical.exe %s
Expression text/calendar Run a program, "p:\pmail\programs\pmical.exe %s


The Calendar attachment is still not recognized.


Is there a way to request that something be added to Pegasus or is there just this community and the hope that a Pegasus developer comes acrosss your post?


I have attempted to add the filtering rules via Tools->Mail Filtering Rules->Create/Edit general rule set. I then add a new rule set with the following: Type Trigger Conditions Action Expression *text/vcalendar* Run a program, "p:\pmail\programs\pmical.exe %s Expression *BEGIN:VCALENDAR* Run a program, "p:\pmail\programs\pmical.exe %s Expression *BEGIN:CALENDAR* Run a program, "p:\pmail\programs\pmical.exe %s Expression *text/calendar* Run a program, "p:\pmail\programs\pmical.exe %s The Calendar attachment is still not recognized. Is there a way to request that something be added to Pegasus or is there just this community and the hope that a Pegasus developer comes acrosss your post?

If I highlight a message, then click Tools->Mail Filtering Rules->Apply general rule set to selection and the selected email has a Calendar attachment, PMICAL is invoked and the calender info is displayed.


Is this the only way that it works?


Can we get Pegasus to "see" these calendar attachments(it knows that the attachment is a calendar attachment if the Attachments tab is to be believed) and display this information when you vie the message? That is what more other mail clients seem to do and it would be nice if I didn't have to realize there is a calender attachement highlit the message and then click-click-click-click to have it be displayed


If I highlight a message, then click Tools->Mail Filtering Rules->Apply general rule set to selection and the selected email has a Calendar attachment, PMICAL is invoked and the calender info is displayed. Is this the only way that it works? Can we get Pegasus to "see" these calendar attachments(it knows that the attachment is a calendar attachment if the Attachments tab is to be believed) and display this information when you vie the message? That is what more other mail clients seem to do and it would be nice if I didn't have to realize there is a calender attachement highlit the message and then click-click-click-click to have it be displayed
edited 4 days ago at 2:57 pm

Let me start with an explanation of the different ways PMICAL can be utilized.


First, let's about .vcs or .ics attached files. The entries in VIEWER.PM tell Pegasus Mail that when you double-click on one of these files in a message viewer attachment pane, PMICAL will be invoked and the attached file passed to it. A PMICAL window will then popup showing the calendar content.


Next, let's talk about the display of calendar content as the message arrives. This is what the new mail filters do. Note "new mail" not "general" filters. As each message arrives it passes through new mail filters. If calendar content is detected, PMICAL is invoked and the calendar content is immediately displayed. Know that all unread messages in the new mail folder folder get processed through the new mail filtering rules so calendar content in an unread message will pop up each time the new mail folder is opened. This may be annoying if you keep unread messages in the new mail folder but it serves as a way to re-view calendar content by placing the message in the new mail folder, marking it as unread, then closing/reopening the new mail folder.


I am going to work on a separate post about how to create the new mail filtering rules.


Let me start with an explanation of the different ways PMICAL can be utilized. First, let's about .vcs or .ics attached files. The entries in VIEWER.PM tell Pegasus Mail that when you double-click on one of these files in a message viewer attachment pane, PMICAL will be invoked and the attached file passed to it. A PMICAL window will then popup showing the calendar content. Next, let's talk about the display of calendar content as the message arrives. This is what the new mail filters do. Note "new mail" not "general" filters. As each message arrives it passes through new mail filters. If calendar content is detected, PMICAL is invoked and the calendar content is immediately displayed. Know that all unread messages in the new mail folder folder get processed through the new mail filtering rules so calendar content in an unread message will pop up each time the new mail folder is opened. This may be annoying if you keep unread messages in the new mail folder but it serves as a way to re-view calendar content by placing the message in the new mail folder, marking it as unread, then closing/reopening the new mail folder. I am going to work on a separate post about how to create the new mail filtering rules.

For creating the new mail filtering rules:


Go to Tools > Mail filtering rules > Edit new mail filtering rules > Rules applies when folder is opened...
694576fdcedfc


This will open the "New mail filtering rules" window. In it click its "Add rule" toolbar button.


  • Click the "Expression..." button
  • In the "If this regular expression" box type "Content-Type: text/calendar*" (no quotes)
  • Click the Body only radio button
  • In the "Action" field select "Run a program"
  • Click the Set button then enter c:\pmail\programs\pmical.exe %s" (no quotes)
  • Click OKClick OK again to save the rule

Follow the same process to create the other three expression rules using the following content in the "If this regular expression" box:"Content-Type: text/vcalendar*" "BEGIN:VCALENDAR""QkVHSU46VkNBTEVOREFS"

The final rule detects for an .vcs or .ics attachment. To created that rule click the Add rule button...

  • Click the Attachments... button
  • Tick the "Only check the extension portion" radio button
  • In the "And if it contains this" field type ".ics,.vcs" (no quotes)
  • In the Action field select "Run a program"
  • Click the set button and enter "c:\pmail\programs\pmical.exe %s" (no quotes)"
  • Click OK
  • Click OK again to save the rule

Once done, you should have a list of rules that looks like this:
69457dfa66fc2


Click the Save toolbar button to save the rule set.
Click the Close toolbar button to close the window.


Now test the behavior by placing a message that contains calendar content in the new mail folder, make sure it is marked as unread, the close/open the new mail folder. The calendar content should appear.


For creating the new mail filtering rules: Go to Tools > Mail filtering rules > Edit new mail filtering rules > Rules applies when folder is opened... ![694576fdcedfc](serve/attachment&path=694576fdcedfc) This will open the "New mail filtering rules" window. In it click its "Add rule" toolbar button. - Click the "Expression..." button - In the "If this regular expression" box type "Content-Type: text/calendar*" (no quotes) - Click the Body only radio button - In the "Action" field select "Run a program" - Click the Set button then enter c:\pmail\programs\pmical.exe %s" (no quotes) - Click OK Click OK again to save the rule Follow the same process to create the other three expression rules using the following content in the "If this regular expression" box: "Content-Type: text/vcalendar*" "BEGIN:VCALENDAR" "QkVHSU46VkNBTEVOREFS" The final rule detects for an .vcs or .ics attachment. To created that rule click the Add rule button... - Click the Attachments... button - Tick the "Only check the extension portion" radio button - In the "And if it contains this" field type ".ics,.vcs" (no quotes) - In the Action field select "Run a program" - Click the set button and enter "c:\pmail\programs\pmical.exe %s" (no quotes)" - Click OK - Click OK again to save the rule Once done, you should have a list of rules that looks like this: ![69457dfa66fc2](serve/attachment&path=69457dfa66fc2) Click the Save toolbar button to save the rule set. Click the Close toolbar button to close the window. Now test the behavior by placing a message that contains calendar content in the new mail folder, make sure it is marked as unread, the close/open the new mail folder. The calendar content should appear.

Thanks for all the info Brian.


I have added the rules to the "Rules applied when folder is open" and it works when the email is received or left unread.


Is there any way for it to get invoked each time you open a specific message. Whether it is the first or tenth time it is opened.


Some of my customers will send me multiple emails with meeting requests. I will keep the read messages in my New Mail folder until the meeting date so that I can click on the link to join the meeting. One is movin to a new version of Linux so I have 5 future meeting emails. All have the same subject . Because they use Teams, the times and dates of the meeting are no in the body of the message because if you view the message in Outlook, it shows always displays the date and time of the meeting.


I can ue the "highlight a message, then click Tools->Mail Filtering Rules->Apply general rule set to selection" to check the metting dates.


Thanks for all the info Brian. I have added the rules to the "Rules applied when folder is open" and it works when the email is received or left unread. Is there any way for it to get invoked each time you open a specific message. Whether it is the first or tenth time it is opened. Some of my customers will send me multiple emails with meeting requests. I will keep the read messages in my New Mail folder until the meeting date so that I can click on the link to join the meeting. One is movin to a new version of Linux so I have 5 future meeting emails. All have the same subject . Because they use Teams, the times and dates of the meeting are no in the body of the message because if you view the message in Outlook, it shows always displays the date and time of the meeting. I can ue the "highlight a message, then click Tools->Mail Filtering Rules->Apply general rule set to selection" to check the metting dates.

Is there any way for it to get invoked each time you open a specific message. Whether it is the first or tenth time it is opened.


Unfortunately not. The only options I knew before now were the automatic method as unread new mail and the manual opening of a calendar content attachment. Applying a general rule set to a message had never crossed my mind. It's ingenious.


[quote="pid:58448, uid:3189"]Is there any way for it to get invoked each time you open a specific message. Whether it is the first or tenth time it is opened.[/quote] Unfortunately not. The only options I knew before now were the automatic method as unread new mail and the manual opening of a calendar content attachment. Applying a general rule set to a message had never crossed my mind. It's ingenious.
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