[rt-users] Scrip Help

Ken Crocker kfcrocker at lbl.gov
Thu Jun 11 10:26:14 EDT 2009


Aaron,

    We use this code:

# condition set on email transaction to create

my $trans = $self->TransactionObj;
my $msgattr = $trans->Message->First;

return 0 unless $trans->Type eq "Create";
return 0 unless $msgattr;
return 1 if $msgattr->GetHeader('Received');
return 0;

    Hope this helps.

Kenn
LBNL

On 6/10/2009 7:04 PM, Aaron Guise wrote:
> Thanks Jerrad,
>
> I couldn't remember where I had seen this before.   I since had a good 
> search and found it on the Wiki.
>
>     *Regards,*
>
>     *Aaron Guise
>     027 212 6638
>     aaron at guise.net.nz <mailto:aaron at guise.net.nz>
>      *
>
>
>
> On Thu, Jun 11, 2009 at 12:59 PM, Jerrad Pierce 
> <jpierce at cambridgeenergyalliance.org 
> <mailto:jpierce at cambridgeenergyalliance.org>> wrote:
>
>     This info exists somewhere on the wiki as a user-contributed
>     enhancement.
>
>     --
>     Cambridge Energy Alliance: Save money. Save the planet.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090611/1dedddd0/attachment.htm>


More information about the rt-users mailing list