Community Discussions and Support
IERenderer v2.6.2.2 and VIEWER.PM

Thanks Michael. Made the update today and it is working fine so far.

Thanks Michael. Made the update today and it is working fine so far.

-- 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

I just had a EUREKA moment regarding VIEWER.PM as affected by IERender 2.6.2.2.

Here's what came into focus:

1. The VIEWER.PM file that is in each mailbox directory default entries plus any added via Tools/Options/Content Viewers.

2. The VIEWER.PM file that is in \PROGRAMS contains a global list of content viewers which appears to get appended to the personal list.  This is visible when looking at the list in Tools/Options/Content Viewers.  The personal list entries are displayed in black, the global ones are in blue.

3. IERenderer 2.6.2.2 is updating the global VIEWER.PM (from registry is the current guess) in order to make as many viewers as possible available to Pegasus Mail.  The personal viewer entries are left untouched.


Unfortunately, this process breaks any entries added to the global viewer list in multi-user installations.

--
Brian Fluet

I just had a EUREKA moment regarding VIEWER.PM as affected by IERender 2.6.2.2. Here's what came into focus: 1. The VIEWER.PM file that is in each mailbox directory default entries plus any added via Tools/Options/Content Viewers. 2. The VIEWER.PM file that is in \PROGRAMS contains a global list of content viewers which appears to get appended to the personal list.  This is visible when looking at the list in Tools/Options/Content Viewers.  The personal list entries are displayed in black, the global ones are in blue. 3. IERenderer 2.6.2.2 is updating the global VIEWER.PM (from registry is the current guess) in order to make as many viewers as possible available to Pegasus Mail.  The personal viewer entries are left untouched. Unfortunately, this process breaks any entries added to the global viewer list in multi-user installations. -- Brian Fluet

[quote user="Brian Fluet"]3. IERenderer 2.6.2.2 is updating the global VIEWER.PM (from registry is the current guess) in order to make as many viewers as possible available to Pegasus Mail.  The personal viewer entries are left untouched.


Unfortunately, this process breaks any entries added to the global viewer list in multi-user installations.[/quote]

OK, now that I'm almost back from vacation: Most of your assumptions are correct. The only goal of adding all these media entries is forcing Pegasus Mail into passing on inline media files (such as images) to its HTML renderers with their proper file extensions (which it doesn't do in lots of cases by default, hence the image display issues in IER's recent version for many users which I still don't fully understand). It does not change or remove any existing entries, but I don't know what priorities Pegasus Mail assigns to the order of the entries. It does not assign any special viewers to the entries other than the Windows default for the respective filename extension (the viewer is not relevant for IER, only the file extension).

<p>[quote user="Brian Fluet"]3. IERenderer 2.6.2.2 is updating the global VIEWER.PM (from registry is the current guess) in order to make as many viewers as possible available to Pegasus Mail.  The personal viewer entries are left untouched. Unfortunately, this process breaks any entries added to the global viewer list in multi-user installations.[/quote]</p><p>OK, now that I'm almost back from vacation: Most of your assumptions are correct. The only goal of adding all these media entries is forcing Pegasus Mail into passing on inline media files (such as images) to its HTML renderers with their proper file extensions (which it doesn't do in lots of cases by default, hence the image display issues in IER's recent version for many users which I still don't fully understand). It does <i>not</i> change or remove any existing entries, but I don't know what priorities Pegasus Mail assigns to the order of the entries. It does <i>not</i> assign any special viewers to the entries other than the Windows default for the respective filename extension (the viewer is not relevant for IER, only the file extension). </p>
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

What does IER use to determine which VIEWER.PM file to update when multiple instances of Pegasus Mail are running?

Also, in multi-user network installations of Pegasus Mail I believe it is common practice the protect the \Programs directory.  Does IER gracefully tolerate a write protected VIEWER.PM file?

