Great Circle Associates Majordomo-Users
(June 2003)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: copy of originator
From: Kirk Bailey <idiot1 @ netzero . net>
Organization: Silas Dent Memorial Cabal of ERIS Esoteric and hot dog boilingsociety
Date: Fri, 13 Jun 2003 12:44:12 -0400
To: majordomo-users @ greatcircle . com
References: <1055489217.3ee97cc1497af@webmail.takeiteasyci.com>
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0

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:
Indexed By Date Previous: Re: Bounce Messages
From: Deb <deb@tickleme.llnl.gov>
Next: Re: quoted text stripping filter
From: Daniel Liston <dliston@sonny.org>
Indexed By Thread Previous: copy of originator
From: Klemen Humerca <klemen@humerca.com>
Next: Re: copy of originator
From: Daniel Liston <dliston@sonny.org>

Google
 
Search Internet Search www.greatcircle.com