<div dir="ltr"><div>Hello Andreas,<br><br></div>This is a scrip (on create), it does something like you want. This is fot RT3.8. You have to finish it by replacing the regex part where I wrote "YOU HAVE TO PUT SOME REGEX HERE"<br>
<div><br><div>Ákos<br></div><div><br>### Scrip head ### you don't really need this whole heade<br><div>my $scname = "SC".$self->ScripObj->id."-3 TX".$self->TicketObj->id." ".$self->ScripObj->Description." - ";<br>
my $log = 1;<br>
$RT::Logger->debug( "$scname: Ticket: ". $self->TicketObj->Id ) if ($log);<br>my $requestor_address = $self->TicketObj->RequestorAddresses;<br>my $content = $self->TransactionObj->Content;<br>
return 1 unless $content;<br>$RT::Logger->debug( "$scname Text attachment has found." ) if ($log);<br>$RT::Logger->debug( "$scname content: $content" ) if ($log);<br></div><div>### End oh head ###<br>
</div><div><br><br>#<br># SetRequestor<br>#<br><br>if( $content =~ m/YOU HAVE TO PUT SOME REGEX HERE to extract the email address from the mail body like <i>From:John Doe <(john.doe@yyyyyy.yyy)></i>/m ) {<br> $RT::Logger->debug( "$scname .SetRequestorFromBody: START $1" ) if ($log);<br>
$self->TicketObj->DeleteWatcher( Type => "Requestor", Email => $requestor_address );<br> $self->TicketObj->AddWatcher( Type => "Requestor", Email => $1 );<br>}<br>
<br>$RT::Logger->debug( "$scname : END" ) if ($log);<br><br>1;<br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 30, 2014 at 9:24 AM, Andreas Heinlein <span dir="ltr"><<a href="mailto:aheinlein@gmx.com" target="_blank">aheinlein@gmx.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'd like to be able to forward mails which arrive at my address to RT and have RT extract the requestor's address from the forwarded mail, instead of using the sender address (which is me in this case).<br>
<br>
I cannot use something like the "Mail Redirect" extension to Thunderbird, which redirects mails retaining the original sender address, since the incoming mails are encrypted for me and need to be forwarded unencrypted.<br>
<br>
I know there is "Extract custom fields from mail", but this is not a custom field. Does anyone know a solution for this?<br>
<br>
Thanks,<br>
Andreas<br>
</blockquote></div><br></div>