I'm trying to implement the first option, not the second. Yes, you are
right about this custom header, but I can't find a software that help me
on that.
Actually I'm using the Cc field, but is not a goog idea because they
recive a mail from edu(_at_)domain(_dot_)org(_dot_)uy but with cc to teachers(_at_)domain(_dot_)net(_dot_)
Anyway, this mechanism helps a lot.
Thank you....
Gerald V. Livingston II wrote:
I believe we've run into a language barrier here. Here is my interpretation
of what Pedro actually wants to do -- I don't know how to implement it and
don't have time to research it (archives should provide the answers for a
native English speaker).
He simply wants to put the filename in ANOTHER header, rather than subject.
Mentioning 'Bcc:' specifically was simply an error. 'Bcc:' is an address
field which shouldn't contain a filename at all.
'From: Pedro'
'Subject: New School Rules'
'X-List-Filename: students.txt teachers.txt'
That would just require using an MUA capable of creating custom headers --
and remembering to create the proper header when required.
It looks like he's trying to implement mailing lists the "hard way". A list
for teachers, a list for students, a list for administrators. A field to
direct messages to the correct list(s) of recipients.
It seems that setting up a mailing list manager that allows "combined"
lists would be easier. Something like Ecartis or MailMan.
stu(_at_)domain(_dot_)dom Students list
tea(_at_)domain(_dot_)dom Teachers list
dir(_at_)domain(_dot_)dom Directors list
stutea(_at_)domain(_dot_)dom Combined list "A" (Students+Teachers)
studur(_at_)domain(_dot_)dom Combined list "B" (Students+Directors)
teadir(_at_)domain(_dot_)dom Combined list "C" (Teachers+Directors)
stuteadir(_at_)domain(_dot_)dom Combined list "D"
(Students+Teachers+Directors)
With the proper software the "combined" lists are not actually separate
lists with full subscription maintenance requirements (requiring a separate
email address entry in each list for each subscriber).
Rather than bothering with finding a way to create an extra field to hold
the list names one just sends to the correct list address.
************************************************************************************
The other possible interpretation I came up with is that he is actually
looking for a way to make the "! `cat $MATCH`" line use the 'Bcc:' field to
send a single email with all of the addresses in "Bcc:" rather than in
"To:".
Since the "!" forwarding function is compiled into Procmail I think the
only way to do that would be to not use "!" but instead to pipe the message
to sendmail using command line options to get the addresses from $MATCH
into "Bcc:" rather than "To:".
Gerald
On Tue, 17 Aug 2004 12:09:44 -0300 Pedro Gauna
<pguylug(_at_)montevideo(_dot_)com(_dot_)uy> wrote:
Hi, I have this rule working fine (thanks *Google Kreme*):
#############################################
:/0
/* Subject:(.*\<)?\/(teachers.txt|estudetns.txt|directives.txt)
! `cat $MATCH`
#############################################
This rule takes a message where a message matches eg.: teachers.txt and
send a copy to the mails in a file named teachers.txt.
Now I want to send a message to an address but I don`t want to write the
name of the file in the subject, but in BCC field.
I made this, but did not work:
#############################################
:/0
/* Bcc:(.*\<)?\/(teachers.txt|estudetns.txt|directives.txt)
! `cat $MATCH`
#############################################
Any ideas?
Thanks.....
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail