[rt-devel] Possible fix to attachment mail problem (2.0.x)
Kevin Croombs
kevin_croombs at tao-group.com
Wed Jul 25 09:06:51 EDT 2001
Dear Matt,
On Wed, Jul 25, 2001 at 8:39:07AM -0400, Matthew D. Stock wrote:
> I think I've found where things go wrong, but I don't have anough of a
> global understanding of the code to put a patch together. I figured that
> I'd report my findings and see if someone can suggest the right way to fix
> what I'm seeing.
>
> The problem that I'm running into relates to mime sent into RT. It gets
> parsed correctly and displayed via WebRT, but outgoing mail doesn't provide
> any content at all, even any initial text part.
My Correspondence template looks like this:
{
$Transaction->Attachments('text/plain')->First->Content ||
$Transaction->Attachments('text/html')->First->Content ||
"No Viewable Message."
}
This (taken from a post here a while ago) should give you at least
some message content.
I have also hacked together a "BounceAll" scrip action (attached).
It will pass on all attachments. Copy into your lib/RT/Action and
update your DB as below.
On Fri, Jul 06, 2001 at 2:10:32PM +0100, Kevin Croombs wrote:
> 3. New scrip action "BounceAll". We wanted email attachments on
> correspondence to be passed on. BounceAll.pm also removes people
> from To, Cc & Bcc if they were on the To or Cc list of the original
> email. We have $ParseNewMessageForTicketCcs set, which causes email
> Cc's to be added to RT's Cc list. When RT sends email out it is
> CC'd to those on the CC list. If the requester happens to
> "reply-to-all", they'll send a mail to RT and RT's CC list - when RT
> gets the mail it'll send yet another copy to everyone on the CC
> list. BounceAll removes these people so that they only get one
> copy. Attached "BounceAll.pm".
[..]
> You'll need to update your ScripActions table if you want to use
> these modules, something like:
> > insert into ScripActions(Name, Description, ExecModule, Argument)
> > values ("BounceAllWatchers", "Forward mail to all watchers",
> > "BounceAll", "All");
> >
> > insert into ScripActions(Name, Description, ExecModule, Argument)
> > values ("BounceRequestorsAndCcs", "Forward mail to requestors",
> > "BounceAll", "Requestor,Cc");
> >
> > insert into ScripActions(Name, Description, ExecModule, Argument)
> > values ("BounceAdminWatchers", "Forward mail to admin watchers",
> > "BounceAll", "AdminCc");
--
Kevin Croombs - Technical Support (support at tao-group.com)
Tao Group (http://www.tao-group.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BounceAll.pm
Type: application/x-perl
Size: 2766 bytes
Desc: not available
Url : http://pallas.eruditorum.org/pipermail/rt-devel/attachments/20010725/b854a050/BounceAll.bin
More information about the Rt-devel
mailing list