Re: Comment reply handling

Yusuke NAKAI <[email protected]> Sat, 23 Dec 2006 02:11:34 +0900
Newsgroups gmane.comp.python.zope.coreblog.english
Message-ID <[email protected]>
Hi,

> I only have one small problem left, with this aproach the commentator 
> gets a notification mail even when he makes the comment himself

Email address being posted is got by 'REQUEST.form[email]' (if entered). 
So you can check if it's included in 'addr_list' before sending 
notification email.

For example:
--------------------------------------------------
for addr in addr_list:
     if addr == REQUEST.form[email]:
         continue
     else:
         to_addr = addr
         from_addr = context.getNotify_from()
         ...
--------------------------------------------------

Regards,

-- 
Yusuke NAKAI

mail: [email protected]
web : http://nagosui.org
_______________________________________________
COREblog-en mailing list
COREblog-en-/9qXvnWia/9Wk0Htik3J/[email protected]
http://postaria.com/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave-/9qXvnWia/9Wk0Htik3J/[email protected]