There is lots of progress in og_mailinglist for D 7.x. I'm really excited and very appreciative to @mahfiaz, @kyle_mathews, @marco and others who have shepherded this project, worked on patches etc.

og_mailinglist for D 7.x is currently in dev and there are problems to resolve. The purpose of this support ticket is to support people who need to use og_mailinglist in production now.

I'm going to list what I'm doing and invite others to share what they are doing. This support issue is not meant to circumvent bug reports in the issue queue at all. It's just to help those who need to go production now before longer-term solutions are committed.
Subscription problems:

  • og_mailinglist ignores email preferences "digest" and "none"
  • user/%user/og_mailinglist does not work
  • when a group admin adds or removes a user to/from a group, that user will not be signed up to receive emails or unassigned

How I'm addressing subscription problems:

  1. Make sure the "Manage mailinglist subscriptions" permission at admin/people/permissions is not checked for any roles.
  2. Disable the og_mailinglist block sub-module. The only way that a person subscribes and will get email is by joining a group themselves. They must leave the group to stop receiving emails. No admin can administer another users subscriptions unless logged in to that person's account.
  3. Hack the footer code so that users don't click on broken links and so people can unsubscribe. It is spam to send out emails with broken unsusbcribe links. So no site should be in production with the current footer code. I've posted a pastebin where you can see the whole footer email function in context and there I've clearly documented what I've done. The short version is this (around line 286 in og_mailinglist_common.inc):
    I grab the url of the relevant group page:
    $grouppage = url("node/" . $node->og_group_ref['und'][0]['target_id'], $absolute);
    Then I add to the output of the footer a few lines below:
    . t('Manage group subscription: @link', array('@link' => $grouppage)) . '<br />';
    It occurs to me this might not be sufficient if the content is posted to more than one group. On my site I limit postings to one group, so this will work.
    I also comment out the output for the current links that are broken.

File attachments. For og_mailinglist file attachments to work in emails: in the associated field settings for the field you've established for og_mailinglist (at admin/config/group/mailinglist/content_types) the "File Directory" field must be blank. In other words, files must be stored at the root of the "file system path" which is set at: admin/config/media/file-system.

That's it for now. Please share you feedback, ideas, or whatever you are doing to be able to use og_mailinglist on a live site.

Shai Gluskin

Comments

Shai’s picture

Issue summary: View changes

Added to my instructions for fixing the footer: "I also comment out the output for the current links that are broken."

mahfiaz’s picture

A follow-up. I fixed some things so there should be two remaining problems, namely:

  • og_mailinglist ignores email preferences "digest" and "none"
  • file attachments directory needs to be blank

As for hacking footer code, one should note that it is a theme function. So to have custom footer for your site default theme "mytheme", you could copy function theme_og_mailinglist_mail_footer($variables) from og_mailinglist_common.inc to your mytheme.theme file and rename it to mytheme_og_mailinglist_mail_footer($variables).

schultetwin’s picture

For: "file attachments directory needs to be blank":

  1. Make sure your the script "/etc/postfix/postfix_og_mailinglist/og_mailinglist_postfix_transport.php" (or something else if you're not usig postfix) is running as the apache user, not the mail user. With postfix you need to see user=apache:apache (or user=httpd:httpd in master.cf)
  2. See the bug report here: #2006686: File fields with sub-directories
schultetwin’s picture

Issue summary: View changes

Added a reference to where I was putting the code I reference.