<p>What does IER use to determine which VIEWER.PM file to update when multiple instances of Pegasus Mail are running?</p><p>Also, in multi-user network installations of Pegasus Mail I believe it is common practice the protect the \Programs directory.  Does IER gracefully tolerate a write protected VIEWER.PM file? </p>

[quote user="Brian Fluet"]What does IER use to determine which VIEWER.PM file to update when multiple instances of Pegasus Mail are running?[/quote]

It updates the file in the directory where Pegasus Mail's executable is launched from so all users working with this installation of Pegasus Mail are affected.

[quote user="Brian Fluet"]Also, in multi-user network installations of Pegasus Mail I believe it is common practice the protect the \Programs directory.  Does IER gracefully tolerate a write protected VIEWER.PM file?[/quote]

It works on the same access level as the running instance of Pegasus Mail and cannot overwrite read-only files. Well, I just realized that it even fails with a fatal exception at least in the latter case, i.e. I'll have to fix this ASAP.

Any other suggestions? Maybe I should compare existing entries for already existing file types and only add additional ones if they have already extensions asigned?

<p>[quote user="Brian Fluet"]What does IER use to determine which VIEWER.PM file to update when multiple instances of Pegasus Mail are running?[/quote]</p><p>It updates the file in the directory where Pegasus Mail's executable is launched from so all users working with this installation of Pegasus Mail are affected. </p><p>[quote user="Brian Fluet"]Also, in multi-user network installations of Pegasus Mail I believe it is common practice the protect the \Programs directory.  Does IER gracefully tolerate a write protected VIEWER.PM file?[/quote]</p><p>It works on the same access level as the running instance of Pegasus Mail and cannot overwrite read-only files. Well, I just realized that it even fails with a fatal exception at least in the latter case, i.e. I'll have to fix this ASAP.</p><p>Any other suggestions? Maybe I should compare existing entries for already existing file types and only add additional ones if they have already extensions asigned? </p>
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

[quote user="idw"]

[quote user="Brian Fluet"]What does IER use to determine which VIEWER.PM file to update when multiple instances of Pegasus Mail are running?[/quote]

It updates the file in the directory where Pegasus Mail's executable is launched from so all users working with this installation of Pegasus Mail are affected.[/quote]

Ok.  That's the last started instance which may not be the instance being IER upgraded.  This is unlikely to be an issue but is good to know.  Consider adding to documentation.

[quote user="idw"][quote user="Brian Fluet"]Also, in multi-user network installations of Pegasus Mail I believe it is common practice the protect the \Programs directory.  Does IER gracefully tolerate a write protected VIEWER.PM file?[/quote]

It works on the same access level as the running instance of Pegasus Mail and cannot overwrite read-only files. Well, I just realized that it even fails with a fatal exception at least in the latter case, i.e. I'll have to fix this ASAP. [/quote]

Thanks for identifying and prioritizing a fix.

[quote user="idw"]Any other suggestions? Maybe I should compare existing entries for already existing file types and only add additional ones if they have already extensions asigned?[/quote]

The question was asked about precedence and since that is unknown, avoiding duplicates is a good idea.

As for updating the VIEWER.PM of a protected network install, in my case,

Pegasus Mail is not "installed" on the server so could never be run in a

way that would allow IER to update VIEWER.PM.  What are your thoughts

on updating it manually?  Copy from a different install on another

machine?  Perhaps on write protect failure prompt for an alternate destination?  

 

