Support for symlinked newsrc-*
Submitted by Tobias Getzner
Assigned to pan..@..e.bugs
Link to original bug (#737103)
Description
When Pan2 0.139 is closed, it seems that the newsrc-* files in ~/.pan2 are deleted and recreated from scratch. When one’s newsrc-* files in ~/.pan2 are symlinks (e.g. to a synced Dropbox or Owncloud folder), this will case the symlink to be removed and replaced by a regular file.
In order to allow syncing one’s read messages, it would be convenient if symlinks were not clobbered, e.g., by truncating the file in-place and writing out new contents, instead of deleting the old file.
A work-around might be symlinking the entire ~/.pan2 directory, but this is undesirable, as this will also sync chaces or other ephemeral data. One alternative to using in-place writes might be to support the XDG-style directories, and store caches under ~/.cache, while keeping config or state under ~/.config; then one could just symlink the config-directory and leave the .cache directory unsynched.
Thanks for making pan2!
Best regards, T.