Re: [rt-users] Prevent changing of Custom Field

2007-11-15 Thread Benjamin Weser
Hi Kenn,

I don't think that there's an easy solution without changing RT code to
prevent the change earlier. At least I haven't found anything about it
in the list or wiki. I have similar requirements here and solved it with
setting back the newValue to oldValue, e.g. if the user shouldn't have
the possibility to set a combo box back to "work in progress" once he
changed it to "work done". It's not the best solution (and I still try
to get rid of the RT message "changed to 'work in progress'" although
there were no visible changes for the user) but it works.

If there's a solution to catch changes before changing the CF (like
described by Kenn), I would be interested in it too.

Regards,
Ben


Kenneth Crocker wrote:
> To all,
>
>
> I have a Custom Field that has two values, "Yes" and "No". I have
> granted "ModifyCustomField" to a certain group. When someone of that
> group modifies that CF, I want to "disallow" or "stop" that update
> from occuring if the ticket owner is the same person modifying the CF.
> Is that really possible? I've been assuming that when a custom
> condition checked the "NewValue", the "NewValue" was already a fact,
> set in stone. Is my assumption correct? If so, I could create a scrip
> to undo the change, but that seems a bit bulky and I would prefer to
> stop the change before it is completed. Any help??? Thanks.
>
>
> Kenn
> LBNL
>
> ___
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
>
> If you sign up for a new RT support contract before December 31, we'll
> take
> up to 20 percent off the price. This sale won't last long, so get in
> touch today.Email us at [EMAIL PROTECTED] or call us at +1
> 617 812 0745.
>
>
> Community help: http://wiki.bestpractical.com
> Commercial support: [EMAIL PROTECTED]
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch 
today. 
Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.


Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] new RTx::EmailCompletion and poll for the next release

2007-11-15 Thread Nicolas Chuche
Hello,

The new RTx::EmailCompletion should hit your store in the next few
hours : http://search.cpan.org/~nchuche/. See below for changes.

I've got some ideas for the next releases but would like to have your own :
 * parameter to show other fields than email in autocompletion list
(Name, Address, ...)
 * add other auto completion fields (link ticket with completion on subject)
 * add a context menu in tickets list to link directly to ticket subsections

As you can see, that's not only about email completion so feel free
add other things you would like to have in...

Main Changes for 0.03 are :

  * allow searching on fields other than email (Kevin Falcone && Best Practical)
  * LDAP autocompletion (emails LDAP background color in light grey)
  * optimisation in the match privileged/unprivileged criteria (faster
than the if ... elsif ... else inside the loop)
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch 
today. 
Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.


Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Procmail filtering

2007-11-15 Thread Sven Sternberger
Hi John!

only a guess, but due to the fact that the mailgateway also use
http internally, I would try to encode it like an http request
so I would try 
QUEUE="queue%20with%20spaces"

good luck

sven

On Mi, 2007-11-14 at 08:58 -0600, John Arends wrote:
> "$QUEUE" in my .rc file fixed the problem. It's quite obvious why that 
> is the solution now, but when banging your head against the wall for an 
> hour you sometimes don't see it.
> 
> Mathew Snyder wrote:
> > Have you tried queue\ with\ spaces?
> > 
> > Keep up with me and what I'm up to: http://theillien.blogspot.com
> > 
> > 
> > John Arends wrote:
> >> I'm trying to use procmail to filter messages coming into RT but I can't
> >> figure out how to pass a queue name to my procmail recipe if it has
> >> spaces in it.
> >>
> >> QUEUE=\"queue with spaces\" and QUEUE='queue with spaces' both cause
> >> failure.
> >>
> >> Any suggestions?
> >>
> >> My /etc/aliases looks like this:
> >>
> >> rt-general:  "|/etc/smrsh/procmail  -m QUEUE=General
> >> /etc/procmail/rt-deliver.rc"
> >>
> >> rt-deliver.rc looks like this:
> >>
> >>  # Trash Outlook autoreplies
> >> :0 w
> >> * ^subject:.*Out of Office AutoReply
> >>  /dev/null
> >>
> >> #Strip Attachments and HTML
> >> :0 fw
> >>|/usr/local/bin/stripmime.pl
> >>
> >> #Send it on to the RT queue
> >> :0 w
> >> | /usr/sbin/rt-mailgate --queue $QUEUE --action correspond --url
> >> https://myserver.edu/rt/
> >>
> >> ___
> >> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> >>
> >> SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
> >>
> >> If you sign up for a new RT support contract before December 31, we'll take
> >> up to 20 percent off the price. This sale won't last long, so get in
> >> touch today.Email us at [EMAIL PROTECTED] or call us at +1 617
> >> 812 0745.
> >>
> >>
> >> Community help: http://wiki.bestpractical.com
> >> Commercial support: [EMAIL PROTECTED]
> >>
> >>
> >> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy
> >> a copy at http://rtbook.bestpractical.com
> >>
> 
> ___
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
> 
> If you sign up for a new RT support contract before December 31, we'll take
> up to 20 percent off the price. This sale won't last long, so get in touch 
> today. 
> Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.
> 
> 
> Community help: http://wiki.bestpractical.com
> Commercial support: [EMAIL PROTECTED]
> 
> 
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch 
today. 
Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.


Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Restoring RT in Windows