[quote user="idw"]<p>[quote user="Brian Fluet"]What does IER use to determine which VIEWER.PM file to update when multiple instances of Pegasus Mail are running?[/quote]</p><p>It updates the file in the directory where Pegasus Mail's executable is launched from so all users working with this installation of Pegasus Mail are affected.[/quote]</p><p>Ok.  That's the last started instance which may not be the instance being IER upgraded.  This is unlikely to be an issue but is good to know.  Consider adding to documentation. </p><p>[quote user="idw"][quote user="Brian Fluet"]Also, in multi-user network installations of Pegasus Mail I believe it is common practice the protect the \Programs directory.  Does IER gracefully tolerate a write protected VIEWER.PM file?[/quote]</p><p>It works on the same access level as the running instance of Pegasus Mail and cannot overwrite read-only files. Well, I just realized that it even fails with a fatal exception at least in the latter case, i.e. I'll have to fix this ASAP. [/quote]</p><p>Thanks for identifying and prioritizing a fix.</p><p>[quote user="idw"]Any other suggestions? Maybe I should compare existing entries for already existing file types and only add additional ones if they have already extensions asigned?[/quote]</p><p>The question was asked about precedence and since that is unknown, avoiding duplicates is a good idea.</p><p>As for updating the VIEWER.PM of a protected network install, in my case, Pegasus Mail is not "installed" on the server so could never be run in a way that would allow IER to update VIEWER.PM.  What are your thoughts on updating it manually?  Copy from a different install on another machine?  Perhaps on write protect failure prompt for an alternate destination?   </p><p>  </p>

[quote user="Brian Fluet"]What does IER use to determine which VIEWER.PM file to update when multiple instances of Pegasus Mail are running?

[quote user="idw"]It updates the file in the directory where Pegasus Mail's executable is launched from so all users working with this installation of Pegasus Mail are affected.[/quote]

Ok.  That's the last started instance which may not be the instance being IER upgraded.  This is unlikely to be an issue but is good to know.  Consider adding to documentation.[/quote]

Well, this doesn't really matter since IER will try to update viewer.pm each time Pegasus Mail is launched until some "signature" extensions (not provided by the Windows Registry, for the curious ones) will have been added.

[quote user="Brian Fluet"]The question was asked about precedence and since that is unknown, avoiding duplicates is a good idea.[/quote]

I'll check this out with regard to possible side effects and especially ask David Harris about PMs precedences.

[quote user="Brian Fluet"]As for updating the VIEWER.PM of a protected network install, in my case,

Pegasus Mail is not "installed" on the server so could never be run in a

way that would allow IER to update VIEWER.PM.  What are your thoughts

on updating it manually?  Copy from a different install on another

machine?  Perhaps on write protect failure prompt for an alternate destination?[/quote]

Doing this manually would be an option, but I think I could simply fall back to modifying viewer.pm files in the respective user's new mail directory in such cases especially if using the above discussed "avoid duplicates" approach.

[quote user="Brian Fluet"]What does IER use to determine which VIEWER.PM file to update when multiple instances of Pegasus Mail are running?<p>[quote user="idw"]It updates the file in the directory where Pegasus Mail's executable is launched from so all users working with this installation of Pegasus Mail are affected.[/quote]</p><p>Ok.  That's the last started instance which may not be the instance being IER upgraded.  This is unlikely to be an issue but is good to know.  Consider adding to documentation.[/quote]</p><p>Well, this doesn't really matter since IER will try to update viewer.pm each time Pegasus Mail is launched until some "signature" extensions (not provided by the Windows Registry, for the curious ones) will have been added. </p>[quote user="Brian Fluet"]The question was asked about precedence and since that is unknown, avoiding duplicates is a good idea.[/quote]<p>I'll check this out with regard to possible side effects and especially ask David Harris about PMs precedences. </p><p>[quote user="Brian Fluet"]As for updating the VIEWER.PM of a protected network install, in my case, Pegasus Mail is not "installed" on the server so could never be run in a way that would allow IER to update VIEWER.PM.  What are your thoughts on updating it manually?  Copy from a different install on another machine?  Perhaps on write protect failure prompt for an alternate destination?[/quote]</p><p>Doing this manually would be an option, but I think I could simply fall back to modifying viewer.pm files in the respective user's new mail directory in such cases especially if using the above discussed "avoid duplicates" approach. </p>
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

I've just uploaded another update dealing with some more issues related to the browser submenu and viewer.pm, please read the version history for details on <http://community.pmail.com/files/folders/community_add-ons_for_pegasus_mail/entry24145.aspx>.

