procmail
[Top] [All Lists]

Re: procmail-d Digest V96 #174

1996-12-05 21:46:06
unsubscribe ajm(_at_)gnbc(_dot_)com

From:          procmail-d-request(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Date:          Fri, 6 Dec 1996 04:05:18 +0100 (MET)
Subject:       procmail-d Digest V96 #174
To:            procmail-d(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Reply-to:      procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE

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

Content-Type: text/plain

procmail-d Digest                             Volume 96 : Issue 174

Today's Topics:
  Re: Problems with large to lists...   [ Philip Guenther 
<guenther(_at_)gac(_dot_)edu> ]
  X-Envelope-To                         [ Yeo Ann Kian 
<yeoak(_at_)iscs(_dot_)nus(_dot_)sg> ]
  can't forward                         [ Yossi Itzkovich 
<Yossi(_dot_)Itzkovich(_at_)ec ]
  German readme in German               [ Konstantin Gogos 
<100727(_dot_)703(_at_)CompuS ]
  Still having perl problems!           [ Dave Downin 
<downin(_at_)clark(_dot_)net> ]
  Re: Still having perl problems!       [ "Alan K. Stebbens" 
<aks(_at_)anywhere(_dot_)en ]
  possibly dumb question -- multiple i  [ dummy(_at_)c2(_dot_)net (Robert) ]
  Re: possibly dumb question -- multip  [ dattier(_at_)wwa(_dot_)com (David 
W. Tamkin) ]
  Autoreply and forwarding              [ weissr(_at_)voicenet(_dot_)com ]
  new user question...                  [ Chris Kantarjiev 
<cak(_at_)godzilla(_dot_)stud ]
  Re: new user question...              [ dattier(_at_)wwa(_dot_)com (David 
W. Tamkin) ]
  splitting digests, catching duplicat  [ Timothy J Luoma 
<luomat(_at_)peak(_dot_)org> ]
  Re: splitting digests, catching dupl  [ "Alan K. Stebbens" 
<aks(_at_)anywhere(_dot_)en ]
  Re: Still having perl problems!       [ Philip Guenther 
<guenther(_at_)gac(_dot_)edu> ]
  Re: splitting digests, catching dupl  [ "Alan K. Stebbens" 
<aks(_at_)anywhere(_dot_)en ]
  Working with a digest                 [ Wotan <wotan(_at_)netcom(_dot_)com> 
]

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

Date: Wed, 04 Dec 1996 22:11:32 -0600
From: Philip Guenther <guenther(_at_)gac(_dot_)edu>
To: Gary GStyle Morse <gstyle(_at_)gmx1(_dot_)com>
cc: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: Problems with large to lists... 
Message-Id: <199612050411(_dot_)WAA29278(_at_)solen(_dot_)gac(_dot_)edu>

Gary GStyle Morse <gstyle(_at_)gmx1(_dot_)com> writes:
just out of curiosity, what does the 'm' directive do/stand for?

The 'm' flag tells sendmail that if while processing a message with
multiple (envelope) recipients, multiple recipients resolve to the
same mailer and "host" (from the $# and $@ parts of what comes out of
ruleset 0), then sendmail may perform delivery with fewer invokations
of the mailer than if it had done the recipients one by one.

For example, the 'm' flag on the smtp mailer tells sendmail that it may
send more than one "RCPT TO:" command one a given connection.  In the
case of procmail, the 'm' flag tells sendmail to put multiple users on
procmail's command line.

The problem with this is that procmail can only return a single exit
status to sendmail.  If delivery fails for one person, procmail has to
return failure for everyone to avoid lost mail.  By having sendmail
invoke a separate procmail for each recipient (that is, by leaving out
the 'm' flag) procmail can return a separate exit status for each
user.

Further sendmail questions, unless directly related to procmail, should
be answered by consulting the (excellant!) sendmail documentation,
found as doc/op/op.ps in the source tree, or the Bat Book (_Sendmail_,
published by O'Reilly and Associates), or by asking in
comp.mail.sendmail.

Philip Guenther

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

Date: Thu, 5 Dec 1996 12:47:21 +0800 (GMT-8)
From: Yeo Ann Kian <yeoak(_at_)iscs(_dot_)nus(_dot_)sg>
To: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: X-Envelope-To
Message-Id: 
<199612050447(_dot_)MAA18817(_at_)sunA(_dot_)iscs(_dot_)nus(_dot_)sg>
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

I have produced a patch for adding X-Envelope-To as attached below. 
The patch is produced for sendmail-8.8.4/src/conf.c:

In addition to applying the patch, 
sendmail must be configured to send local emails 
without the "m" mailer flag.

--
yeoak(_at_)iscs(_dot_)nus(_dot_)sg




WARNING: The following patch is not tested vigorously. Use it at your own 
risks.



*** conf.c.orig       Thu Dec  5 03:13:40 1996
--- conf.c    Thu Dec  5 10:13:58 1996
***************
*** 1032,1037 ****
--- 1032,1042 ----
      register ADDRESS *to;
      register ENVELOPE *e;
  {
+ #ifdef  X_ENVELOPE_TO
+     register HDR *h;
+     ADDRESS *volatile ca;
+ #endif
+ 
  # ifdef lint
      if (to == NULL)
              to++;
***************
*** 1040,1045 ****
--- 1045,1075 ----
      if (tTd(49, 1))
              printf("checkcompat(to=%s, from=%s)\n",
                      to->q_paddr, e->e_from.q_paddr);
+ 
+ #ifdef X_ENVELOPE_TO
+ 
+ /* modified by YeoAnnKian (yeoak(_at_)iscs(_dot_)nus(_dot_)sg) 05/12/96
+    if X-Envelope-To is not found, addheader;
+    else replace the value of X-Envelope-To
+ */
+     ca = getctladdr(to);
+     if (ca == NULL) ca=to;
+     for (h=e->e_header; h != NULL; h=h->h_link)
+     {
+             if (strcasecmp(h->h_field, "X-Envelope-To") == 0)
+             {
+                     free(h->h_value);
+                     h->h_value=newstr(ca->q_user);
+                     break;
+             }
+     }
+     /* if not found, insert the header */
+     if ( h == NULL )  
+     {
+             addheader("X-Envelope-To", ca->q_user, &e->e_header);
+     }
+ 
+ #endif /* X_ENVELOPE_TO */
  
  # ifdef EXAMPLE_CODE
      /* this code is intended as an example only */

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

Date: Thu, 5 Dec 1996 13:28:56 +0200 (IST)
From: Yossi Itzkovich <Yossi(_dot_)Itzkovich(_at_)ecitele(_dot_)com>
To: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: can't forward
Message-ID: 
<Pine(_dot_)SOL(_dot_)3(_dot_)95(_dot_)961205132405(_dot_)5854E-100000(_at_)vega>
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

I want to install procmail in my account, but .forward doesn't work.
I mean that .forward is not accsesed by the mail mechanism,and my
administator is on vacation...

What to do?

I thought maybe to procmail has the ability to sort mail from the ~/mbox,
instead BEFORE it goes there. Is there an option for this ?

Thanks.

Yossi Itzkovich
Israel

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

Date: 05 Dec 96 05:46:43 EST
From: Konstantin Gogos <100727(_dot_)703(_at_)CompuServe(_dot_)COM>
To: procmail <procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE>
Subject: German readme in German
Message-ID: <961205104643_100727(_dot_)703_EHU122-1(_at_)CompuServe(_dot_)COM>

Hello,

I just want to ask if there is a German readme file for procmail available,
since it was developed in Aachen, Germany.

Thank you!

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

Date: Thu, 5 Dec 1996 12:36:34 -0500 (EST)
From: Dave Downin <downin(_at_)clark(_dot_)net>
To: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: Still having perl problems!
Message-Id: <199612051736(_dot_)MAA07705(_at_)clark(_dot_)net>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

I'm still having problems getting procmail to pipe my mail to a perl 
script.  It seems as if it insists on running the script under the bourne 
shell (sh) which does not understand the #!/usr/bin/perl at the beginning 
of the script.  I have included below hopefully EVERYTHING that would be 
of use in determining what the hell is going wrong and how to get things 
working...

BTW, the script does work as expected if I run it from the command line 
(under tcsh).  Example:  cat testfile | filter.pl

PERMISSIONS:
============

Perl Binary:
lrwxrwxrwx   1 root     other          5 May 13  1996 /usr/bin/perl -> perl5*
lrwxrwxrwx   1 root     other          9 May 13  1996 /usr/bin/perl5 -> 
perl5.002*
-rwxr-xr-x   1 root     200       542248 May  2  1996 /usr/bin/perl5.002*

Path to (and including) perl script:
drwxr-xr-x 731 root     other      28672 Nov  6 13:09 homee/
drwxr-xr-x  13 downin   ipusers     4096 Dec  5 12:06 downin/
drwxr-xr-x   2 downin   ipusers     4096 Dec  4 10:23 nags/
-rwxr-xr-x   1 downin   ipusers    25172 Dec  3 16:37 filter.pl*

Procmail stuff:
-rwsr-sr-x   1 root     mail       65060 Nov  7  1994 /usr/local/bin/procmail*
-rw-r--r--   1 downin   ipusers      391 Dec  4 10:27 .procmailrc

PROCMAILRC:
===========

VERBOSE=yes
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/opt/local/bin:/usr/local/bin:/homee/downin/nags:.
MAILDIR=$HOME/Mail
DEFAULT=/var/mail/downin
LOGFILE=$MAILDIR/log

:0: nags_filter.lock
* ^From:(_dot_)*downin(_at_)reboot(_dot_)dt(_dot_)navy(_dot_)mil
|/homee/downin/nags/filter.pl

FILTER.PL (just the first few lines):
=====================================
#!/usr/bin/perl
$version="2.5";
$your_name="Dave Downin";
$your_email='downin(_at_)clark(_dot_)net';
$home_dir='/homee/downin';
$mailbox='/var/mail/downin';
@smtp_hosts=("mail.clark.net");

PROCMAIL LOG:
=============
procmail: Match on 
"^From:(_dot_)*downin(_at_)reboot(_dot_)dt(_dot_)navy(_dot_)mil"
procmail: Locking "nags_filter.lock"
procmail: Executing "/homee/downin/nags/filter.pl"
/homee/downin/nags/filter.pl: =2.5: not found
/homee/downin/nags/filter.pl: =Dave Downin: not found
/homee/downin/nags/filter.pl: =downin(_at_)clark(_dot_)net: not found
/homee/downin/nags/filter.pl: =/homee/downin: not found
/homee/downin/nags/filter.pl: =/var/mail/downin: not found
/homee/downin/nags/filter.pl: syntax error at line 86: `(_at_)smtp_hosts=' 
unexpected
procmail: Program failure (2) of "/homee/downin/nags/filter.pl"
procmail: Assigning "LASTFOLDER=/homee/downin/nags/filter.pl"
procmail: Unlocking "nags_filter.lock"
procmail: Locking "/var/mail/downin.lock"
procmail: Assigning "LASTFOLDER=/var/mail/downin"
procmail: Opening "/var/mail/downin"
procmail: Acquiring kernel-lock
procmail: [7431] Thu Dec  5 12:20:11 1996
procmail: Unlocking "/var/mail/downin.lock"

enn(_at_)gnbc(_dot_)com
http://www.gnbc.com/mlm
http://www.gnbc.com/enn
Have your own Autoresponder
for only $9.95 per month  
Send E-mail to directory(_at_)gnbc(_dot_)com

<Prev in Thread] Current Thread [Next in Thread>
  • Re: procmail-d Digest V96 #174, McBride <=