procmail
[Top] [All Lists]

unsubscribe

1996-10-18 11:42:09
Could you take support(_at_)cybermedia(_dot_)com and 
oilchange(_at_)cybermedia(_dot_)com off of
the procmail mailing list?  ThanksAt 09:50 PM 10/17/96 +0200, you wrote:
procmail-d Digest                              Volume 96 : Issue 141

Today's Topics:
 Re: [Q] When to use lock files?       [ Philip Guenther 
<guenther(_at_)gac(_dot_)edu> ]
x
 Re: Difference between .* and *       [ era eriksson 
<reriksso(_at_)cc(_dot_)helsinki(_dot_) ]
 smartlist and smrsh                   [ Ludo Vangilbergen <Ludo.Vangilberge ]
 Re: smartlist and smrsh               [ "Alan K. Stebbens" 
<aks(_at_)anywhere(_dot_)en ]
 Re: smartlist and smrsh               [ "Steve Heaney" 
<heaney(_at_)cambridge(_dot_)sc ]
 Why won't formail split this digest?  [ Nikhil Nair 
<nn201(_at_)cus(_dot_)cam(_dot_)ac(_dot_)uk> ]
 We Need Your HELP!!!                  [ "Michael A. Sniggin" 
<Specle(_at_)specle ]
 new procmail user question            [ Eamonn Doyle 
<edoyle(_at_)teaparty(_dot_)modic ]
 Can procmail replace altogether mail  [ "Matthew N. Reichman" 
<reichman(_at_)usc ]
Date: Wed, 16 Oct 1996 19:26:24 -0500
From: Philip Guenther <guenther(_at_)gac(_dot_)edu>
To: Robby Lee <rylee(_at_)CSUPomona(_dot_)Edu>
cc: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: [Q] When to use lock files? 
Message-Id: <199610170026(_dot_)TAA08375(_at_)solen(_dot_)gac(_dot_)edu>

Robby Lee <rylee(_at_)CSUPomona(_dot_)Edu> writes:

To my understanding, is it correct that lock files should be
used only for filtering? Otherwise it's unnecessary?

:0
^to_john
!john(_at_)abc(_dot_)com

:0:local.lock
| formail -I"Subject: [Test]"

That should probably be:

:0fh
| formail -I"Subject: [Test]"


     ??? Please clarify.  Thanks.

Lockfiles are only needed when procmail is doing something that should
be serialized, i.e., when only one process at a time should be doing it.

This generally means that any time you write to a file, you should have
a locallock, preferably based on the name of the file being written to.
Forwarding actions ('!'), and 99% of all filters don't need lockfiles.
However, if a filter action writes to a file while filtering, then you
may need a lock.  To demonstrate this rule, consider the recipe above:
it doesn't need a lockfile because no file was written to, and multiple
formails can run at once.  However, the following recipe does need one:


:0fh:tempfile.lock
| cat >tempfile; formail -I"Subject: [Test]" < tempfile; rm -f tempfile

This recipe does the exact same thing as the previous one, but it's slower,
more prone to error, requires diskspace to run, and (the key point here)
requires a lockfile to prevent one procmail from overwriting tempfile
while another is still running the action.

Does that clear things up, or have I just made it worse?

Philip Guenther
Date: Wed, 16 Oct 96 22:57:58 -0400
From: x(_at_)x(_dot_)x
To: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: freiheit fuer mumia abu-jamal!
Message-ID: <A88065328100007C(_at_)mail(_dot_)x(_dot_)com>

x
Date: Thu, 17 Oct 1996 09:34:51 +0300
From: era eriksson <reriksso(_at_)cc(_dot_)helsinki(_dot_)fi>
To: swcxt(_at_)boco(_dot_)co(_dot_)gov
CC: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: Difference between .* and *
Message-Id: <199610170634(_dot_)JAA06340(_at_)vesuri(_dot_)helsinki(_dot_)fi>

On Wed, 16 Oct 1996 13:01:52 -0600 (MDT),
Shane Castle <swcxt(_at_)boco(_dot_)co(_dot_)gov> wrote:
On Wed Oct 16 10:49:16 1996, Alan K. Stebbens wrote:
While "-*" means one or more dashes.
No, "-*" means zero or more dashes.  I'm sure this is just a typo.
One or more dashes is usually written as "--*".

