[Rt-commit] r4965 - in rt/branches/3.7-EXPERIMENTAL: . etc

alexmv at bestpractical.com alexmv at bestpractical.com
Tue Apr 4 14:04:47 EDT 2006

Author: alexmv
Date: Tue Apr  4 14:04:46 2006
New Revision: 4965

   rt/branches/3.7-EXPERIMENTAL/   (props changed)

 r12122 at zoq-fot-pik:  chmrr | 2006-04-04 14:04:34 -0400
  * More MakeClicky docs

Modified: rt/branches/3.7-EXPERIMENTAL/etc/RT_Config.pm.in
--- rt/branches/3.7-EXPERIMENTAL/etc/RT_Config.pm.in	(original)
+++ rt/branches/3.7-EXPERIMENTAL/etc/RT_Config.pm.in	Tue Apr  4 14:04:46 2006
@@ -517,6 +517,16 @@
+# RT provides a tool called MakeClicky that can detect various formats
+# of data in headers and email messages, and extend them with various
+# supporting links.  By default, RT only provides one format,
+# 'httpurl', which detects http:// and https:// URLs.  It is disabled
+# by default; to enable it, add 'httpurl' to the line below.  Other
+# products, such as RTIR, may add additional kinds of MakeClicky
+# types.  See html/Elements/MakeClicky for documentation on how to add
+# your own.
+Set(@Active_MakeClicky, qw());
 # }}}

Modified: rt/branches/3.7-EXPERIMENTAL/html/Elements/MakeClicky
--- rt/branches/3.7-EXPERIMENTAL/html/Elements/MakeClicky	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Elements/MakeClicky	Tue Apr  4 14:04:46 2006
@@ -64,3 +64,29 @@
 $$content =~ s/($regexp)/$handle->( %ARGS, value => ($1 || '') )/gsieo;
+MakeClicky detects various formats of data in headers and email
+messages, and extends them with supporting links.  By default, RT only
+provides one format, 'httpurl', which detects http:// and https://
+URLs.  To extend this with your own types od data, use the callback.
+It will be provided with:
+ * 'types': An array reference of hash references.  Modify this array
+    reference to add your own types; the first matching type will be
+    used.  Each hashref should contain:
+   - 'name': The name of the data format; this is used in the
+      configuration file to enable the format.
+   - 'regex': A regular expression to match against
+   - 'action': The name of the action to run (see "actions", below)
+ * 'actions': A hash reference of 'actions'.  Modify this hash
+    reference to change or add action types.  Values are subroutine
+    references which will get called when needed.  They should return
+    the modified string.
+ * 'handler': A reference to a subroutine reference; modify it if you
+    have to.  This can be used to add pre- or post-processing around
+    all actions.
\ No newline at end of file

More information about the Rt-commit mailing list