Hi Kyle,
I am feeling reluctant to post anything I experience as a bug at this point, but I'm stumped right now.
I've set up OGM on my site (latest version from git) and have been taking lots of time to test it thoroughly. I've created 4 different users with 4 separate mailboxes for testing the 3 different mail delivery options (no email, email and digest). I also have my qmail setup delivering all mail to the default maildrop to a mailbox so I can see all messages sent to it. I've checked in the og_mailinglist_subscriptions table and subscriptions are set up correctly (as far as I can tell) for the 4 different users.
Incoming mail to the mailbox is being posted to the group as a discussion content type. Outgoing mail, however, is not always being sent. It seems to only be sending to people that get involved in a post. E.g. the user who starts a conversation gets a copy by email, and a user who comments on a post gets further replies by email. These mailings completely ignores the delivery options and just deliver by email straightaway.
On my eduglu site all is working as expected - so I am obviously missing some configuration options on my site. Any suggestions on where to start troubleshooting?
Cheers,
Tobias
Comments
Comment #1
kyle_mathews commentedJust to make super clear -- If the user's subscription is set to "no email" or "digest" they aren't going to get an email -- unless as it seems you found out if they participate directly in the discussion, then they'll start getting regular emails. But only for that thread.
So check that a user whose subscription for that group is set to "email" is also not getting emails from new discussions. If they are not, also check the og_mailinglist_thread table where per-thread subscriptions are stored. If they didn't get an email, they shouldn't be in this table either.
Comment #2
tobias commentedHey Kyle,
Thanks for the response. I have been paying especially close attention to user subscription settings, and have created a handful of test users.. eg ogmmail and ogmmail2 with "email", ogmdigest with "digest" and ogmnomail with "no email".
After another round of testing tonight, it is looking like group subscriptions are broken but thread subscriptions are working perfectly. E.g. when a user creates a new node, nothing happens - no email is sent out. When a second user comes and replies via a comment, the first user gets the email but nobody else. When the first user replies by email or via the website, the first and second users get an email. When a third user then gets in the conversation, the first two get replies. When one of the first two then reply, they all three start getting replies.
Cheers,
Tobias
Comment #3
kyle_mathews commentedLooks like something is goofy with your og_mailinglist_subscription table. Try leaving and rejoining a group to see if it fixes things. I've never had this error.
Comment #4
tobias commentedHi kyle,
I've actually tried lots of things - including uninstalling og_mailinglist and checking that all the tables were deleted and then reinstalling. Yesterday I did it with a fresh download of your code with no luck. Just tried leaving and rejoining a group too. I'm not able to make this problem go away, sadly.
Could this be related to your code that accommodates qmail?
Cheers,
Tobias
Comment #5
tobias commentedHey Kyle - I am still stuck on this. Can you think of any troubleshooting tricks I could try to track down the source of this problem? As far as I can tell all is set up fine on this end, since OGM successfully posts new nodes and comments and thread subscriptions work. I am baffled.
Thanks!
Tobias
Comment #6
tobias commentedHi Kyle,
Now that digests are confirmed to be working on my system, it appears that it is only subscriptions to groups of type "email" that are not working. They do not generate emails at all to the group email address, and are not being distributed. Digests and thread subscriptions, on the other hand, are working perfectly.
I have tried alot of things to try to resolve this, including:
* unsubcribing and rejoining group
* changing subscription to another sub type and back again
* uninstalling ogm and reinstalling it
* turning off other modules one at a time and testing and then turning them back on again
Any guidance much appreciated.
Cheers,
Tobias
Comment #7
kyle_mathews commentedA few suggestions.
Try upgrading to the latest code from github. I fixed one bug which might be affecting you http://github.com/KyleAMathews/og_mailinglist/commit/8be5cee9268f8de0429...
Second, look at the email that's generated in your /tmp directory to see what email addresses are actually being added.
Comment #8
tobias commentedHi Kyle,
Thanks for the suggestions. Your fix is helping. Here's the good news bad news result:
1) new nodes are working! They are distributing as expected to all group members. A revolution! Likewise comments to new nodes by email.
2) new comments via the website are generating the following error:
Cheers,
Tobias
Comment #9
kyle_mathews commentedHmmm... seeing the same bug.
Should be fixed with http://github.com/KyleAMathews/og_mailinglist/commit/b86dcd913324fe5d0ef...
Comment #10
tobias commentedyup! confirmed.. that error has gone away on my site.
-t
Comment #11
kyle_mathews commented