CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • mailman synchronization
Pages: [1]

Author Topic: mailman synchronization  (Read 530 times)

jgregory

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 1
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.3.29
mailman synchronization
June 27, 2012, 11:39:37 am
I know mailman isn't part of CiviMail; but this still seemed like the best board to post my question. I've read http://wiki.civicrm.org/confluence/display/CRMDOC41/Mailman+synchronization and think I did everything right but... I'm getting this error
Quote
PHP Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /etc/mailman/sync2mailman.php on line 2
when I run the script. Sounds like a simple syntax problem; but I don't know php. Any help would be greatly appreciated.
Here's the first few lines of code in sync2mailman.php.
Code: [Select]
<?php
require_once '/var/www/joomla/administrator/components/com_civicrm/civicrm/civicrm.config.php';
require_once 
'CRM/Core/Config.php';
require_once 
'api/v2/Contact.php';
 
$config =& CRM_Core_Config::singleton();
 
global 
$tmpfilename;
global 
$mmparams;
 
$tmpfilename = '/etc/mailman/tmp/sync2mailman.txt'; // Temporary file location
 
// Add the Mailman sync_members parameters here
// see http://www.tin.org/bin/man.cgi?section=8&topic=sync_members for syntax
$mmparams = "-n -w=no -g=no";

TIA, John
« Last Edit: June 27, 2012, 01:30:03 pm by jgregory »

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: mailman synchronization
June 27, 2012, 12:39:37 pm
hi - i will see if we can provide some update on this. an old client of ours had some work done for this for D6. We had a go at sorting it for D7 and extending it a bit but I think we had to put it aside but may be able to come back to it in the medium term. We were trying to have it set up so Mailman could synch to either civi groups, or organic groups, or roles etc
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

jgregory

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 1
  • CiviCRM version: 4.5.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.3.29
Re: mailman synchronization
June 27, 2012, 01:08:01 pm
Thanks for the offer petednz. Sounds like folks may not have used that script on newer versions of Civi. I'm running on Joomla though, not Drupal. Not sure what impact that has on this particular problem.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • mailman synchronization

This forum was archived on 2017-11-26.