On Fri, Nov 09, 2012 at 11:12:34AM +0000, Jamie Paul Griffin wrote:
> Hi
> 
> I would like to use the method of setting messages to expire described
> on Gary's page[1] but the problem is that this script uses gnu date(1)
> and I have BSD date(1). 

there's no compatible option with bsd `date`?

You could also replace the call to `date` with a $SCRIPTING_LANGUAGE
script (perl would probably work pretty well for this, and I believe
perl is pretty standard on the BSDs) which does the same thing. All it's
doing with GNU `date` is spitting out an RFC822 formatted `date`, which
I would think BSD `date` is capable of doing, but a simple perl script
would definitely be able to.

> I also thought it might be better to add a line or two in my
> procmailrc to add the expired header on all mailing list messages that
> it filters which actually would suit me better. I haven't found much
> in the way of examples on the internet searches i've done. 

google search for "procmail add expires header" and 2 clicks takes me to
this thread which may be of use to you:

http://www.mhonarc.org/archive/html/procmail/2006-01/msg00008.html

Note that I know very little about procmail. I only used it for very
basic filtering and hated every minute of it :)

Also, that procmail recipe appears to also be using GNU `date`, but if
you figure out a solution to your first question you should be able to
use that same solution in this procmail recipe.

Hope this helps!

-Jeremy

Attachment: pgpIxcCs3J3Fa.pgp
Description: PGP signature

Reply via email to