1. Is this a good idea? Getting a copy back from the list insures that the message went
out to the list! If you do not get it back, you don't know for sure! But it's your call.
2. majordomo uses sendmail's :include: function in sending out messages. Sendmail does
not offer such a facility, unless you hack it in. As long as list outgoing aliases use
this function to ransmit messages, you're going to have a real problem.
3. Were you to use some other program to handle transmitting list traffic which read the
membership file, and transmitted each message indivigually, it would in essense be
performing a loop which lends itself to modification. That modofied loop would look
something like:
#(python code warning!)
f1=open(listname,'r') # open in the membership file
listmembers=f1.readlines(filename) # read in all the lines in it
f1.close() # close the file access
for eachmember in listmembers: # walk through the list of members
if eachmember!=from: # != means 'NOT EQUAL TO'
sendmail(from, eachmember, subject, message)
else: # These 4 lines implement the exclusion function
pass # DO NOTHING. you can exclude these 2 lines.
sys.exit() # exit the program
ok, this is written in python, but it ought to get the idea across.
If the sender (from) and the current address are identical, DO NOT send the message,
and continue with the loop until you exaust all the addresses in the variable
'listmembers'. Then exit the program.
Flexibility in this program is a usefull assett. This could be switched on by the
presence of a file:
#(python code warning!)
f1=open(listname,'r') # open in the membership file
listmembers=f1.readlines(filename) # read in all the lines in it
f1.close() # close the file access
for eachmember in listmembers: # walk through the list of members
if os.exists(listname+'.exclude'):
` if eachmember!=from: # != means 'NOT EQUAL TO'
smtp.sendmail(from, eachmember, subject, messagebody)
else: # These 4 lines implement the exclusion function
pass # DO NOTHING. you can exclude these 2 lines.
sys.exit() # exit the program
else:
smtp.sendmail(from,eachmember, subject, messagebody)
sys.exit()
Now this code is off the top of my head; I think programming in python these days. :-)
I do not gurantee it will work as is; if you speak python, please vet the thing closely
for bugs. Doing it this way gives the postmaster choices- exclude originator or not?
I think I'll offer this option in the next edition of TinyList; it's a trivial refinement.
Hope this helps.
Klemen Humerca wrote:
> I was looking through archive, but I couldn't find an answer. Here is my
> question:
>
> How do I set it up so that the originator of a message doesn't get a copy of
> his/her own message back?
>
> Thank you!
>
>
--
end
Cheers!
Kirk D Bailey
think
http://www.howlermonkey.net/ +-----+ http://www.tinylist.org/
http://www.listville.net/ | BOX | http://www.sacredelectron.org/
+-----+
"Thou art free"-ERIS think 'Got a light?'-Promethieus
.
References:
|
|