Soren Dayton | 1 Dec 01:43 1995

Re: AOK but need to include original message...

Eric wants to quote the letter.

> I would like, as an option, the ability to include the original
> sender's message (if any) *below* the outgoing autobot.txt form
> response when autoreplying.  

	Use sed and the -k option to formail

> :0hc
> * !^FROM_DAEMON
> * !^X-Loop: eric <at> garlic.com
> * ^TOautobot <at> hilding.com
> | (formail -rk -A"Precedence: junk" \
               ^ I added that.

>     -I"From: Autobot Test <autobot <at> hilding.com>" \
>     -I"Subject: Test of an Autobot" \
>     -A"X-Loop: eric <at> garlic.com" ) | \
      sed -e '/^$/!b' -e x -e '/./b' -e x -e 'r filename' | \
	  $SENDMAIL -oi -t 

I am not sure if I mean this as a joke.

Soren

Stephen R. van den Berg | 1 Dec 01:45 1995
Picon

Re: AOK but need to include original message...

Eric Hilding <eric <at> hilding.com> wrote:
>I would like, as an option, the ability to include the original
>sender's message (if any) *below* the outgoing autobot.txt form
>response when autoreplying.  

Note, we clone procmail here.

:0 c
* !^FROM_DAEMON
* !^X-Loop: eric <at> garlic.com
* ^TOautobot <at> hilding.com
{
  #
  # Note that the autobot.txt file must start with an empty line.
  #

  :0 h
  | formail -r -A"Precedence: junk" \
     -I"From: Autobot Test <autobot <at> hilding.com>" \
     -I"Subject: Test of an Autobot" \
     -A"X-Loop: eric <at> garlic.com"; cat $HOME/procmail/autobot.txt

  :0 
  | $SENDMAIL -oi -t
}

>Actually, it would be nice to know how to do this and the reverse
>of message/text positions if the need ever arises.

Simply take the original recipe, and add the options "-kb" to the
(Continue reading)

Soren Dayton | 1 Dec 02:02 1995

Re: AOK but need to include original message...


I am sorry.  That sed monstrosity was incorrect

and I am too confused by it to straighten it out.

Soren

Stephen R. van den Berg | 1 Dec 02:51 1995
Picon

Re: AOK but need to include original message...

I previously mumbled:
>  #
>  # Note that the autobot.txt file must start with an empty line.
>  #
>
>  :0 h
>  | formail -r -A"Precedence: junk" \
>     -I"From: Autobot Test <autobot <at> hilding.com>" \

Actually, if you were to add an 'f' flag on this recipe, it could actually
work.
As in:

   :0 fh

--

-- 
Sincerely,                                                          srb <at> cuci.nl
           Stephen R. van den Berg (AKA BuGless).

Are they twins?  Yes.  Are they *both* yours?

Eric Olsen | 1 Dec 03:05 1995
Picon
Picon

Re: Filtering undigested messages

I made some changes but I haven't figured it out.  The following recipe
should undigest, junk some subjects, and file the rest in folder
"IN-persfin".  But so far all I have been able to do so far is undigest
and dump-to-inbox. 

I don't think I understand the path of the resultant undigested emails:
the formailed messages don't seem to be processed by procmail with my
.procmailrc, they just get dumped into my inbox, as if they refuse to run
through .procmailrc twice.  Do I have to employ sendmail (user-level only)
somehow?.  How can I undigest, junk subjects, and file-in-folder? Thanks
for any help. 