Well, thought I might as well just copy it in here: 

15.09.2019, 20:30 (MST): Version 2.6.2.4

  • This version fixes another issue related to the browser selection submenu of the message display pane's context menu where the webbrowser was invoked twice if the submenu was disabled either on purpose or for (so far) unknown reasons.
  • The addition of data to Pegasus Mail's viewer.pm file has been significantly modified:

    • There shouldn't occur any error messages resp. potentially fatal exceptions anymore if the main viewer.pm in Pegasus Mail's "..\Programs\.." directory cannot be accessed for whatever reasons.
    • If this file cannot be accessed IER will instead add the required entries to the viewer.pm directory of the current Pegasus Mail user's new mail directory.
    • In case any of the accessed viewer.pm files contains entries already defining how to deal with the respective file type (i.e. whether and how to execute its contents) IER will check whether these entries also define the proper filename extension for media files (especially images) to be displayed by browsers (including the IER rendering machine) and only add such an extension in its proper place if missing. Previously added duplicates will be removed.

  • Since both depending on HTTP headers (for remote images) or MIME headers (for inline images) won't cover all cases of missing proper file extensions I've implemented another check using the FreeImage library already used by Pegasus Mail for image processing. It provides a fast routine for reading the respective file's header signature for determinig it's file type. I really hope this will now cover most if not all cases of image file detection unless they've been subject to forgery.

&lt;p&gt;I&#039;ve just uploaded another update dealing with some more issues related to the browser submenu and viewer.pm, please read the version history for details on &amp;lt;&lt;a mce_href=&quot;/files/folders/community_add-ons_for_pegasus_mail/entry24145.aspx&quot; target=&quot;_blank&quot; href=&quot;/files/folders/community_add-ons_for_pegasus_mail/entry24145.aspx&quot;&gt;http://community.pmail.com/files/folders/community_add-ons_for_pegasus_mail/entry24145.aspx&lt;/a&gt;&amp;gt;.&lt;/p&gt; &lt;p&gt;Well, thought I might as well just copy it in here:&amp;nbsp; &lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;b&gt;15.09.2019, 20:30 (MST): Version 2.6.2.4&lt;/b&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;This version fixes another issue related to the browser selection submenu of the message display pane&#039;s context menu where the webbrowser was invoked twice if the submenu was disabled either on purpose or for (so far) unknown reasons.&lt;/li&gt; &lt;li&gt;The addition of data to Pegasus Mail&#039;s &lt;i&gt;viewer.pm&lt;/i&gt; file has been significantly modified: &lt;ul&gt; &lt;li&gt;There shouldn&#039;t occur any error messages resp. potentially fatal exceptions anymore if the main &lt;i&gt;viewer.pm&lt;/i&gt; in Pegasus Mail&#039;s &quot;..\Programs\..&quot; directory cannot be accessed for whatever reasons.&lt;/li&gt; &lt;li&gt;If this file cannot be accessed IER will instead add the required entries to the &lt;i&gt;viewer.pm&lt;/i&gt; directory of the current Pegasus Mail user&#039;s new mail directory.&lt;/li&gt; &lt;li&gt;In case any of the accessed &lt;i&gt;viewer.pm&lt;/i&gt; files contains entries already defining how to deal with the respective file type (i.e. whether and how to execute its contents) IER will check whether these entries also define the proper filename extension for media files (especially images) to be displayed by browsers (including the IER rendering machine) and only add such an extension in its proper place if missing. Previously added duplicates will be removed.&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;Since both depending on HTTP headers (for remote images) or MIME headers (for inline images) won&#039;t cover all cases of missing proper file extensions I&#039;ve implemented another check using the &lt;i&gt;FreeImage&lt;/i&gt; library already used by Pegasus Mail for image processing. It provides a fast routine for reading the respective file&#039;s header signature for determinig it&#039;s file type. I really hope this will now cover most if not all cases of image file detection unless they&#039;ve been subject to forgery.&lt;/li&gt; &lt;/ul&gt; &lt;/blockquote&gt;
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

