SA Bugzilla – Bug 7039
sa-compile notes inability to write in home dir even though it successfully uses a /tmp dir
Last modified: 2019-08-03 15:10:34 UTC
If sa-compile cannot write to the user's home dir, it will fall back to using a dir in /tmp. However, it still logs warnings about its inability to write to the home dir unnecessarily: cannot create a directory: No such file or directory at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm line 1033. cannot write to /opt/zimbra/.spamassassin/sa-compile.cache/rules.body_0 at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm line 1035. print() on closed filehandle CACHE at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm line 1036. plugin: eval failed: error writing: Bad file descriptor at /opt/zimbra/zimbramon/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm line 1036. cd /tmp/.spamassassin25185JJ34ectmp reading bases_body_0.in
It would be handy to have an option to say what location to use as the tmp directory...
Fixed warnings. Pretty sure current version doesn't fallback to /tmp so that's not an issue. If cache write fails, doesn't break anything, it's simply a speedup for next sa-compile run. Sending spamassassin-3.4/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm Sending trunk/lib/Mail/SpamAssassin/Plugin/BodyRuleBaseExtractor.pm Transmitting file data ..done Committing transaction... Committed revision 1864341.