Submitted by : FrankLaurijssens at: 2006-04-20T05:34:49+00:00 (11 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Two issues described here, should really be on different pages:

The second has been resolved. What is the problem caused by the first ?

Also, it says here "Related to #1197 and #1254".

... --EmmaLaurijssens, Thu, 20 Apr 2006 05:40:04 -0700 reply

Edits to this issue aren't being sent either.

need more info --simon, Mon, 01 May 2006 18:47:27 -0700 reply

> The inCMF call in emailAddressFrom fails while in CMF, but only when the latter is called through sendMailToEditSubscribers

I don't see why from code inspection, could you reproduce this and paste the traceback if possible.

> The NO_ADDRESS_FOR_ prefix breaks mailouts as well, probably when the receiving MTA does sanity checks on the mail adresses

I see, that's unfortunate (which MTA ?) The purpose of those markers was to make it easier to notice and troubleshoot when a subscriber doesn't receive mail due to not entering or losing their email address preference. I've removed them, instead we should check and report this problem directly to the user when they view the subscribeform (patches welcome).

... --stelian, Thu, 29 Jun 2006 08:34:01 -0700 reply

I have this same issue. Tracing it shows that in Editing.py, edit() method:

self.inCMF() is true

but after p = self.pageWithNameOrId(page) # changing another page

p.inCMF() is false

I'm no Zope/Plone expert so I'm not sure how to debug this further.

version 0.54... --stelian, Thu, 29 Jun 2006 08:40:49 -0700 reply

This is with ZWiki-0.54...

... --stelian, Thu, 29 Jun 2006 08:59:27 -0700 reply

Even after I forced a 'p = self' in edit(), it fails later in Mail.py:emailAddressFrom().

I had to replace
email = getattr(member,'email','')
with
email = member.getProperty('email')

to make it work.

This is with Plone-2.5 in case it matters.

(edit) add note --Frank Laurijssens, Wed, 02 Aug 2006 23:25:34 -0700 reply

The problem here is that if InCMF? fails, no valid e-mail address is being generated, and no mail is being sent.

??changed: -Related to #1197 and #1254 Two issues described here, should really be on different pages:

++added: The second has been resolved. What is the problem caused by the first ?

Also, it says here "Related to #1197 and #1254".

**The inCMF call in emailAddressFrom fails while in CMF,
but only when the latter is called through se** --nachtigall, Wed, 20 Sep 2006 13:29:15 -0700 reply

<pre> The inCMF call in emailAddressFrom fails while in CMF, but only when the latter is called through sendMailToEditSubscribers </pre>

what causes this: <pre> return hasattr(self.aq_inner.aq_parent,'portal_membership') fails when called from emailAddressFrom, because (Pdb) p self.aq_inner.aq_parent <ATFolder? at /freifunk/wiki>

and portal_membership is beneath freifunk (freifunk is my plone site).

(Pdb) p hasattr(self.aq_inner.aq_parent,'portal_membership') False (Pdb) p hasattr(self.aq_inner,'portal_membership') True

I am not a zope expert, but this fixed it:

def inCMF(self):
"""return true if this page is in a CMF portal""" return hasattr(self.aq_inner,'portal_membership')

I would be happy if anybody could explain why this fixed it with regards to aquisation (as a reward for the patch ;-) </pre>

zwiki version --nachtigall, Wed, 20 Sep 2006 13:30:18 -0700 reply

forgot to say, that this is with ZWiki-0-56-0

damn it: "No message recipients designated" says mailhost --nachtigall, Wed, 20 Sep 2006 14:05:23 -0700 reply

one step further, there comes yet another one: <pre> 2006-09-20T22:58:19 BLATHER ZWiki failed to send mail to [u'nachtigall@web.de']?: Traceback (most recent call last):

File "/home/jens/software/freifunk/instance/Products/ZWiki/Mail.py", line 783, in sendMailTo
self.mailhost().send(msg)

File "/home/www.freifunk.net/freifunk-instance_zope2.8.6_plone2.1/Products/SecureMailHost?/SecureMailHost?.py", line 173, in send File "/home/jens/software/freifunk/zope-2.8.6_plone2.1/lib/python/Products/MailHost/MailHost.py", line 142, in send

messageText, mto, mfrom = _mungeHeaders( messageText, mto, mfrom, subject)
File "/home/jens/software/freifunk/zope-2.8.6_plone2.1/lib/python/Products/MailHost/MailHost.py", line 218, in _mungeHeaders
raise MailHostError?, "No message recipients designated"

MailHostError?: No message recipients designated

</pre>

I tried to pdb this, but without success: here are the arguments of _mungeHeaders: <pre> (Pdb) args messageText = From: info@freifunk.net (jensN) Reply-To: info@freifunk.net To: info@freifunk.net Bcc: nachtigall@web.de Subject: [freifunk-wiki-edit]?[Access Point]? (edit) test-note Message-ID: <20060920230238+0200@localhost:8080> X-Zwiki-Version: 0.56.0 X-BeenThere?: info@freifunk.net List-Id: wiki <info@freifunk.net> List-Post: <mailto:info@freifunk.net> List-Subscribe: <http://localhost:8080/freifunk/wiki/AccessPoint/subscribeform> List-Unsubscribe: <http://localhost:8080/freifunk/wiki/AccessPoint/subscribeform> List-Archive: <http://localhost:8080/freifunk/wiki/AccessPoint> List-Help: <http://localhost:8080/freifunk/wiki> Content-Type: text/plain; charset="utf-8"

??changed: -<p><span id="region-content">sdf</span></p><p><span id="region-content"><br></span></p><p><span id="region-content">sdest1<br></span></p><p><span id="region-content">sdftt</span></p><p><span id="region-content">r1</span></p><p>ttt<br><span id="region-content"></span></p><p><span id="region-content">t2</span></p><p><span id="region-content">t2<br></span></p><p><span id="region-content">Um bei einem freifunk.net-dsfProjekt mitmachen zu <p><span id="region-content">sdf</span></p><p><span id="region-content">1<br></span></p><p><span id="region-content">sdest1<br></span></p><p><span id="region-content">sdftt</span></p><p><span id="region-content">r1</span></p><p>ttt<br><span id="region-content"></span></p><p><span id="region-content">t2</span></p><p><span id="region-content">t2<br></span></p><p><span id="region-content">Um bei einem freifunk.net-Projekt mitmachen zu

-- forwarded from http://localhost:8080/freifunk/wiki/AccessPoint#msg20060920230238+0200@localhost:8080

mto = None mfrom = None subject = None

</pre>

backtrace here <pre> (Pdb) bt

/home/jens/software/freifunk/zope-2.8.6_plone2.1/lib/python/ZServer?/PubCore?/ZServerPublisher?.py(23)__init__()
-> response=response)
/home/jens/software/freifunk/zope-2.8.6_plone2.1/lib/python/ZPublisher?/Publish.py(387)publish_module()
-> environ, debug, request, response)
/home/jens/software/freifunk/zope-2.8.6_plone2.1/lib/python/ZPublisher?/Publish.py(188)publish_module_standard()
-> response = publish(request, module_name, after_list, debug=debug)
/home/www.freifunk.net/freifunk-instance_zope2.8.6_plone2.1/Products/PlacelessTranslationService?/PatchStringIO?.py(51)new_publish() /home/jens/software/freifunk/zope-2.8.6_plone2.1/lib/python/ZPublisher?/Publish.py(114)publish()
-> request, bind=1)
/home/jens/software/freifunk/zope-2.8.6_plone2.1/lib/python/ZPublisher?/mapply.py(88)mapply()
-> if debug is not None: return debug(object,args,context)
/home/jens/software/freifunk/zope-2.8.6_plone2.1/lib/python/ZPublisher?/Publish.py(40)call_object()
-> result=apply(object,args) # Type s<cr> to step into published object.
/home/jens/software/freifunk/instance/Products/ZWiki/Editing.py(306)edit()
-> if text != None: p.handleEditText(text,REQUEST,subjectSuffix,log)
/home/jens/software/freifunk/instance/Products/ZWiki/Editing.py(399)handleEditText()
-> subject='(edit) %s' % log)
/home/jens/software/freifunk/instance/Products/ZWiki/Mail.py(699)sendMailToEditSubscribers()
-> exclude_address=exclude_address)
/home/jens/software/freifunk/instance/Products/ZWiki/Mail.py(783)sendMailTo()
-> self.mailhost().send(msg)
/home/www.freifunk.net/freifunk-instance_zope2.8.6_plone2.1/Products/SecureMailHost?/SecureMailHost?.py(173)send() /home/jens/software/freifunk/zope-2.8.6_plone2.1/lib/python/Products/MailHost/MailHost.py(142)send()