2007-11-15 Thread Candelario, Bill
Hi,
 
I'm trying to restore my RT database, in Windows, using the following
statement that I found in a thread:
 
mysqlimport--user=root --default-character-set=binary --port=8284
--delete rt3 < c:\rt_win.sql 
 
It doesn't work.  I was wondering if this is the statement is correct or
if I should try to import the backup in a different way.  
 
Thanks,
Bill
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch 
today. 
Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.


Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Special Custom Field Display/Edit - Suggestions?

2007-11-15 Thread Todd Williams
Has anyone else had success with this Custom Custom Field idea and
have any sample implementations they might be willing to share?  I've
read through the RT Wiki pages on customizing RT but I am not sure
where to start with this.  I have not seen any reference information
posted anywhere doing what we are trying to do here.  Sorry if I'm
missing something obvious, just not seeing it.

Any guidance, samples, or otherwise pointers to more detailed
information on what we need to do to effectively implement a
customized Custom Field would be extremely helpful.

Thanks in advance!

On Nov 1, 2007 5:50 AM, Stan Sawa <[EMAIL PROTECTED]> wrote:
> On Tue, 30 Oct 2007 11:51:34 -0400
> "Todd Williams" <[EMAIL PROTECTED]> wrote:
> > Has anyone done anything similar to this?  Can anybody offer some
> > pointers, ideas, or thoughts?  Any suggestions would be greatly
> > appreciated.
> >
>
>
> we are currently implementing something like this (that is special
> customfield with customised editor viewer). Approach, which seems to
> work quite fine is adding new type of custom field (which will be used
> only in one cf, but it gives us nice separation of code):
>
> % cat local/lib/RT/CustomField_Local.pm
> no warnings qw/redefine/;
> package RT::CustomField;
>
> $FieldTypes{ClCustID} = [
> 'Select multiple customers',
> 'Select one customer'
> ];
>
> then, we create/add custom field to queue(s). As rt is using custom
> field type for selecting which widget/componenet, so it is using:
>
> local/html/Elements/EditCustomFieldClCustID
> local/html/Elements/ShowCustomFieldClCustID
>
> they were created based on one of default ones, with added additional
> 'helper' dropdowns and searches. They use some javascript/async
> requests to fetch data from other systems and modify existing controls.
> The only thing you have to keep in mind is that the value stored in
> customfield is the one which is passed in
> '<%$NamePrefix.$CustomField->Id%>-Value' field of form, so you have to
> make sure it is filled with correct value.
>
> Hope it helps.
>
> --
> Stanislaw Sawa
> ___
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
>
> If you sign up for a new RT support contract before December 31, we'll take
> up to 20 percent off the price. This sale won't last long, so get in touch 
> today.
> Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.
>
>
> Community help: http://wiki.bestpractical.com
> Commercial support: [EMAIL PROTECTED]
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch 
today. 
Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.


Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Special Custom Field Display/Edit - Suggestions?

2007-11-15 Thread Todd Chapman
RT has a callback that lets you override the name of the component
that is used to render the custom field. We use this to turn an input
CF into a select CF that is loaded with values from an RPC call. Here
is the callbacK:

> cat 
> /opt/rt3/local/html/Callbacks/myCompany/Elements/EditCustomField/EditComponentName

<%INIT>
return unless $CustomField;

if ( $CustomField->FriendlyPattern =~ /\WTime\W/ ) {
$$Name = $m->callers(1)->dir_path . "/CustomFields/TimePicker";
return;
}

my
$Comp = $CustomField->Name;
$Comp =~ s/\W/_/g;
$Comp = $m->callers(1)->dir_path . "/CustomFields/EditCF_$Comp";

$$Name = $m->comp_exists($Comp.$CustomField->id) ? $Comp.$CustomField->id
   : $m->comp_exists($Comp)  ? $Comp
   : $$Name;

<%ARGS>
$Name
$CustomField => undef
$Object => undef



This allows us to create files in
/opt/rt3/local/html/Elements/CustomFields. For example:

> cat /opt/rt3/local/html/Elements/CustomFields/EditCF_Client_Name39
%   my $id = $NamePrefix . $CustomField->Id;


(no value)
% if ( @$clients == 1 ) {

 <%$Values->First->Content%>

% }
% for my $client ( @$clients ) {
%   my $value = $client->{client_id} || $client->{client_name};
HasEntry($value)
? 'SELECTED' : ''%> >
<%substr($client->{client_name}, 0, 50)%>

% }


<%init>
my $clients = myCompany::RPC->get_clients();


