[rt-users] Return error message in Scrip
Hi list, I try to program a little scrip that checks if priority numbers are unique within a queue and therefore I try to return an error message from a Scrip that should avoid RT from updating the ticket and displaying an error message on the screen. All my googling, code grepping and wiki / mailing list searching and try and error cycles failed so far so please can someone give me a hint on how to return an error from a Scrip? Thanks in advance & have a nice day Basti -- Bastian Ballmann PATRONAS Financial Systems GmbH Schnewlinstr 4 79098 Freiburg fon +49 (0)761 400688-19 fax +49 (0)761 400688-50 ballm...@patronas.de http://www.patronas.de Amtsgericht Freiburg, HRB 7212 Geschäftsführung: Heribert Steuer, Carsten Osswald This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] 3.8.x serious security issue with mixing sessions
On Monday 26 of October 2009, Jesse Vincent wrote: > On Mon, Oct 26, 2009 at 02:40:29PM +0200, Arkadiusz Miskiewicz wrote: > > On Friday 23 of October 2009, Jerrad Pierce wrote: > > > >> A tool like the firefox developer toolbar is an easy way to do > > > >> this. > > > > > > HTTPFox might be a good solution too. You can simply tell it to start > > > tracking as you use RT, and stop it once you encounter the problem. > > > Examine the results, debug, and or sanitize and share. > > > > > > Everyone experiencing the problem doesn't have to install the add-on, > > > just someone who has the issue. > > > > Can I log session id here somehow? > > > > lib/RT/Interface/Web.pm: > > $RT::Logger->info("Successful login for @{[$ARGS->{user}]} from > > $ENV{'REMOTE_ADDR'}"); > > There are two bits you want to log: > > * $session{_session_id} > * the session cookie the user sent: in 3.8.6, look at > LoadSessionFromCookie > > > So far it's like this: > > - user logged as A > > - suddently he becomes user B > > - he logged off and on as A again > > > > httpfox shows three session ids but I found only last one in sessions > > table and it was user A session. > > Logging out should be clearing that B session, so that bit isn't too > surprising.. Still trying to gather more info. What's the correct place for logging information about which session has been logged out (forced) or logged out via web interface? Added this to _ForceLogout but it seems to be wrong since it logs some very different session_ids... sub _ForceLogout { my $sid = $HTML::Mason::Commands::session{'_session_id'}; $RT::Logger->info("_ForceLogout session id $sid"); > Jesse -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/ ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] 3.8.x serious security issue with mixing sessions
On Thursday 29 of October 2009, Arkadiusz Miskiewicz wrote: Today it happened to me. I suddently became user B in rt (opera). The real user B had his PC running with rt opened (firefox) with autorefresh every 2 minutes set but he was away from his computer. Now I verified his and mine RT_SID cookie and... I have his cookie aka we both use the same cookie. I log session_id in rt.log at login, so I also checked that and had login for user B with that cookie logged in rt.log 20 minutes ago. sessions table in mysql contained that session_id of course. My initial cookie that I logged in as user A was also there in sessions table. So at the end I and user B we both have active sessions as user B with the same cookie. I even did few steps through rt on both computers to see if session_id will change but no - we are still logged in and still use the same session_id/cookie. (feature request: what I miss now is to make session contain IP address information for better security - so that session would work only from that one IP) -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/ ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] Remove Watchers on Owner Change
Looking for a way (scrip?) to remove non-owner/requester/admin CCs on take or ownership change. We have a big group of CCs when a ticket comes in, once one of the helpdesk group takes the ticket I want the people that aren't directly involved out off the watchers list. Thanks! ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] 3.8.x serious security issue with mixing sessions
On Thu, Oct 29, 2009 at 03:18:33PM +0100, Arkadiusz Miskiewicz wrote: > On Thursday 29 of October 2009, Arkadiusz Miskiewicz wrote: > > Today it happened to me. I suddently became user B in rt (opera). The real > user B had his PC running with rt opened (firefox) with autorefresh every 2 > minutes set but he was away from his computer. I really need to see protocol-level HTTP logs for both of these sessions. I need to see when/if RT handed you his cookie. > > Now I verified his and mine RT_SID cookie and... I have his cookie aka we > both > use the same cookie. I log session_id in rt.log at login, so I also checked > that and had login for user B with that cookie logged in rt.log 20 minutes > ago. sessions table in mysql contained that session_id of course. My initial > cookie that I logged in as user A was also there in sessions table. > > So at the end I and user B we both have active sessions as user B with the > same cookie. I even did few steps through rt on both computers to see if > session_id will change but no - we are still logged in and still use the same > session_id/cookie. > > (feature request: what I miss now is to make session contain IP address > information for better security - so that session would work only from that > one IP) As an optional feature, I'd love a patch. But it has to default to off. Too many organizations have an array of outgoing proxy IP addresses. > -- > Arkadiusz MiśkiewiczPLD/Linux Team > arekm / maven.plhttp://ftp.pld-linux.org/ > -- ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] 3.8.x serious security issue with mixing sessions
On Thursday 29 of October 2009, Arkadiusz Miskiewicz wrote: > On Thursday 29 of October 2009, Arkadiusz Miskiewicz wrote: > > Today it happened to me. And now another story that happened just few minutes ago: I was logged in as A with session_id/cookie let say "sessA". When doing something in rt I suddenly got login screen, huh! Checked sessions table - sessA was still there. So I changed cookie preferences in opera and set RT_SID cookie back to "sessA", page refresh and... I'm as A, no need to log in! Which looks like my session ("sessA") was still alive and working on rt side but somehow rt passed different session id/cookie to opera and opera used it which in the end caused login screen to appear. -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/ ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Remove Watchers on Owner Change
On Thu, Oct 29, 2009 at 10:22, Seth Lake wrote: > Looking for a way (scrip?) to remove non-owner/requester/admin CCs on > take or ownership change. > > We have a big group of CCs when a ticket comes in, once one of the > helpdesk group takes the ticket I want the people that aren't directly > involved out off the watchers list. Look at my squelch remote recipients scrip as a starting point? http://www.gossamer-threads.com/lists/rt/users/88831?nohighlight=1#88831 -- 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: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Remove Watchers on Owner Change
On Thu, Oct 29, 2009 at 10:22, Seth Lake wrote: > Looking for a way (scrip?) to remove non-owner/requester/admin CCs on > take or ownership change. > > We have a big group of CCs when a ticket comes in, once one of the > helpdesk group takes the ticket I want the people that aren't directly > involved out off the watchers list. Look at my squelch remote recipients scrip as a starting point? http://www.gossamer-threads.com/lists/rt/users/88831?nohighlight=1#88831 -- 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: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] 3.8.x serious security issue with mixing sessions
On Thursday 29 of October 2009, Jesse Vincent wrote: > On Thu, Oct 29, 2009 at 03:18:33PM +0100, Arkadiusz Miskiewicz wrote: > > On Thursday 29 of October 2009, Arkadiusz Miskiewicz wrote: > > > > Today it happened to me. I suddently became user B in rt (opera). The > > real user B had his PC running with rt opened (firefox) with autorefresh > > every 2 minutes set but he was away from his computer. > > I really need to see protocol-level HTTP logs for both of these > sessions. I need to see when/if RT handed you his cookie. One firefox user here has httpfox [1] running but so far he didn't have any problem for last 2 days :-( Our rt is running over ssl, so sniffing at wire level also not possible (or at least I don't know any working linux sniffer that could to that provided I have key/cert) Trying to get that. [1] it sucks a little as it doesn't have "save log" capability -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/ ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] 3.8.x serious security issue with mixing sessions
On Thu, Oct 29, 2009 at 03:30:49PM +0100, Arkadiusz Miskiewicz wrote: > On Thursday 29 of October 2009, Arkadiusz Miskiewicz wrote: > > On Thursday 29 of October 2009, Arkadiusz Miskiewicz wrote: > > > > Today it happened to me. > > And now another story that happened just few minutes ago: > > I was logged in as A with session_id/cookie let say "sessA". When doing > something in rt I suddenly got login screen, huh! Checked sessions table - > sessA was still there. So I changed cookie preferences in opera and set > RT_SID > cookie back to "sessA", page refresh and... I'm as A, no need to log in! > > Which looks like my session ("sessA") was still alive and working on rt side > but somehow rt passed different session id/cookie to opera and opera used it > which in the end caused login screen to appear. "somehow" is what we need to get to the bottom of. To do that, I need the HTTP logs including all headers from your client. I need to see RT serving you that cookie and to see the request it was on and what else was in that request. This is fairly far into "should not be possible" and I need a bit more of a view into what bit of infrastructure is causing it. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Remove Watchers on Owner Change
This works to strip out all the watchers, how to add back in the owner ? I'm terrible at this hacking thing? foreach my $address ( $self->TicketObj->QueueObj->Cc->MemberEmailAddresses ){ $self->TicketObj->SquelchMailTo($address); } -Original Message- From: Jerrad Pierce [mailto:jpie...@cambridgeenergyalliance.org] Sent: Thursday, October 29, 2009 10:33 AM To: Seth Lake Cc: RT-Users@lists.bestpractical.com Subject: Re: [rt-users] Remove Watchers on Owner Change On Thu, Oct 29, 2009 at 10:22, Seth Lake wrote: > Looking for a way (scrip?) to remove non-owner/requester/admin CCs on > take or ownership change. > > We have a big group of CCs when a ticket comes in, once one of the > helpdesk group takes the ticket I want the people that aren't directly > involved out off the watchers list. Look at my squelch remote recipients scrip as a starting point? http://www.gossamer-threads.com/lists/rt/users/88831?nohighlight=1#88831 -- 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: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] 3.8.x serious security issue with mixing sessions
> [1] it sucks a little as it doesn't have "save log" capability Right click "Copy all rows" ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] Riaan receives emails from Boschendal people which does not have email signature.
Gerrit Kilian IT Support supervisor DGB (Pty) Ltd Tel: +27(0)21 864 5352 Fax: +27(0)21 864 1287 Cell: +27(0)84 603 4826 http://www.dgb.co.za DISCLAIMER: This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this mail in error please delete it immediately and notify mailto:i...@dgb.co.za. Please note that it is the responsibility of the recipient to scan this email and any attachments that may accompany it for viruses and such. D.G.B (Pty) Ltd makes every effort to guard against viruses and accepts no liability of whatever nature for any loss, damage or expense resulting directly or indirectly from the access and/or downloading of any files which are attached to this email message <>___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Return error message in Scrip
Bastian, I have tried this numerous times with various types of messages and got "no joy". I may be corrected on this, but the info I got back was it is NOT possible to display error messages to an RT screen via a scrip. That's too bad cause one would think that it */should/* be possible as a /*logical extension*/ of the thought process that allowed for writing scrips to check for things in the first place. But, Oh well. Maybe in some future version. Good Luck. Kenn LBNL On 10/29/2009 6:19 AM, Bastian Ballmann wrote: Hi list, I try to program a little scrip that checks if priority numbers are unique within a queue and therefore I try to return an error message from a Scrip that should avoid RT from updating the ticket and displaying an error message on the screen. All my googling, code grepping and wiki / mailing list searching and try and error cycles failed so far so please can someone give me a hint on how to return an error from a Scrip? Thanks in advance & have a nice day Basti ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Return error message in Scrip
> I have tried this numerous times with various types of messages and got "no > joy". I may be corrected on this, but the info I got back was it is NOT > possible to display error messages to an RT screen via a scrip. That's too He doesn't need to return an error message, to prevent the update (as requested), just false. Essentially he needs to go up from transaction to to queue, get all tickets and their priorities, then unique the list/check for collisions with proposed priority. Although I must admit that the idea of limiting priorities to single instances seems kind of odd. -- 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: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] 3.8.x serious security issue with mixing sessions
On Thursday 29 of October 2009, Jerrad Pierce wrote: > > [1] it sucks a little as it doesn't have "save log" capability > > Right click "Copy all rows" That doesn't copy headers data, cookies etc -- Arkadiusz MiśkiewiczPLD/Linux Team arekm / maven.plhttp://ftp.pld-linux.org/ ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] Include another custom field in a custom field link ?
Hi, In RT 3.8.2 (We'll be upgrading to 3.8.6 pretty soon), you can configure a custom field be link to an URL. For instance, you can put http://domain.com/__CustomField__ and it will link to http://domain.com/. Now, what I'm trying to do is that I have two different custom fields that would "build" the URL. So, I would like to include a second custom field in the URL: http://domain.com/& However, after several trials and errors, I still can't figure out how I can include another custom field. Could anyone point me in the right direction ? Thanks, - David ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Include another custom field in a custom field link ?
> Could anyone point me in the right direction ? 1) Don't do that. 2) Use 3 fields. 1 & 2 store values, 3 is a combination of the two generated by a scrip, which has the "Link values to" set. 3) Create a custom CustomField Type, where you define how it is rendered 4) Use 2 normal fields for the values, and the ShowBasics EndOfList callback to render the link. (You could even remove SeeCustomField for the parts). -- 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: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] Billing for RT customer service.
Hi all, We use RT to perform customer service for our client. RT doesn't really have a good way for us to get the numbers we need to bill our clients. It's easy to get the number of tickets handled, but getting the number of emails sent external (to consumers) during a given time period seems to be pretty difficult (and I have a fair amount of experience with the RT API). Any advice on getting this data? Thanks! -Todd ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Billing for RT customer service.
RT::Extension::ActivityReports will get you get a list of all of the messages exchanged. -- 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: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] RT-Mailgate + Postfix on SLES10 Not Receiving Mail
Greetings, After many hours scouring around the globe for answers, I have feel I have gathered enough diagnostic info to post my issue. The RT server is up and sending mail via a relay fine. I have configured RT with the recommended groups/perms and am able to create tx fine and such. I have fiddled around with the aliases file, postfix's main.conf and apache2's vhost.conf until my eyes are bleeding, always restarting postfix, apache and running newaliases after each change/test msg. After application of many good tips found, the RT server still refuses to accept mail. Below is a sanitized section of the /var/log/mail.info log seemingly indicating that the message is bounced due to 'unknown user'. Of the many things I am not certain of, the docs indicate that a user must be created that is associated to the rt-mailgate script - but I am not sure how this needs to be done. When replying to a tx, the bounced message will be returned to the sender ok. I am decidedly stumped. Can anyone point me in the right direction? Oct 29 18:17:34 dt-rt postfix/smtpd[7118]: connect from exchange07.xxx.com[10.0.1.190] Oct 29 18:17:34 dt-rt postfix/smtpd[7118]: ED9E318235: client=exchange07.xxx.com[10.0.1.190] Oct 29 18:17:34 dt-rt postfix/cleanup[7121]: ED9E318235: message-id= Oct 29 18:17:34 dt-rt postfix/qmgr[7108]: ED9E318235: from=, size=2574, nrcpt=1 (queue active) Oct 29 18:17:34 dt-rt postfix/smtpd[7118]: disconnect from exchange07.yyy.com[10.0.1.190] Oct 29 18:17:35 dt-rt postfix/local[7122]: ED9E318235: to=http://10.0.1.6/@dt-rt.yyy.com>, orig_to=, relay=local, delay=1, status=bounced (unknown user: "???/opt/rt3/bin/rt???mailgate ??queue general ??action correspond ??url http://10.0.1.6/";) Oct 29 18:17:35 dt-rt postfix/cleanup[7121]: 04E1F18239: message-id=<20091029221735.04e1f18...@dt-rt.yyy.com> Oct 29 18:17:35 dt-rt postfix/qmgr[7108]: 04E1F18239: from=<>, size=4787, nrcpt=1 (queue active) Oct 29 18:17:35 dt-rt postfix/qmgr[7108]: ED9E318235: removed BTW - NOT running any virtual mail hosts that would interfere with the alaias pipe directive. Also, the server is able to resolve its own url on the local browser. RT 3.8.3. Postfix 2.2.9. mod_perl 2.02, SLES10SP2, apache2 Best regards, Victor ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] change location of attachments in RT 3.4.5?
On Wed 28.Oct'09 at 23:56:11 -0400, Jerrad Pierce wrote: > wrote: > > Due to some annoying circumstances and RT running on a VM, I’m out of disk > > space on /, and can only add a new partition because I don’t want to dick > > around resizing an ext3 partition. That said, I need to tell RT to save > > attachments to said new partition. My Google search has not proved fruitful. > > Does anyone know if there’s a config parameter somewhere to change this? > > Thank you! > RT that old stores attachments in the file system? RT 1.0.x was the last version of RT to store attachments on the filesystem. We're working on an RTx for a client that _might_ end up getting released which would let you do this for RT 3.8. But it's not something I can put a date on. Best, Jesse pgp9a7QErwuSo.pgp Description: PGP signature ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
[rt-users] Scrip to automatically set Owner based on a Custom Field
Hi everyone, I have a select-one Custom Field called "Product" with 5 products in it. Based on what product is selected (on create), I would like a specific user to be set as the Owner (ex: ticket is created with "Product A" selected, so John Smith works on Product A, thus should automatically be the Owner). Does anyone know the what my Custom Action would look like to accomplish this? Thanks! -- View this message in context: http://www.nabble.com/Scrip-to-automatically-set-Owner-based-on-a-Custom-Field-tp26122827p26122827.html Sent from the Request Tracker - User mailing list archive at Nabble.com. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] RT-Mailgate + Postfix on SLES10 Not Receiving Mail
On 09/10/30 7:56, Victor Gehring wrote: [snip...] > > Oct 29 18:17:35 dt-rt postfix/local[7122]: ED9E318235: > to= correspond ??url http://10.0.1.6/@dt-rt.yyy.com>, > orig_to=, relay=local, delay=1, status=bounced > (unknown user: "???/opt/rt3/bin/rt???mailgate ??queue general > ??action correspond ??url http://10.0.1.6/";) Victor, your problem lies in the lines above. you apparently have some non-ascii / non-printable characters in your alias definition which postfix is choking on. make sure that when you're editing your aliases file that you're using single-byte ASCII characters and not double-byte or extended ASCII characters. hope this helps. Alan ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
Re: [rt-users] Scrip to automatically set Owner based on a Custom Field
On Thu, Oct 29, 2009 at 04:50:47PM -0700, jrummel wrote: > > Hi everyone, > > I have a select-one Custom Field called "Product" with 5 products in it. > Based on what product is selected (on create), I would like a specific user > to be set as the Owner (ex: ticket is created with "Product A" selected, so > John Smith works on Product A, thus should automatically be the Owner). > Does anyone know the what my Custom Action would look like to accomplish > this? > You should use two customfields, one ticket customfield used to set the product for the ticket, another _user_ customfield to set the list of product a user works on in the user profile. Then your action will compare those values and set the owner. Here is a not tested code to help you: my $Ticket = $self->TicketObj; # Get products selected for this ticket my $T_product = $Ticket->FirstCustomFieldValue ( 'Product' ); # Try to find a User with this product my $user_found = undef; my $Users = RT::Users->new ( $RT::SystemUser ); while ( my $User = $Users->Next () ) { my $U_products = $User->CustomFieldValues ( 'Products' ); while ( my $product = $U_products->Next ) { if ( $product->Content eq $T_product ) { $user_found = $User; last; } } } if ( $user_found && $user_found->Id ) { $RT::Logger->debug("User ".$user_found->Name." found for product ".$T_product." Ticket ".$Ticket->Id ); $Ticket->SetOwner( $user_found ); } else { return 0; } return 1; ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com