The backup on the other machine probably won't help you, because once again, the folder
UIDs will be different, even if the content of the folder is the same, meaning that WinPMail
won't be able to match the existing cache file to the new system. As I said in my previous
message, the .PHC files are inherently ephemeral, and they are very tightly-tied to the UID
assigned by the server for the folder they are caching.
For clarification: the colour information is stored in the cache, not on the server, so as long
as you can't match the cache to a current version of the folder on the server that has the
same server-assigned UID, the colour information is effectively lost. I'm assuming that
the folder on the server containing the actual messages wasn't somehow lost during the
upgrade, so you should be able to get a new, complete, accurate set of headers for the
folder simply by opening that folder on the new server: the headers won't have your
colouring, but would at least give you a starting point for doing it again, by moving or
copying the messages to a local folder and re-applying the colour data.
As far as how the colours are stored in the .PHC file... Well, that information really isn't of
much use to you because the file itself is a paged database, and without routines that
allowed you to read the data from the database, you couldn't easily access the data it
contains. This is unlike the native (and ancient) Pegasus Mail .PMM/.PMI format, where the
.PMI index file is simply a flat file of a predictable structure (which is why it loads so quickly).
The paged database manager is one of my own developments, so there isn't a convenient
open-source product you could download to allow you to read the files, either.
As for documentation on the cache file format - no, there isn't any apart from the source
code itself, I'm afraid, and I'd be reluctant to provide it even if I had it - and because that
sounds a bit unhelpful, I should explain why: in the early days of Pegasus Mail I documented
the .PMM/.PMI format and made it public, only later realizing that doing that made it almost
impossible to change the format at a later stage, which is why the folder format is so very
much a frozen creature of its time. The only way I could get around that was to develop a
completely new folder format, and I decided early on that I would not document it in any
way, instead providing a basic import/export facility for it.
Finally, the tenor of your message suggests that you might be planning to repeat the
process and try adjusting newly-created cache files the way you previously did, but I
truly recommend in the strongest possible terms that you don't do that, because sooner
or later, the very nature of the way the files are used will put you in the same position
again.
Sorry I can't offer you more than this.
-- David --
The backup on the other machine probably won't help you, because once again, the folder
UIDs will be different, even if the content of the folder is the same, meaning that WinPMail
won't be able to match the existing cache file to the new system. As I said in my previous
message, the .PHC files are inherently ephemeral, and they are very tightly-tied to the UID
assigned by the server for the folder they are caching.
For clarification: the colour information is stored in the cache, not on the server, so as long
as you can't match the cache to a current version of the folder on the server that has the
same server-assigned UID, the colour information is effectively lost. I'm assuming that
the folder on the server containing the actual messages wasn't somehow lost during the
upgrade, so you should be able to get a new, complete, accurate set of headers for the
folder simply by opening that folder on the new server: the headers won't have your
colouring, but would at least give you a starting point for doing it again, by moving or
copying the messages to a local folder and re-applying the colour data.
As far as how the colours are stored in the .PHC file... Well, that information really isn't of
much use to you because the file itself is a paged database, and without routines that
allowed you to read the data from the database, you couldn't easily access the data it
contains. This is unlike the native (and ancient) Pegasus Mail .PMM/.PMI format, where the
.PMI index file is simply a flat file of a predictable structure (which is why it loads so quickly).
The paged database manager is one of my own developments, so there isn't a convenient
open-source product you could download to allow you to read the files, either.
As for documentation on the cache file format - no, there isn't any apart from the source
code itself, I'm afraid, and I'd be reluctant to provide it even if I had it - and because that
sounds a bit unhelpful, I should explain why: in the early days of Pegasus Mail I documented
the .PMM/.PMI format and made it public, only later realizing that doing that made it almost
impossible to change the format at a later stage, which is why the folder format is so very
much a frozen creature of its time. The only way I could get around that was to develop a
completely new folder format, and I decided early on that I would not document it in any
way, instead providing a basic import/export facility for it.
Finally, the tenor of your message suggests that you might be planning to repeat the
process and try adjusting newly-created cache files the way you previously did, but I
truly recommend in the strongest possible terms that you don't do that, because sooner
or later, the very nature of the way the files are used will put you in the same position
again.
Sorry I can't offer you more than this.
-- David --