<%args>
$Object => undef
$CustomField => undef
$NamePrefix => undef
$Default => undef
$Values => undef
$Multiple => 0
$Rows => undef




-Todd

On 11/15/07, Todd Williams <[EMAIL PROTECTED]> wrote:
> Has anyone else had success with this Custom Custom Field idea and
> have any sample implementations they might be willing to share?  I've
> read through the RT Wiki pages on customizing RT but I am not sure
> where to start with this.  I have not seen any reference information
> posted anywhere doing what we are trying to do here.  Sorry if I'm
> missing something obvious, just not seeing it.
>
> Any guidance, samples, or otherwise pointers to more detailed
> information on what we need to do to effectively implement a
> customized Custom Field would be extremely helpful.
>
> Thanks in advance!
>
> On Nov 1, 2007 5:50 AM, Stan Sawa <[EMAIL PROTECTED]> wrote:
> > On Tue, 30 Oct 2007 11:51:34 -0400
> > "Todd Williams" <[EMAIL PROTECTED]> wrote:
> > > Has anyone done anything similar to this?  Can anybody offer some
> > > pointers, ideas, or thoughts?  Any suggestions would be greatly
> > > appreciated.
> > >
> >
> >
> > we are currently implementing something like this (that is special
> > customfield with customised editor viewer). Approach, which seems to
> > work quite fine is adding new type of custom field (which will be used
> > only in one cf, but it gives us nice separation of code):
> >
> > % cat local/lib/RT/CustomField_Local.pm
> > no warnings qw/redefine/;
> > package RT::CustomField;
> >
> > $FieldTypes{ClCustID} = [
> > 'Select multiple customers',
> > 'Select one customer'
> > ];
> >
> > then, we create/add custom field to queue(s). As rt is using custom
> > field type for selecting which widget/componenet, so it is using:
> >
> > local/html/Elements/EditCustomFieldClCustID
> > local/html/Elements/ShowCustomFieldClCustID
> >
> > they were created based on one of default ones, with added additional
> > 'helper' dropdowns and searches. They use some javascript/async
> > requests to fetch data from other systems and modify existing controls.
> > The only thing you have to keep in mind is that the value stored in
> > customfield is the one which is passed in
> > '<%$NamePrefix.$CustomField->Id%>-Value' field of form, so you have to
> > make sure it is filled with correct value.
> >
> > Hope it helps.
> >
> > --
> > Stanislaw Sawa
> > ___
> > http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> >
> > SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
> >
> > If you sign up for a new RT support contract before December 31, we'll take
> > up to 20 percent off the price. This sale won't last long, so get in touch 
> > today.
> > Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.
> >
> >
> > Community help: http://wiki.bestpractical.com
> > Commercial support: [EMAIL PROTECTED]
> >
> >
> > Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> > Buy a copy at http://rtbook.bestpractical.com
> >
> ___
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
>
> If you sign up for a new RT support contract before December 31, we'll take
> up to 20 percent off the price. This sale won't last long, so get in touch 
> today.
> Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.
>
>
> Community help: http://wiki.bestpractical.com
> Commercial support: [EMAIL PROTECTED]
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.

[rt-users] Fetchmail erro

2007-11-15 Thread Candelario, Bill
Anyone ever get this fetchmail error message:
 
fetcmail: lock creation failed.
 
This is after installing RT and Cygwin on a 2003 Server.
 
Thanks,
Bill
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch 
today. 
Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.


Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

[rt-users] Unexpected session timeouts, RT 3.6.5

2007-11-15 Thread Matt Pounsett

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I've just set up RT 3.6.5 for testing with a copy of the current  
database from our old 3.4.1 install, and ran the usual update scripts  
on the new copy.


The new version seems to have an issue with sessions timing out  
unexpectedly, visible in Safari 2, Safari 3 and the current Firefox.   
Basically, after logging in, one can click around constantly for  
anywhere from a few seconds to a couple of minutes, but eventually  
will be dumped back to the login screen.I've seen this both with  
normal use and with frequent random clicking on links attempting to  
generate the error.


Has anyone else seen this behaviour?  Any thoughts on what might be  
causing it?  My rt.log file is set to log at debug level, but nothing  
at all shows up when this error occurs.


Matt Pounsett


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFHPJtQmFeRJ0tjIxERAgpxAJ9gKIEmL7eJYvSmSqIUeKgHhLVfbQCgjj0Z
K8wAgMdyXZy6qM0Dfgd3gdU=
=I3xI
-END PGP SIGNATURE-
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch today. 
   Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.



Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Outgoing email stopped working

2007-11-15 Thread James Bolden
 
I am running RT with POSTFIX and SENDMAIL. Due to some other activity
the / partition became full. After I cleared the problem, RT started
working again. However no outbound email is sent when tickets are
updated. Inbound emails are received and update the tickets fine. I have
tested sendmail and postfix and everything is working fine on this
server RT is the only application with this email issue. Any
suggestions?
 
Thanks,
James
 
 
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch 
today. 
Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.


Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com