I would add a line to queue/maildir to check if a third plugin had set a note for queue/maildir to spool a spam message for spamassassin -r. If it queued spam, it would return OK if that would block queue/qmail-queue from running.
If both queue/qmail-queue and queue/maildir are listed in config/plugins file, does the first one returning OK prevent the following plugin from running?
I would prefer to use queue/maildir instead of content_log because the maildir files are all ready for spamassassin -r. Might need a root crontab to run spamassassin -r and then delete the files. No locking would be necessary.
-Bob Dodds