Last updated January 11, 2012. Created by rsbecker on January 11, 2012.
Log in to edit this page.
It is time to test your setup.
You need to follow a few simple rules here to ensure that everything works properly.
- If you set the feed importers to require authentication only members of the group can post to it and comment on existing posts.
- Mailhandler requires that the user associated with the mailbox to which messages are sent be a member, i.e., Listmaster and Group1.
- To prevent message looping — messages getting stuck and repeatedly resending, especially when lists are moderated, you need to block the subscriptions of Listmaster and the user associated with the group mailbox.
Will it work?
- Add yourself to the group — that means you must be a member of the organic group, not merely that you have subscribed to the list.
- Send an email to its mailbox, i.e., group1@example.com.
- Go to example.com/import, where you should see a list of the feed importers you created, including Listmaster and Group1.
- Click on Group1 and make sure group1@example.com appears in the dropdown list, then click Import.
- If you checked the Immediate sending on the Notifications main settings page, check your inbox for the post created from your email. If you did not do this you will have to wait until your site's the next cron cycle or the interval you set for the default subscription.
- After the message arrives, click Reply to sender.
- The Reply-to address should be listmaster@example.com.
- Send your reply.
- Go to example.com/import/listmaster and make sure listmaster@example.com appears in the dropdown list.
- Click import and then check to see if you receive an email from the mailing list with your comment.
- Go to the Content list to see the node that was created and the comment attached to it.
If your tests worked properly, congratulations. Now you can add other site users to the group so they can use the mailing list.
Troubleshooting
If you do not receive an email after sending the first message go to Manage Subscriptions>Administer and make sure subscriptions were created for Listmaster, Group1 and you, and that your subscription is not blocked or deactivated.
If the Reply-to address was not set to listmaster@example.com, reread the pages on setting up the Messaging module and the feed importers. Make sure you patched the Messaging module correctly.
Comments
Partly working
First of all, thank you for putting all the work into making this tutorial.
I've been trying to follow the steps as closely as possible and I have this partly working.
When I get to step 10 above, I get this error message:
warning: array_filter() expects parameter 1 to be array, string given in /srv/www/nyqm.vnewtechnology.info/public_html/sites/all/modules/og/og.module on line 1241.
It does create a node from the email but it doesn't put it in the organic group as it should.
I have these default commands set in my mailhandler feeds parser: (the nid of my group is 117)
status: 1
type: Article
og_groups: 117
comment: 0
moderate: 0
og_public: 1
promote: 0
sticky: 0
With so many modules in play, I'm not sure where I should be looking for where I went wrong. Can you help?
I'm traveling, so I cannot
I'm traveling, so I cannot give you the exacT fix, but I can tell you what to look for.
The real problem is in the og_notifications module when you are using php 5.3. The line has a variabl written as &$var that needs to be changed to $var (the arg is not "var" that is just because i cannot remember what it should be.
You can probably find the exact fix if you search for og_notifications errors in the og pending queue.
Still looking
Thanks. Yes, I am using php 5.3.
I've been looking in og_notifications.module and the issue queue. Fingers are pointing at og_notifications_notifications but making the change there hasn't fixed it.
Which version of og are you
Which version of og are you using? It cannot be the most recent one or the current dev version if you are using messaging and notifivations 6.x-4.x. It would have to be og 6.x-2.x released before 12/2011. The og maintainers gave up on the messaging/notifications 6.x-4.x branch because it was not being maintained and the considered the 6.x-2.x branch more stable.
My recommendation would be to use the 6.x-2.x branch if you can.
BTW, og_notifications_notifications is theright one. Just couldn't recall without looking at the code. Did you run update.php and clear all caches after fixing og_notifications?
I'm running the og 2.2 & did
I'm running the og 2.2 & did run update.php and clear the cache.
Here are the first few lines of og_notifications_notifications as I have them:
function og_notifications_notifications($op, $arg0, $arg1 = NULL, $arg2 = NULL) {switch ($op) {
case 'names':
$subs = $arg0;
if ($subs->event_type == 'node') {
if (!empty($subs->fields['group']) && ($group = node_load($subs->fields['group']))) {
$subs->names['group'] = t('Group: %name', array('%name' => $group->title));
}
}
break;
Besides changing the first line, I also changed the 4th line which previously was $subs = &$arg0;
I'm very grateful for your help.
Found the problem
After setting this up to run on PHP 5.2.x and isolating just the Importing the Feeds part of the setup, I discovered that when you set up the parser, you have to put the node id of your organic group in SQUARE BRACKETS.
When I read that page of the tutorial, I took the square brackets in your instructions as the generic 'insert your node id here'. Which, in retrospect, is an assumption I had no reason to make. I just left a comment on that page in case others make the same bone-headed error as I did.
(sometime I think my biggest contribution to the drupal world is being willing to look the fool so others will learn from my stupid mistakes)