(Or more succinctly, "-+".)

/* era */

-- 
See <http://www.ling.helsinki.fi/~reriksso/> for mantra, disclaimer, etc.
* If you enjoy getting spam, I'd appreciate it if you'd register yourself
 at the following URL:  <http://www.ling.helsinki.fi/~reriksso/spam.html>
Date: 17 Oct 1996 10:53:01 +0200
From: Ludo Vangilbergen 
<Ludo(_dot_)Vangilbergen(_at_)Belgium(_dot_)EU(_dot_)net>
To: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: smartlist and smrsh
Message-ID: <87ybh62cr5(_dot_)fsf(_at_)mebo(_dot_)eunet(_dot_)be>

Hi,

I'm using sendmail8.8.0 with smrsh and procmail/smartlist-3.11pre4.

Problem: smrsh is unable (not allowed) to execute the flist script
that resides in the .bin dir of the dedicated smartlist account even
if I add a link in the smrsh dir.

What I should be able to do is having procmail to look for flist in
the smrsh bin dir. What is the easiest way to do that? Or are there
any other solutions?


Ludo Vangilbergen
Date: Thu, 17 Oct 1996 02:48:36 -0700
From: "Alan K. Stebbens" <aks(_at_)anywhere(_dot_)engr(_dot_)sgi(_dot_)com>
To: Ludo Vangilbergen <Ludo(_dot_)Vangilbergen(_at_)Belgium(_dot_)EU(_dot_)net>
Cc: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: smartlist and smrsh 
Message-Id: 
<199610170948(_dot_)CAA06021(_at_)anywhere(_dot_)engr(_dot_)sgi(_dot_)com>

   > I'm using sendmail8.8.0 with smrsh and procmail/smartlist-3.11pre4.
   > 
   > Problem: smrsh is unable (not allowed) to execute the flist script
   > that resides in the .bin dir of the dedicated smartlist account even
   > if I add a link in the smrsh dir.

   > What I should be able to do is having procmail to look for flist in
   > the smrsh bin dir. What is the easiest way to do that? Or are there
   > any other solutions?

Two questions:

1. Are you sure the link is correct?  Both the path to the link and the
  path to the linked file?  Also, is it a symbolic link?  We've always
  used symlinks with "smrsh".

   /usr/adm/smbin/flist -> /usr/lists/.bin/flist

2. Procmail doesn't "look" for flist; the configured Mprog (usually
  "sh", but with the recent sendmail release, "smrsh") will execute
  "flist" if it can find it.   Since alias redirection occurs within
  sendmail, the Mprog invocation occurs long before Mlocal is ever
  invoked, which is how procmail gets executed (unless by .forward).
  
  The default "uid" and its permissions of your mailer may not be
  sufficient to scan the directory in which flist resides, or execute
  flist itself.  For example, if Smartlist were installed under the
  user "lists", and if /usr/lists/.bin is "rwx------", then if
  sendmail is configured to run Mprog as "daemon.mail", then "daemon"
  must also have execute permission on "/usr/lists/.bin"; ie:
  "rwx--x--x"

Hope this helps.
___________________________________________________________
Alan Stebbens <aks(_at_)sgi(_dot_)com>      http://reality.sgi.com/aks
Date: 17 Oct 96 11:42:25 +0000
From: "Steve Heaney" <heaney(_at_)cambridge(_dot_)scr(_dot_)slb(_dot_)com>
To: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Cc: "Ludo Vangilbergen" 
<Ludo(_dot_)Vangilbergen(_at_)Belgium(_dot_)EU(_dot_)net>
Subject: Re: smartlist and smrsh
Message-Id: <AE8BCC4B-522CB(_at_)134(_dot_)32(_dot_)101(_dot_)215>
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi,

I'm using sendmail8.8.0 with smrsh and procmail/smartlist-3.11pre4.

Problem: smrsh is unable (not allowed) to execute the flist script
that resides in the .bin dir of the dedicated smartlist account even
if I add a link in the smrsh dir.

What I should be able to do is having procmail to look for flist in
the smrsh bin dir. What is the easiest way to do that? Or are there
any other solutions?


Ludo,

Here's what I've done.  In the smrsh bin directory there is a file 
called flist looking like the following:

if expr substr "$1" 1 5 == 'EurRC'
then
   /home/www1/export/SLB/Recruit/mail/.bin.sun4/flist $1
