Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help on script

24 views
Skip to first unread message

artm...@gmail.com

unread,
Oct 1, 2012, 4:41:41 PM10/1/12
to
Hi,

I found this script on our server. What language is this? What does it do?

LOGFILE=/home/satest/proclog
VERBOSE=on
MAILDIR=/home/satest/Maildir/
DEFAULT=$MAILDIR/

:0fw: spamassassin.lock
| /usr/bin/spamassassin

this is the file and it's scripting located in /home/satest/procmailrc

what language is this?

# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped. This will re-add it.
:0
* ^^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "

:0 fhw
| sed -e '1s/^/F/'
}

:0
{
:0 c
! dmit...@yahoo.com

:0 c
! jgo...@hotmail.com

:0 c
! jbr...@hotmail.com

:0
! sand...@zacks.com
}

Ben Bacarisse

unread,
Oct 1, 2012, 4:49:22 PM10/1/12
to
artm...@gmail.com writes:

> I found this script on our server. What language is this? What does it do?
>
> LOGFILE=/home/satest/proclog
> VERBOSE=on
> MAILDIR=/home/satest/Maildir/
> DEFAULT=$MAILDIR/
>
> :0fw: spamassassin.lock
> | /usr/bin/spamassassin
>
> this is the file and it's scripting located in /home/satest/procmailrc
>
> what language is this?

It's a procmail configuration file. I don't think the format has a
name other than this. procmailrc(5) describes it (i.e. man procmailrc
since I think it's only in section 5).

<snip>
--
Ben.

Bill Marcum

unread,
Oct 2, 2012, 3:16:11 PM10/2/12
to
On 10/01/2012 04:41 PM, artm...@gmail.com wrote:
> Hi,
>
> I found this script on our server. What language is this? What does it do?
>
> LOGFILE=/home/satest/proclog
> VERBOSE=on
> MAILDIR=/home/satest/Maildir/
> DEFAULT=$MAILDIR/
>
> :0fw: spamassassin.lock
> | /usr/bin/spamassassin
>
> this is the file and it's scripting located in /home/satest/procmailrc
>
> what language is this?
>
man procmail


0 new messages