-> messageText, mto, mfrom = _mungeHeaders( messageText, mto, mfrom, subject) > /home/jens/software/freifunk/zope-2.8.6_plone2.1/lib/python/Products/MailHost/MailHost.py(195)_mungeHeaders() -> mfile=StringIO?(messageText.lstrip())

</pre>

i.e.: mail-out is broken in 0.56.0 with plone --nachtigall, Thu, 21 Sep 2006 06:08:14 -0700 reply

i.e.: mail-out is broken in 0.56.0 with plone

just to stress how critical this bug imho.

-- nachtigall

I saw this too. --drew, Wed, 11 Oct 2006 18:56:42 -0700 reply

I figured out the member.getProperty('email') hack as a workaround. Not sure if it is proper, but it works.

mailout in plone 2.5.2 with zwiki 0.58 works now --betabug, Fri, 23 Feb 2007 11:09:29 +0000 reply

Status: open => closed

Not entirely fixed? --EmmaLaurijssens, Mon, 26 Feb 2007 08:25:49 +0000 reply

Status: closed => open

At least on zwiki.org I don't get notifications of newly created pages. Why?

Wait, let's create a fresh issue for that problem. --EmmaLaurijssens, Mon, 26 Feb 2007 08:37:21 +0000 reply

Status: open => closed