elif expr substr "$1" 1 10 == 'forum-2005'
then
   /home/www1/export/SLB/mail/.bin.sun4/flist $1
elif expr substr "$1" 1 3 == 'tw-'
then
   /home/www1/export/SCR/TechWatch/mail/bin/flist $1
fi

The aliases file contains references along the lines of:

tw-cement: "|flist tw-cement"
tw-cement-request: "|flist tw-cement-request"

This matches the "expr substr "$1" 1 3 == 'tw-'" clause in 
the flist in sm.bin and calls the appropriate instance of 
flist.

Regards,

Steve.
Date: Thu, 17 Oct 1996 15:24:22 +0100 (BST)
From: Nikhil Nair <nn201(_at_)cus(_dot_)cam(_dot_)ac(_dot_)uk>
To: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: Why won't formail split this digest?
Message-ID: 
<Pine(_dot_)LNX(_dot_)3(_dot_)95(_dot_)961017151749(_dot_)12620A-100000(_at_)amasis(_dot_)trin(_dot_)cam(_dot_)ac(_dot_)uk>
Content-Type: TEXT/PLAIN; charset=US-ASCII
Content-Length: 3059

Hi,

I'm using formail from procmail 3.10 under Debian GNU/Linux.  I found
that, although `formail +1 -ds >>mailbox' as a procmail rule seemed to
work most of the time, it failed (producing no output) in some cases.

Trouble is, I don't really understand how formail decides where the start
of a given message in a digest is; I though it used the From: header, but
maybe I was wrong ...

Any help appreciated.  Please mail me directly (as well as posting if you
like), as I'm not subscribed to this mailing-list.

I enclose one example of a failed digest below.  Note that the
Crossposted-To: header is actually one *very* long line, though my mailer
won't preserve it as such ...

Cheers,

Nikhil.

--
Nikhil Nair
Trinity College, Cambridge, England
Tel.: +44 1223 368353
Email: nn201(_at_)cus(_dot_)cam(_dot_)ac(_dot_)uk
      nnair(_at_)debian(_dot_)org

---------------------------------------

From Linux-Announce-Request(_at_)senator-bedfellow(_dot_)MIT(_dot_)EDU Thu 
Oct 17 14:14:05 1996
Date: Wed, 16 Oct 96 21:13:23 EDT
From: Digestifier 
<Linux-Announce-Request(_at_)senator-bedfellow(_dot_)MIT(_dot_)EDU>
Reply-To: Linux-Announce(_at_)senator-bedfellow(_dot_)MIT(_dot_)EDU
To: Linux-Announce(_at_)senator-bedfellow(_dot_)MIT(_dot_)EDU
Subject: Linux-Announce Digest #364

Linux-Announce Digest #364, Volume #2            Wed, 16 Oct 96 21:13:23 EDT

Contents:
 Linux META-FAQ (part 1/1) (Michael K. Johnson)

----------------------------------------------------------------------------

From: Michael K. Johnson <johnsonm(_at_)redhat(_dot_)com>
Crossposted-To:
comp.os.linux.hardware,comp.os.linux.setup,comp.os.linux.networking,comp.os.
linux.x,comp.os.linux.answers,comp.os.linux.misc,comp.answers,news.answers
Subject: Linux META-FAQ (part 1/1)
Date: 13 Oct 1996 23:36:50 -0400

Archive-name: linux/meta-faq
Last-modified: 2 Aug 96

=====BEGIN PGP SIGNED MESSAGE=====

*** The `Linux META-FAQ' is posted automatically by the
*** Linux HOWTO coordinator, Greg Hankins 
<gregh(_at_)sunsite(_dot_)unc(_dot_)edu>.  Please
*** direct any comments or questions about this HOWTO to the author,
*** Michael K. Johnson <johnsonm(_at_)redhat(_dot_)com>.

- --- BEGIN Linux META-FAQ part 1/1 ---

[Body of Linux META-FAQ]

- --- END Linux META-FAQ part 1/1 ---

=====BEGIN PGP SIGNATURE=====
Version: 2.6.2
Comment: finger gregh(_at_)cc(_dot_)gatech(_dot_)edu for public key

