procmail
[Top] [All Lists]

RE: Sendmail, Procmail, and Majordomo

1998-05-11 11:27:25
This looked like it would work... but it doesn't do anything to the subject
line.  You end up with the same subject.  This is what I have:

        majodomo.aliases file

majordomo:  "|/work/majordomo/wrapper majordomo"
majordomo-owner: robertsh(_at_)emh(_dot_)gordon(_dot_)army(_dot_)mil
owner-majordomo: robertsh(_at_)emh(_dot_)gordon(_dot_)army(_dot_)mil

test:           "|/usr/local/bin/procmail -m
/work/majordomo/procmailrc.test"
test-list:   :include:/work/majordomo/lists/test
owner-test:     root
test-owner:     root
test-request:   root 

        procmailrc.test

:0fhw
* ^Subject: \/.*
| formail -l "Subject: hahahaha $MATCH"

:0
| /work/majordomo/wrapper resend -l test test-list  


Doesn't seem to work... still looking at it.






----------
From:         Christopher Lindsey[SMTP:lindsey(_at_)ncsa(_dot_)uiuc(_dot_)edu]
Sent:         Monday, May 11, 1998 1:26 PM
To:   Robertson, Hedley J. SPC
Cc:   procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de
Subject:      Re: Sendmail, Procmail, and Majordomo

I am pretty new to all this but I have a question.  I have a working
majordomo listserver and Procmail and I am trying to automatically
Prepend
a string of text to the outgoing messages from the mailing list.  I
have
figured out basically how to use proc mail from a user's account point
of
view but how would I invoke it to process outgoing listserver mail?

Stick it in your alias file:

i.e.  instead of

   test: "|/usr/lib/mail/majordomo/wrapper resend -p bulk -M 10000 -l test
-f owner-test -h mallorn.com -s test-outgoing"

it would become

   test: "|/usr/bin/procmail -m /usr/lib/mail/majordomo/procmailrc.test"

Then /usr/lib/mail/majordomo/procmailrc.test would have your recipes to
make
the changes:

   :0fhw
   * ^Subject: \/.*
   | formail -I "Subject: [TEST] $MATCH"

   :0
   | /usr/lib/mail/majordomo/wrapper resend -p bulk -M 10000 -l test -f
owner-test -h mallorn.com -s test-outgoing

or whatever.

Note:  This is untested, written as I eat an orange during lunch.
Hopefully it'll
be enough to get you going.

Chris


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