Re: [rt-users] can't paste images in line

2016-06-07 Thread Andrea Caputto
Thanks.
El El mar, 7 de jun. de 2016 a las 18:35, Emmanuel Lacour <
elac...@easter-eggs.com> escribió:

> Le 07/06/2016 à 19:35, Andrea Caputto a écrit :
> > are you sure that extension is working for RT 4.4?
> >
>
> I don't know, I do not have 4.4 on production servers yet (will do soon).
>
-- 
Andrea Caputto
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] can't paste images in line

2016-06-07 Thread Emmanuel Lacour
Le 07/06/2016 à 19:35, Andrea Caputto a écrit :
> are you sure that extension is working for RT 4.4?
> 

I don't know, I do not have 4.4 on production servers yet (will do soon).
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] remove large attachments and replace with download link

2016-06-07 Thread Emmanuel Lacour
Le 07/06/2016 à 23:23, Hugo Escobar a écrit :
> We need to give our users the possibility of receiving large files (say
>> 10MB)
> 
> Knowing the attachment size limit all email services impose, we thought
> there should be a way to tell RT to replace large attachments with a
> download
> link when constructing the email message allowing the user to access those
> files.
> 
> I've been searching the internet to no avail.
> 
> 

Have a look at this plugin I just made:

http://search.cpan.org/~elacour/RT-Extension-AttachmentFilter-0.01/

It does not do what you ask for, but it can help you to understand the
process and now some usefull callbacks.

To my knowledge, nobody as done this, but I'm sure it's possible to do
it cleanly.


Be careful there is code change on file upload between RT 4.2 and 4.4, I
still did not work on 4.4 code (but will do soon ...).
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


[rt-users] remove large attachments and replace with download link

2016-06-07 Thread Hugo Escobar
We need to give our users the possibility of receiving large files (say >
10MB)

Knowing the attachment size limit all email services impose, we thought
there should be a way to tell RT to replace large attachments with a
download
link when constructing the email message allowing the user to access those
files.

I've been searching the internet to no avail.

Any help will be appreciated

-- 
Regards,

Hugo Escobar



4770 Biscayne Blvd, Ste 700
Miami, FL 33137

main: 305.677.0022
support: 305.921.4620
email: hesco...@afslc.com

Follow us on Facebook and Linked-In



NOTICE: This email and any attachment to this email may contain
confidential information. If you are not the intended recipient, you must
not review, retransmit, convert to hard copy, photocopy, use or disseminate
this email or any attachments to it. If you have received this email in
error, please notify us immediately by return email and delete this
message. Please note that if this email contains a forwarded message or is
a reply to a prior message, some or all of the contents of this message or
any attachments may not have been produced by our firm. *As our firm may be
deemed a debt collector, if your payment is in default, we may be
attempting to collect a debt on behalf of the association, and any
information obtained may be used for that purpose.*
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


[rt-users] Trouble Forwarding History When it's over a few KB

2016-06-07 Thread Daniel Moore
Hello,

Just curious to know if any has had an issue when they try to forward the 
History on a Ticket and it not go through the mail system when it's larger than 
100 KB?

I can send if I only forward one section but there are times when we need to 
forward more. Most of the time we need the picture attachments that I have 
in-line.

I think I am using FetchMail  on Ubuntu CLI


V/R,

Daniel Moore
IT Systems Technician
Osborne Wood Products, Inc.
[osborne]
P: 706.282.5764

<>-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] Escaping '<' and '>' in comments/replies and canned responses.

2016-06-07 Thread Barton Chittenden
On Fri, Apr 22, 2016 at 1:27 PM, Barton Chittenden <
bar...@bywatersolutions.com> wrote:

> In a further twist, html entities display correctly on the "Article
> Display" page, but when the canned response is actually *used*, I see
> html entities in the reply editor... but if I include text like ,
> 'foo' is removed in the reply editor... I have no way of including
> something that looks like an xml tag in a canned response.
>
>
Any further thoughts on this? I'm trying to create canned responses that
involve changes to XML configuration files, and all of the tags end up
empty.
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] can't paste images in line

2016-06-07 Thread Andrea Caputto
are you sure that extension is working for RT 4.4?

Thanks

El vie., 3 jun. 2016 a las 10:43, Emmanuel Lacour ()
escribió:

> Le 03/06/2016 à 15:25, Andrea Caputto a écrit :
> > Hello Emmanuel  thanks for your comment, it is right if i put :
> >
> >  Set($RT::Extension::PermissiveHTML, '1');
> >
>
> Install the extension and follow the configuration doc. Here I had:
>
> Plugin('RT::Extension::PermissiveHTMLMail');
> Set($MaxInlineBody, 100);
> Set($ShowTransactionImages, 1); # (default)
>
>
> and the file:
>
> $ cat rt/local/lib/RT/Interface/Web_Local.pm
> package HTML::Mason::Commands;
>
> # Show inline data images (mostly for Ctrl+v in richtext editor)
> $SCRUBBER_RULES{'img'}->{'src'} .= "|".qr/^data:/i if
> RT->Config->Get('ShowTransactionImages');
>
> 1;
>
>
>
> thought I prefer now the patch I submited in the ticket.
>
-- 
Andrea Caputto
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] Alternative GUIs for RT?

2016-06-07 Thread Vegard Vesterheim
On Wed, 1 Jun 2016 15:17:15 +0200 Christian Loos  wrote:

> Am 01.06.2016 um 11:53 schrieb Vegard Vesterheim:
>> I tried to register a new User Custom Field, naming the Field
>> 'PreferEditDisplay', and allowing two values for the field: 'Edit' or
>> 'Display'. I have registered the value 'Edit' for a specific user for
>> this Custom Field, but I am not able to extract the value
>> programmatically. I expected the following code to work, but I get no
>> values back.
>> 
>> my $UserObj = RT::User->new( $session{'CurrentUser'} );
>> my $cf_values = $UserObj->CustomFieldValues('PreferEditDisplay');
>
>
> You can easily add custom user preferences.
> Have a look here:
> https://github.com/tbrumm/RT-Extension-SideBySideView/blob/master/lib/RT/Extension/SideBySideView.pm#L9-L17

Ah, this is much better than using a User Custom Field, since this is a
custom user preference after all. Thank you.

> This new preference is used here:
> https://github.com/tbrumm/RT-Extension-SideBySideView/blob/master/html/Callbacks/SideBySideView/Ticket/Display.html/BeforeShowSummary#L15

I ended up using the EachRow callback from CollectionList. I sneakingly
alter the link for the Ticket landing page (from Display.html to our
local Edit.html) according to the user preference.

The callback hooks in RT is *very* useful for doing these sorts of
hacks;-)

-- 
- Vegard V -
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016