---clip .procmailrc
:0
*(^To|^X-Digest):.*\/persfin.*
{
	TEST=$MATCH
	DIGEST=$MATCH

	:0c:
	*!X-Digest: $DIGEST
	$DEFAULT

   	:0
	*!X-Digest: $DIGEST
   	|formail -i"To: Persfin-Digest <eric <at> clark.net>" -A"X-Digest: \
  "$DIGEST -i "Reply-To: "$DIGEST +1 -ds procmail -Ym \
  DEFAULT=/var/mail/eric /homef/eric/.procmailrc

#   	|formail -i"To: Persfin-Digest <eric <at> clark.net>" -A"X-Digest: \
(Continue reading)

Prem Sumetpong | 1 Dec 04:03 1995
Picon
Picon

getting procmail pre4

Hello !
  I have been trying to download pre4 prelease of procmail for few days 
now but keep getting disconnected . Could someone please be kind enough to
mail the file to me ??

	 I would be very thankful
  		Thanx
		Prem Sumetpong

Eric Hilding | 1 Dec 05:22 1995

Re: AOK but need to include original (SOLVED)


Thanks to all...here's the final version which tests aok...
maybe this will help others:

# -------------------------------------------------------------
# AUTOBOTMANIA (Not quite "BEATLEMANIA", but close :-)
# ------------
# This recipe returns the sender's original message *below* the 
# autobot form letter message (autobot.txt), appends the sender's
# e-mail address to the (autobot.log) file, and finally files a
# copy of the sender's original message in folder (Aautobot.IN).
# Special thanks to Stephen, David, Hal, Soren & others for help.
:0 hc
* !^FROM_DAEMON
* !^X-Loop: eric <at> garlic.com
* ^TOautobot <at> hilding.com
{
:0 fh
| formail -r -A"Precedence: junk" \
   -I"From: Autobot Test <autobot <at> hilding.com>" \
   -I"Subject: Test of an Autobot" \
   -A"X-Loop: eric <at> garlic.com" ; cat $HOME/procmail/autobot.txt 

:0 
| $SENDMAIL -oi -t
}

:0 c:
* ^TOautobot <at> hilding.com
| formail -rtzxTo: >> $HOME/procmail/autobot.log
(Continue reading)

Sleepless in San Francisco | 2 Dec 05:26 1995

bouncing and more

Attachment: application/octet-stream, 701 bytes
Yusuf Goolamabbas | 1 Dec 06:23 1995
Picon

Procmail + vacation ?

Hi, I have the following recipe at the end of my .procmailrc
file. However vacation does not seem to get invoked. Urgent help is
requested since I am going on vacation tommorow !!

I have a .vacation.msg file and invoked vacation -I on the command
line to start vacation

I would prefer not to use formail

:0 Whc: vacation.lock
* $^To:.*\<$\LOGNAME\>
* ! ^FROM_DAEMON
* ! ^X-Loop: yusufg <at> cc.gatech.edu
| /usr/ucb/vacation yusufg

Thanks, Yusuf

--
Yusuf Goolamabbas                               yusufg <at> cc.gatech.edu
Graphics, Visualization, & Usability Center     (O) 404.894.8791
College of Computing Georgia Tech              
http://www.cc.gatech.edu/grads/g/Yusuf.Goolamabbas/home.html

Phil Edwards | 1 Dec 06:56 1995
Picon

Re: bouncing and more


Sounds like you want to implement some sort of ignore-them-and-make-
sure-they-know-I'm-ignoring-them routine.  It's possible, but think
for a minute what the consequences will be.

> suppose user X emails me letter Y from system Z.

Okay, that required, say, Y' bytes of bandwidth.  You propose to
mail that same message back to X, plus a file of your own.  That's
going to take up 2*Y'+Q total bytes of bandwidth in an exchange
with - as far as I can see - no more usefulness than two children
in a shouting match.

You might consider something a bit kinder to the rest of the net
by sending a simple note the *first* time they mail you.  This
is based on the vacation(1) recipe in procmailex(5):

:0 Wh: screamingmatch.lock
* ^From.*other.person.in.screaming.match <at> wherever
* !^X-Loop: sliver <at> stars.sfsu.edu
* !^FROM_DAEMON
| formail -rD 1000 screamingmatch.cache

  :0 ehc
  | (formail -rA"Precedence: junk" -A"X-Loop: sliver <at> stars.sfsu.edu"; \
     /usr/ucb/echo "\nI am ignoring your mail.  Go away.\n\n\n-- "; \
     cat $HOME/.signature \
    ) | $SENDMAIL -oi -t

(Test this first, I'm working from pseudo-memory.)  The idea is to
check if the sender has recently sent you mail.  If so, reply with a
brief statement.  The incoming message is lost.

Luck++;
Phil

--

-- 
#include<std/disclaimer.h>               The gods do not protect fools. Fools
finger pedwards <at> gamma.cs.wright.edu      are protected by more capable fools.
email pedwards <at> valhalla.cs.wright.edu                            -Larry Niven


Gmane