New Code!
After releasing postoffice 1.4.3 last week, I sat down over the long weekend (while on vacation. Yes, it's geeky, but it was a very relaxing long vacation, so I was in a coding mood) and reworked and documented the new feature.
Version 1.4.3a revisits junkfilter= and modifies it in a somewhat less than backwards compatable fashion. junkfolder= is now the spam= option, which takes three values:
- bounce[:why]
Bounce the spam back to the sender. You can specify your own "THIS! IS! SPAM!" message by doing spam=bounce:THIS! IS! SPAM!, otherwise it will bounce the message back with the built-in snarky diagnostic.
- acccept
Accept the spam-infested message and treat it like a normal mail message. Postoffice will add a X-Spam header to the message so people running procmail will be able to weed the spammy things out.
- folder:path
This is the old junkfolder= option, slightly reworked. The first reworking is that spam will not be bounced if it's destined for a remote user (it will instead be treated as if you had set spam=accept,) and the second is that a path prefixed with a ~/ will be expanded to be users home directory/path. In either case, it is treated as a file redirection, with the same restrictions.
And, just to show that I've not been completely slacking off, I even documented this new code, so you've got no excuse to not dump those old sendmail, exim, postfix, and qmail installations and put postoffice in instead.