<div dir="ltr">Since action is required (or at least documented as such) it seems that<br>&nbsp; --action correspond --extension action<br>should default to an action of correspond for messages without an extension.<br>Thusly <a href="mailto:rt@example.com">rt@example.com</a> an <a href="mailto:rt%2Bcorrespond@example.com">rt+correspond@example.com</a> are equivalent,<br>
whereas <a href="mailto:rt%2Bcomment@example.com">rt+comment@example.com</a> is not.<br><br>The simple patch below (3.8.0) simply falls back to the value supplied on the<br>command-line if EXTENSION is undef. This should work for queue and action,<br>
and ticket will simply remain null; though a warning may be raised about<br>undefined value.<br><br>--- /opt/rt3/bin/rt-mailgate~&nbsp;&nbsp; 2008-08-02 10:58:26.000000000 -0400<br>
+++ /opt/rt3/bin/rt-mailgate&nbsp;&nbsp;&nbsp; 2008-08-11 14:30:24.000000000 -0400<br>@@ -89,7 +89,7 @@<br>&nbsp;};<br>&nbsp;<br>&nbsp;if ( ($opts{&#39;extension&#39;} || &#39;&#39;) =~ /^(?:action|queue|ticket)$/i ) {<br>-&nbsp;&nbsp;&nbsp; $args{ lc $opts{&#39;extension&#39;} } = $ENV{&#39;EXTENSION&#39;};<br>

+&nbsp;&nbsp;&nbsp; $args{ lc $opts{&#39;extension&#39;} } = $ENV{&#39;EXTENSION&#39;} || $opts{$opts{&#39;extension&#39;}};<br>&nbsp;} elsif ( $opts{&#39;extension&#39;} &amp;&amp; $ENV{&#39;EXTENSION&#39;} ) {<br>&nbsp;&nbsp;&nbsp;&nbsp; print STDERR &quot;Value of the --extension argument is not action, queue or ticket&quot;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .&quot;, but environment variable EXTENSION is also defined. The former is ignored.\n&quot;;<br><br>-- <br>Cambridge Energy Alliance: Save money &amp; the planet<br>
</div>