Changes

Jump to navigation Jump to search
373 bytes added ,  10:28, 7 September 2008
m
Made some modifications in the order and simplified the instructions so copy-past should do the trick
Line 87: Line 87:     
If you want to enable personalization in mailman (make every mail sent with the name of the recipient in the to: field as example or add the name of the user on the text) you do this:
 
If you want to enable personalization in mailman (make every mail sent with the name of the recipient in the to: field as example or add the name of the user on the text) you do this:
Copy the entire folder mm_cfg.py from
+
<ol><li>Create the custom-templates tree, in case it does not exist already:
  /etc/e-smith/templates/usr/lib/mailman/Mailman/
+
  mkdir -p /etc/e-smith/templates-custom/usr/lib/mailman/Mailman/mm_cfg.py/
to
+
</li><li>
  /etc/e-smith/templates-custom/usr/lib/mailman/Mailman/
+
Copy the hostname file from the templates tree to the templates-custom tree maintaining the directory layout:
creating the needed folders if they arent there (most probably)
+
cp \
Then edit:
+
  /etc/e-smith/templates/usr/lib/mailman/Mailman/mm_cfg.py/30hostname \
 
  /etc/e-smith/templates-custom/usr/lib/mailman/Mailman/mm_cfg.py/30hostname
 
  /etc/e-smith/templates-custom/usr/lib/mailman/Mailman/mm_cfg.py/30hostname
adding this text to the last line:
+
</li><li>
  OWNERS_CAN_ENABLE_PERSONALIZATION = 1
+
Now we need to add one line to the custom template fragment to enable personalization:
And run:
+
  echo OWNERS_CAN_ENABLE_PERSONALIZATION = 1 >> \
 +
/etc/e-smith/templates-custom/usr/lib/mailman/Mailman/mm_cfg.py/30hostname
 +
</li><li>
 +
To refelct your changes we need to regenerate the file using the following commands:
 
  expand-template /usr/lib/mailman/Mailman/mm_cfg.py
 
  expand-template /usr/lib/mailman/Mailman/mm_cfg.py
 
  signal-event reboot
 
  signal-event reboot
Then enter to your mailing list admin (yoursite.com/mailman/admin/yourlist) and go to non-digest and in "Should Mailman personalize each non-digest delivery?" choose either yes or full personalization, test both to see wich one do you like more...
+
</li><li>
 +
After the server comes back up again enter your mailing list admin and go to non-digest and in "Should Mailman personalize each non-digest delivery?" choose either yes or full personalization. Test both to see wich one do you like more...
 
Also if you want to add a header with the person name enter in "Header added to mail sent to regular list members" this:
 
Also if you want to add a header with the person name enter in "Header added to mail sent to regular list members" this:
 
  Hello dear %(user_name)s
 
  Hello dear %(user_name)s
 
and mailman is going to replace the string with the name the person used when he/she subscribed.
 
and mailman is going to replace the string with the name the person used when he/she subscribed.
 +
</li></ol>
    
=== For more information ===
 
=== For more information ===

Navigation menu