iQCVAwUBMmG1OXtNTo2suu5NAQGfiQP+OhPSlQjEXjaR7y3w6fD31aZJ4fNlW1/8
YW/6iHQob0i+YdCJF6jh5oPDxDnUBEKhWqErwpTnOuiQmE1w9nbbMQFHzc/kI46R
nElFdOpFvyAcv/GsYVWu7r0MEud5QGoCi0UCtMvgK7PXq/blI6PYNSfW+rXRKJQx
gKQKsGdmPsw=
=yoeh
=====END PGP SIGNATURE=====

- ----------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

   Internet: Linux-Announce-Request(_at_)NEWS-DIGESTS(_dot_)MIT(_dot_)EDU

You can submit announcements to be moderated via:

   Internet: linux-announce(_at_)NEWS(_dot_)ORNL(_dot_)GOV

Linux may be obtained via one of these FTP sites:
   ftp.funet.fi                               pub/Linux
   tsx-11.mit.edu                             pub/linux
   sunsite.unc.edu                            pub/Linux

End of Linux-Announce Digest
******************************
---------------------------------------
Date: Wed, 16 Oct 96 20:08:44 +0400
From: "Michael A. Sniggin" <Specle(_at_)specle(_dot_)chel(_dot_)su>
To: PRLIST(_at_)HTBBS(_dot_)COM
Cc: PROCMAIL(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: We Need Your HELP!!!
Message-Id: <CYCYGPoyz6(_at_)specle(_dot_)chel(_dot_)su>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Gentlemen!

Please, read this message over - this is not an ads or something like that.
We are living in the South Urals, Russia and we are trying to connect our
society, our people to the Internet by new technologies - just to have
normal conditions to work with this Great Net. What we have now is just a
mockery - sometimes 25 bytes/sec (!!!). But new equipment is very expensive.
So we are trying to collect  the sum we need by donations of persons holding
the same views. If you  sympathise our ideas and consider it  possible
to send us some money - it would be accepted with warm gratitude.

We would be also very grateful to all advises too,
our mail - specle(_at_)specle(_dot_)chel(_dot_)su

Thank you for reading this message over,
and  -  forgive us for taking your time.

       Yours virtually, Yang businessmen.

Please transfer ANY sum to the:

BENEFICIARY: Lazarev Yuri Ivanovich, Russia
ACCOUNT # 008100072 With Savings Bank Of Russian Federation (SBERBANK)
C.H.I.P.S. Number 3212333
SWIFT Code - SABRRUMM
Kurchatovskoe Branch 8053
In Favour Account       # 7207001394/001 (for USD)
                       # 7207000088/048 (for DM)
Date: Thu, 17 Oct 1996 12:59:14 -0400 (EDT)
From: Eamonn Doyle <edoyle(_at_)teaparty(_dot_)modicon(_dot_)com>
To: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: new procmail user question
Message-Id: <199610171659(_dot_)MAA10695(_at_)teaparty(_dot_)modicon(_dot_)com>
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length:       3604

i am having some trouble with forwarding mail to another site after changing
the From: and Subject: lines to suit my needs.

here is the pertinent info:[i think]
=====================================
system linux [slackware3.0]
===========================
.forward file
|/usr/local/bin/procmail
====================
.procmailrc file
PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=/usr/spool/mail                #you'd better make sure it exists
#DEFAULT=$MAILDIR/mbox                         #completely optional
LOGFILE=/files4/edoyle/from.proc       #/home/edoyle = /files4/edoyle
VERBOSE=on
FROM=edoyle(_at_)modicon(_dot_)com
SUB=tech_info
SEND=/usr/sbin/sendmail                        #/usr/lib/sendmail is a link to 
/usr/sbin
FORMAIL=/usr/local/bin/formail
FMLOG=/files4/edoyle/from.proc
JOHN=edoyle(_at_)ceds86(_dot_)uml(_dot_)edu

#test: mail from anyone with "brick" in subject
:0 c
             * ^From.*                                #all mail should be 
from someone
             * ^Subject:.*brick               #with brick in subject
              | ( ${FORMAIL} -l ${FMLOG}\     #use formail and log
              -I "Subject: ${SUB}"\           #change the Subject: > ${SUB}
              -I "From: ${FROM}" )            #change the From: > ${FROM}
              | ${SEND} -oi ${JOHN}           #send to ${JOHN}
==================================================================
i get the mail locally[mailing list mail] and i want to send it on to a
friend ${JOHN}
but it never gets there.
=================================================
from the log:
=============
procmail: [9119] Thu Oct 17 11:19:50 1996
procmail: Assigning "FROM=edoyle(_at_)modicon(_dot_)com"
procmail: Assigning "SUB=tech_info"
procmail: Assigning "SEND=/usr/sbin/sendmail"
procmail: Assigning "FORMAIL=/usr/local/bin/formail"
procmail: Assigning "FMLOG=/files4/edoyle/from.proc"
procmail: Assigning "JOHN=edoyle(_at_)ceds86(_dot_)uml(_dot_)edu"
procmail: Match on "^From.*"
procmail: Match on "^Subject:.*brick"
procmail: Assigning "LASTFOLDER=( /usr/local/bin/formail -l
/files4/edoyle/from.proc -I Subject: tech_info -I From: 
edoyle(_at_)modicon(_dot_)com )"
procmail: Skipped "| ${SEND} -oi ${JOHN} "
procmail: Locking "/usr/spool/mail/edoyle.lock"
procmail: Assigning "LASTFOLDER=/usr/spool/mail/edoyle"
procmail: Opening "/usr/spool/mail/edoyle"
procmail: Acquiring kernel-lock
procmail: Executing
"(,/usr/local/bin/formail,-l,/files4/edoyle/from.proc,-I,Subject:
tech_info,-I,From: edoyle(_at_)modicon(_dot_)com,)"
(: (: No such file or directory
procmail: [9119] Thu Oct 17 11:19:51 1996
procmail: Unlocking "/usr/spool/mail/edoyle.lock"
From cliffy(_at_)teaparty(_dot_)modicon(_dot_)com  Thu Oct 17 11:19:50 1996
Subject: bricks
 Folder: /usr/spool/mail/edoyle                                            381
procmail: Notified comsat: "edoyle(_at_)0:/usr/spool/mail/edoyle"
======================================================

2 things seem wrong, first i have this:

procmail: Skipped "| ${SEND} -oi ${JOHN} "

i don't see why it would "skip" this.

and second is:

procmail: Executing
"(,/usr/local/bin/formail,-l,/files4/edoyle/from.proc,-I,Subject:
tech_info,-I,From: edoyle(_at_)modicon(_dot_)com,)"
(: (: No such file or directory

i don't see what file it can't find, procmail is running so it must have
found that, and 
formail is in /usr/local/bin so it should be able to find that as well.
========================

teaparty:/files4/edoyle$ which procmail
/usr/local/bin/procmail
teaparty:/files4/edoyle$ which formail 
/usr/local/bin/formail
==================================

any and all help is appreciated.

thanks

eamonn

Eamonn Doyle                            |edoyle(_at_)modicon(_dot_)com 
Senior Net/Sys Admin.                   |whois ed10
Schneider Automation a.k.a. Modicon     |post-,host-,news-,web-master
http://teaparty/                        |(508)975-9148   
Date: Thu, 17 Oct 96 12:21:11 -0700
From: "Matthew N. Reichman" <reichman(_at_)usc(_dot_)edu>
To: Procmail(_at_)usc(_dot_)edu
Subject: Can procmail replace altogether mail?
Message-Id: <199610171921(_dot_)MAA01055(_at_)usc(_dot_)edu>
Content-Type: multipart/mixed; boundary=NeXT-Mail-2001401090-2
Content-Transfer-Encoding: 7bit

Can procmail replace mail altogether such that my Mail.app can call up
procmail instead of mail to handle everything?


---
Be well

Matthew Reichman  
< reichman(_at_)usc(_dot_)edu>
NeXTSTEP v.3.3 m68k patched :: NeXTMAIL, SUN Mail & MIME welcome
PGP key --> email w/ subject: request_PGP
Computer Privacy Information --> http://www.eskimo.com/~joelm/


Attachment Converted: c:\eudora\attach\paste.tif

Best Regards,

Matt McLaughlin
Online Support Specialist

Support(_at_)cybermedia(_dot_)com for First Aid Support
Oilchange(_at_)cybermedia(_dot_)com for Oil Change Support
Custserv(_at_)cybermedia(_dot_)com for Customer Service
or call 800.721.7824 for sales info and literature

<Prev in Thread] Current Thread [Next in Thread>