[smuxi: 46/111] Engine: added a bunch of common bug trackers, CVE, DSA and RFC as smart links



commit 05c2e9bd50c0faf8b555027e3e7023a8bbd44b4f
Author: Mirco Bauer <meebey meebey net>
Date:   Fri Jan 3 04:03:44 2014 +0100

    Engine: added a bunch of common bug trackers, CVE, DSA and RFC as smart links

 src/Engine/Config/MessageBuilderSettings.cs |  135 +++++++++++++++++++++++++++
 1 files changed, 135 insertions(+), 0 deletions(-)
---
diff --git a/src/Engine/Config/MessageBuilderSettings.cs b/src/Engine/Config/MessageBuilderSettings.cs
index 595f02c..db36845 100644
--- a/src/Engine/Config/MessageBuilderSettings.cs
+++ b/src/Engine/Config/MessageBuilderSettings.cs
@@ -99,6 +99,141 @@ namespace Smuxi.Engine
                 LinkFormat = "http://www.smuxi.org/issues/show/{1}";
             });
 
+            // RFCs
+            regex = new Regex(@"RFC[ -]?([0-9]+)");
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://www.ietf.org/rfc/rfc{1}.txt";
+            });
+
+            // bugtracker prefixes are taken from:
+            // http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines#Current_set_of_abbreviations
+
+            // boost bugtracker
+            regex = new Regex(@"boost#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "https://svn.boost.org/trac/boost/ticket/{1}";
+            });
+
+            // Claws bugtracker
+            regex = new Regex(@"claws#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id={1}";
+            });
+
+            // CVE list
+            regex = new Regex(@"CVE-[0-9]{4}-[0-9]{4,}", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://cve.mitre.org/cgi-bin/cvename.cgi?name={0}";
+            });
+
+            // CPAN bugtracker
+            regex = new Regex(@"RT#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://rt.cpan.org/Public/Bug/Display.html?id={1}";
+            });
+
+            // Debian bugtracker
+            regex = new Regex(@"deb#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://bugs.debian.org/{1}";
+            });
+
+            // Debian Security Advisories (DSA)
+            regex = new Regex(@"DSA-([0-9]{4})(-[0-9]{1,2})?", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://www.debian.org/security/dsa-{1}";
+            });
+
+            // openSUSE feature tracker
+            regex = new Regex(@"fate#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://features.opensuse.org/{1}";
+            });
+
+            // freedesktop bugtracker
+            regex = new Regex(@"fdo#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://bugs.freedesktop.org/{1}";
+            });
+
+            // GNU bugtracker
+            regex = new Regex(@"gnu#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://debbugs.gnu.org/{1}";
+            });
+
+            // GCC bugtracker
+            regex = new Regex(@"gcc#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://gcc.gnu.org/bugzilla/show_bug.cgi?id={1}";
+            });
+
+            // GNOME bugtracker
+            regex = new Regex(@"bgo#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://bugzilla.gnome.org/{1}";
+            });
+
+            // KDE bugtracker
+            regex = new Regex(@"kde#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://bugs.kde.org/{1}";
+            });
+
+            // kernel bugtracker
+            regex = new Regex(@"bko#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://bugzilla.kernel.org/show_bug.cgi?id={1}";
+            });
+
+            // launchpad bugtracker
+            regex = new Regex(@"LP#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://launchpad.net/bugs/{1}";
+            });
+
+            // Mozilla bugtracker
+            regex = new Regex(@"bmo#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://bugzilla.mozilla.org/{1}";
+            });
+
+            // Novell bugtracker
+            regex = new Regex(@"bnc#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://bugzilla.novell.com/{1}";
+            });
+
+            // Redhat bugtracker
+            regex = new Regex(@"rh#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://bugzilla.redhat.com/{1}";
+            });
+
+            // Samba bugtracker
+            regex = new Regex(@"bso#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://bugzilla.samba.org/show_bug.cgi?id={1}";
+            });
+
+            // sourceforge bugtracker
+            regex = new Regex(@"sf#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://sf.net/support/tracker.php?aid={1}";
+            });
+
+            // Xfce bugtracker
+            regex = new Regex(@"bxo#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://bugzilla.xfce.org/show_bug.cgi?id={1}";
+            });
+
+            // Xamarin bugtracker
+            regex = new Regex(@"bxc#([0-9]+)", RegexOptions.IgnoreCase);
+            SmartLinks.Add(new SmartLink(regex) {
+                LinkFormat = "http://bugzilla.xamarin.com/show_bug.cgi?id={1}";
+            });
+
             // TODO: msgid -> http://mid.gmane.org/{1}
             // TODO: ISSN/ISBN
             // TODO: Path: / or X:\


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]