Mailing List CGatePro@mail.stalker.com Message #92806
From: Nicolas Hatier <nicolas.hatier@niversoft.com>
Subject: Re: Approval perl script
Date: Tue, 02 Oct 2007 11:37:52 -0400
To: CommuniGate Pro Discussions <CGatePro@mail.stalker.com>

Thanks for sharing, I'm sure it will be useful.

I'm using another method - running Thunderbird, I created a (quick, dirty, ugly) extension which alerts me when a message is waiting for approval. If it could be useful to someone, let me know, I can share it too.

Regards,
Nicolas

James Reynolds wrote:
I found the perl script for finding if there is stuff in the approval folder.  I've modified it to check many lists.  The code is below.

--

Thanks,

James Reynolds - University of Utah - Student Computing Labs - 801-585-9811
james(a)scl.utah.edu - james(a)magnusviri.com - http://www.magnusviri.com




#!/usr/bin/perl

###################################################
# Program Name: approval_check
# Created: Nov 16, 2001
# Modified: February 5, 2002 (documentation added)
# Modified: October 1, 2007 (supported multiple lists) by James Reynolds james@scl.utah.edu
# Author: Russ Pagenkopf (jnrp@uas.alaska.edu)
# Purpose: This program is used to check if there are messages awaiting
#          list-mom approval. If so it sends an email to an external
#          account with notification.
#
# Special notes: All paths and addresses are hardcoded. Be careful to check
#          and make sure they match actual paths on your local machine
#          and that the remote email account is added correctly.
#
#          Also note that this script will only work against a mail folder
#          that is in the mbox format,
#
#          Last, note that this script must be triggered externally. I use
#          cron with the following entry.
#         #          * 9,17 * * * /root/scripts/approval_check
#
#          You should be able to run this program from anywhere you want
#          with the appropriate privileges. I'm a little lazy since the box
#          has only two accounts, mine and root. ;)
#
# Yes, I believe in quick, dirty and ugly if it gets the job done! :-)
#
# Freely released to the public domain, use at your own risk.
#
###################################################


--

Nicolas Hatier
Niversoft idées logicielles
http://www.niversoft.com


Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster