Needs work
Project:
Notifications
Version:
6.x-2.3
Component:
Content subscriptions
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2009 at 20:41 UTC
Updated:
6 Jul 2011 at 16:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gregstout commentedsubscribe - this is becoming a problem on our site, too.
Comment #2
Sarenc commentedSubscribing. Clients don't like this.
Comment #3
Sarenc commentedModified theme_notifications_digest_short_body in notifications.cron.inc to prevent it from adding duplicated lines. Hacky but it seems to work.
Comment #4
Sarenc commentedMy code only worked part of the time. Sometimes the $line contains a header line which breaks this method.
Comment #5
Anonymous (not verified) commentedIt's a problem for me too.
No suggestion?
Comment #6
Anonymous (not verified) commentedMaybe this is the solution.
Reduce update and insert events for the same node befor the digest message creation.
There is a new check in admin/messaging/notifications/events to active this function.
I hope this is helpful
Comment #7
Anonymous (not verified) commentedAnd this is the patch for the 6.x-2.3 version of the module
Comment #8
LetUsBePrecise commentedHello Patrizio,
May I request you to upload the patch in unified format?
Thanks.
Comment #9
webkenny commentedThe patch in #8 fails for us. Perhaps it's the format. Can we request this in a unified format according to the Drupal patch guidelines found here: http://drupal.org/patch/create - Thanks for the contribution but we have no way to move this to RTBC without a proper format. :)
Comment #10
Anonymous (not verified) commentedSorry, here is a diff patch
Comment #11
webkenny commentedSo far. reports are the patch isn't working as expected. It's hard to read as the indentation is steep but nonetheless can you talk a little about what the patch does?
Comment #12
LetUsBePrecise commentedThanks Patrizio for providing the patch in unified format. For some unknown reason, I am still getting duplicate lines in digest notification. Do we need any special settings to be done after putting patch in place? Thanks again for your help.
Comment #13
Anonymous (not verified) commentedAs I say on comment #6:
"There is a new check in admin/messaging/notifications/events to active this function."
Comment #14
LetUsBePrecise commentedNot sure why this is not working for me. Thought of letting you know so that proper testing could be done before this patch goes into the code.
Comment #15
webkenny commentedHas anyone beyond the original contributor had success in getting this to work?
Comment #16
ymmatt commentedSo I've believe I've reached the end of the internet in looking for a solution, so now I'll finally post. (sorry for the verbose post, trying to help future googlers out there)
I have a brand new install with relevant modules Notifications, Messaging, Groups installed. There may be others installed that matter, but from looking under the hood it doesn't look like that is the case.
Originally I was receiving two duplicate messages for every group node update. I then changed to digest and of course I see two lines for the same event in every digest email. I double checked that I'm not subscribed twice to the same content.
I tested it for normal page content and I'm still getting two event entries for one page update.
Then I tried to debug looking at this page admin/messaging/subscriptions/queue with the devel module logs turned on, but I still can't see where or why this token [event_list] seems to be getting replaced with two lines from the same event. On this page I see only one eid (event ID) but within the body of the email there are two lines for the same node/update:
So then I decided to switch back to no digest, and look at the same page. I now noticed that it said "rendering message" twice for the exact same message with the same eid etc...
I feel like I've lost the trail of the white bunny now, so hopefully someone can help me find my way.
Sorry, I just noticed one more thing when editing a node with devel logs displayed, notifications_get_subscriptions is called multiple times, what I've posted below appears twice every time I update a node:
Comment #17
ymmatt commentedWell, now I just feel stupid. I didn't notice that I had enabled a module or two from Notifications Add-ons module.
Not sure why I did but once I disabled them the duplicates went away.
Comment #18
tglynn commentedI applied Patrizio's patch manually and recreated the diff. Let me know if it doesn't work (because of technical reasons) or if the patch itself doesn't help the double line situation, because I am having that issue myself. I haven't yet tested this fully.
Comment #19
tglynn commentedThe patches that I attached in my last post didn't work for me for eliminating the duplicate lines, but I did fix it using a hook mail alter:
"The [node type] has been updated" seems to be the default text even when I put for that field. You may want to replace that text with something more unusual just in case the actual text has a sentence like that, which you wouldn't want to delete.
The \n in the above means a line return.
Comment #20
netmee commented