<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=MailingListIntegration</id>
	<title>MailingListIntegration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=MailingListIntegration"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=MailingListIntegration&amp;action=history"/>
	<updated>2026-08-21T18:06:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=MailingListIntegration&amp;diff=1935&amp;oldid=prev</id>
		<title>Admin: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=MailingListIntegration&amp;diff=1935&amp;oldid=prev"/>
		<updated>2016-04-06T20:14:21Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;We like to give users the option to sign-up for a related mailing list when submitting a ticket. We use mailman, but this solution should be adaptable to other systems. Although there&amp;#039;s Python::Serialise::Pickle, we were not comfortable twiddling mailman&amp;#039;s private data store so we developed the following:&lt;br /&gt;
&lt;br /&gt;
Scrip:&lt;br /&gt;
&lt;br /&gt;
* Name: On Create Inititate List Subscription&lt;br /&gt;
* Condition: User defined&lt;br /&gt;
* Action: Send email&lt;br /&gt;
* Template:&lt;br /&gt;
&lt;br /&gt;
 To: listName-subscribe@example.org&lt;br /&gt;
 From: { $Ticket-&amp;amp;gt;RequestorAddresses }&lt;br /&gt;
 Reply-To: { $Ticket-&amp;amp;gt;RequestorAddresses }&lt;br /&gt;
 Subject: Mailing list subscription&lt;br /&gt;
 Precedence: none&lt;br /&gt;
 &lt;br /&gt;
 Subscribe to mailing list.&lt;br /&gt;
&lt;br /&gt;
* Stage: [[TransactionCreate]]&lt;br /&gt;
* Custom Condition:&lt;br /&gt;
&lt;br /&gt;
 return 0 unless $self-&amp;amp;gt;TransactionObj-&amp;amp;gt;Type eq &amp;#039;Create&amp;#039;;&lt;br /&gt;
 return $self-&amp;amp;gt;TicketObj-&amp;amp;gt;FirstCustomFieldValue(&amp;#039;Subscribe&amp;#039;) =~ /^(?:1|Y|Yes)$/i;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Note: Precedence header is important (at least for mailman), without it the message is simply discarded. Mailman also ignores reply-to, and operates on from, but the header is included as a safety measure, and may be necessary for other systems.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>