Because the implementation of Spamhalter requires that the Spam folder's *filename* does not change, "emptying" that spam folder by simply deleting it is no longer possible.
The only way that I know of to preserve the association between filename and foldername is to empty the folder manually (i.e. message for message) which is a tiresome exercise when there are are (tens of) thousands of messages in the folder.
Suggestion 1: *check* if a folder is "special" (i.e. referred to by a configuration setting) before deleting it. If it is "special", then 'delete' it by simply recreating the file with only the folder header (with no messages). Alternatively, delete it first, and then immediately recreate it with no messages. This alternate method preserves the option of salvaging the file if the deletion was accidental.
Suggestion 2: cache the filenames of "special" folders. When moving a message, automatically recreate that folder with the same filename it had before.
Suggestion 3: never ever use filenames to identify folders. Always use *folder* names (even for extensions).
<p>Because the implementation of Spamhalter requires that the Spam folder's *filename* does not change, "emptying" that spam folder by simply deleting it is no longer possible. </p><p>The only way that I know of to preserve the association between filename and foldername is to empty the folder manually (i.e. message for message) which is a tiresome exercise when there are are (tens of) thousands of messages in the folder.</p><p>Suggestion 1: *check* if a folder is "special" (i.e. referred to by a configuration setting) before deleting it. If it is "special", then 'delete' it by simply recreating the file with only the folder header (with no messages). Alternatively, delete it first, and then immediately recreate it with no messages. This alternate method preserves the option of salvaging the file if the deletion was accidental.</p><p>Suggestion 2: cache the filenames of "special" folders. When moving a message, automatically recreate that folder with the same filename it had before.</p><p>Suggestion 3: never ever use filenames to identify folders. Always use *folder* names (even for extensions).
</p><p>&nbsp;</p>