OK, I'm back again now after vacation and health related breaks and some further frustrating trials and errors. I can now at least tell that IER's image display issue has been solved after detecting a Windows "feature" I didn't ever expect to exist at all in combination with IE's special handling of long filenames with blank spaces that exclusively affects only MS browsers as far as I can tell so far. Whether the browser submenu issue has finally been fixed (some users just don't seeing it at all) I still can't tell for sure since the final tests still have to be done, but I have been redesigning its handling completely. If your'e interested in more details please take a look at IER's version history, I'll just provide a link to the ominious Windows feature here mentioned above which even most people who encountered the image display issue very likely don't know having been struck by. Here's the download link, BTW ...

PS: Disabling 8.3 filenames on some systems and using percent encoding for blanks in long filenames caused IE & IER to fail in loading images properly, to make a long story short ...

&lt;p&gt;OK, I&#039;m back again now after vacation and health related breaks and some further frustrating trials and errors. I can now at least tell that IER&#039;s image display issue has been solved after detecting a Windows &quot;feature&quot; I didn&#039;t ever expect to exist at all in combination with IE&#039;s special handling of long filenames with blank spaces that exclusively affects only MS browsers as far as I can tell so far. Whether the browser submenu issue has finally been fixed (some users just don&#039;t seeing it at all) I still can&#039;t tell for sure since the final tests still have to be done, but I have been redesigning its handling completely. If your&#039;e interested in more details please take a look at &lt;a mce_href=&quot;/files/folders/community_add-ons_for_pegasus_mail/entry24145.aspx&quot; target=&quot;_blank&quot; href=&quot;/files/folders/community_add-ons_for_pegasus_mail/entry24145.aspx&quot;&gt;IER&#039;s version history&lt;/a&gt;, I&#039;ll just provide a &lt;a mce_href=&quot;https://support.microsoft.com/en-us/help/121007/how-to-disable-8-3-file-name-creation-on-ntfs-partitions&quot; target=&quot;_blank&quot; href=&quot;https://support.microsoft.com/en-us/help/121007/how-to-disable-8-3-file-name-creation-on-ntfs-partitions&quot;&gt;link to the ominious Windows feature&lt;/a&gt; here mentioned above which even most people who encountered the image display issue very likely don&#039;t know having been struck by. Here&#039;s the &lt;a mce_href=&quot;/files/folders/24145/download.aspx&quot; href=&quot;/files/folders/24145/download.aspx&quot;&gt;download link&lt;/a&gt;, BTW ...&lt;/p&gt;&lt;p&gt;PS: Disabling 8.3 filenames on some systems and using percent encoding for blanks in long filenames caused IE &amp;amp; IER to fail in loading images properly, to make a long story short ... &lt;/p&gt;
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C

Just to let you know that Firefox is warning of an expired certificate when fetching your latest IER from your website. Welcome back.....

Martin

&lt;p&gt;Just to let you know that Firefox is warning of an expired certificate when fetching your latest IER from your website. Welcome back.....&lt;/p&gt;&lt;p&gt;Martin &lt;/p&gt;

[quote user="irelam"]Just to let you know that Firefox is warning of an expired certificate when fetching your latest IER from your website. Welcome back.....[/quote]

None of my browsers including Firefox does so and it would be rather odd if any did since the file is hosted by one of or still the largest German internet provider(s).

&lt;p&gt;[quote user=&quot;irelam&quot;]Just to let you know that Firefox is warning of an expired certificate when fetching your latest IER from your website. Welcome back.....[/quote]&lt;/p&gt;&lt;p&gt;None of my browsers including Firefox does so and it would be rather odd if any did since the file is hosted by one of or still &lt;i&gt;the&lt;/i&gt; largest German internet provider(s). &lt;/p&gt;
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C
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