From e13b1c72df63da77be2f1d5fdc0cb3e7933f96cc Mon Sep 17 00:00:00 2001
From: Thomas Jarosch <thomas.jarosch@intra2net.com>
Date: Sun, 11 Aug 2013 01:44:52 +0200
Subject: [PATCH] Set default user agent to H5


Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
---
 framework/Alarm/test/Horde/Alarm/HandlerTest.php |  2 +-
 framework/Mime/lib/Horde/Mime/Headers.php        |  2 +-
 framework/Mime/test/Horde/Mime/MailTest.php      | 18 +++++++++---------
 imp/test/Imp/Unit/Mime/Viewer/ItipTest.php       |  2 +-
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/framework/Alarm/test/Horde/Alarm/HandlerTest.php b/framework/Alarm/test/Horde/Alarm/HandlerTest.php
index 36606cf..4b7de8b 100644
--- a/framework/Alarm/test/Horde/Alarm/HandlerTest.php
+++ b/framework/Alarm/test/Horde/Alarm/HandlerTest.php
@@ -71,7 +71,7 @@ From: john@example.com
 Auto-Submitted: auto-generated
 X-Horde-Alarm: This is a personal alarm.
 Message-ID: <%d.Horde.%s@%s>
-User-Agent: Horde Application Framework 4
+User-Agent: Horde Application Framework 5
 Date: %s, %d %s %s %d:%d:%d %s%d
 Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes
 MIME-Version: 1.0';
diff --git a/framework/Mime/lib/Horde/Mime/Headers.php b/framework/Mime/lib/Horde/Mime/Headers.php
index 374e6e9..6dcf938 100644
--- a/framework/Mime/lib/Horde/Mime/Headers.php
+++ b/framework/Mime/lib/Horde/Mime/Headers.php
@@ -302,7 +302,7 @@ class Horde_Mime_Headers implements Serializable
     public function getUserAgent()
     {
         if (is_null($this->_agent)) {
-            $this->_agent = 'Horde Application Framework 4';
+            $this->_agent = 'Horde Application Framework 5';
         }
         return $this->_agent;
     }
diff --git a/framework/Mime/test/Horde/Mime/MailTest.php b/framework/Mime/test/Horde/Mime/MailTest.php
index 0031c94..89fc1e8 100644
--- a/framework/Mime/test/Horde/Mime/MailTest.php
+++ b/framework/Mime/test/Horde/Mime/MailTest.php
@@ -51,7 +51,7 @@ class Horde_Mime_MailTest extends PHPUnit_Framework_TestCase
 To: recipient@example.com
 From: sender@example.com
 Message-ID: <%d.%s@mail.example.com>
-User-Agent: Horde Application Framework 4
+User-Agent: Horde Application Framework 5
 Date: %s, %d %s %d %d:%d:%d %s
 Content-Type: text/plain; charset=iso-8859-15; format=flowed; DelSp=Yes
 MIME-Version: 1.0',
@@ -89,7 +89,7 @@ MIME-Version: 1.0',
 To: recipient@example.com
 From: sender@example.com
 Message-ID: <%d.%s@mail.example.com>
-User-Agent: Horde Application Framework 4
+User-Agent: Horde Application Framework 5
 Date: %s, %d %s %d %d:%d:%d %s%d
 Content-Type: text/plain; charset=iso-8859-15; format=flowed; DelSp=Yes
 MIME-Version: 1.0',
@@ -129,7 +129,7 @@ To: =?iso-8859-1?b?RW1wZuRuZ2Vy?= <recipient@example.com>
 From: sender@example.com
 Cc: Der =?iso-8859-1?b?c2No9m5l?= Peter <peter@example.com>
 Message-ID: <%d.%s@mail.example.com>
-User-Agent: Horde Application Framework 4
+User-Agent: Horde Application Framework 5
 Date: %s, %d %s %d %d:%d:%d %s%d
 Content-Type: text/plain; charset=iso-8859-1; format=flowed; DelSp=Yes
 MIME-Version: 1.0
@@ -185,7 +185,7 @@ Content-Transfer-Encoding: quoted-printable',
 To: recipient@example.com
 From: sender@example.com
 Message-ID: <%d.%s@mail.example.com>
-User-Agent: Horde Application Framework 4
+User-Agent: Horde Application Framework 5
 Date: %s, %d %s %d %d:%d:%d %s%d
 Content-Type: multipart/mixed; boundary="=_%s"
 MIME-Version: 1.0',
@@ -242,7 +242,7 @@ bHRlciBEZWljaC4K
 To: recipient@example.com
 From: sender@example.com
 Message-ID: <%d.%s@mail.example.com>
-User-Agent: Horde Application Framework 4
+User-Agent: Horde Application Framework 5
 Date: %s, %d %s %d %d:%d:%d %s%d
 Content-Type: text/plain; charset=iso-8859-1; format=flowed; DelSp=Yes
 MIME-Version: 1.0',
@@ -279,7 +279,7 @@ MIME-Version: 1.0',
 To: recipient@example.com
 From: sender@example.com
 Message-ID: <%d.%s@mail.example.com>
-User-Agent: Horde Application Framework 4
+User-Agent: Horde Application Framework 5
 Date: %s, %d %s %d %d:%d:%d %s%d
 Content-Type: text/html; charset=iso-8859-1
 MIME-Version: 1.0',
@@ -313,7 +313,7 @@ MIME-Version: 1.0',
 To: recipient@example.com
 From: sender@example.com
 Message-ID: <%d.%s@mail.example.com>
-User-Agent: Horde Application Framework 4
+User-Agent: Horde Application Framework 5
 Date: %s, %d %s %d %d:%d:%d %s%d
 Content-Type: multipart/alternative; boundary="=_%s"
 MIME-Version: 1.0',
@@ -374,7 +374,7 @@ Content-Description: HTML Version of Message
 To: recipient@example.com
 From: sender@example.com
 Message-ID: <%d.%s@mail.example.com>
-User-Agent: Horde Application Framework 4
+User-Agent: Horde Application Framework 5
 Date: %s, %d %s %d %d:%d:%d %s%d
 Content-Type: multipart/mixed; boundary="=_%s"
 MIME-Version: 1.0',
@@ -487,7 +487,7 @@ end
 To: recipient@example.com
 From: foo@example.com
 Message-ID: <%d.%s@mail.example.com>
-User-Agent: Horde Application Framework 4
+User-Agent: Horde Application Framework 5
 Date: %s, %d %s %d %d:%d:%d %s%d
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; DelSp=Yes
 MIME-Version: 1.0',
diff --git a/imp/test/Imp/Unit/Mime/Viewer/ItipTest.php b/imp/test/Imp/Unit/Mime/Viewer/ItipTest.php
index 715241a..0ad8b3e 100644
--- a/imp/test/Imp/Unit/Mime/Viewer/ItipTest.php
+++ b/imp/test/Imp/Unit/Mime/Viewer/ItipTest.php
@@ -246,7 +246,7 @@ extends PHPUnit_Framework_TestCase
     public function testResultMessageContainsProductId()
     {
         $this->_doImple('accept', $this->_getInvitation()->exportvCalendar());
-        $this->assertEquals('-//The Horde Project//Horde Application Framework 4//EN', $this->_getIcalendar()->getAttribute('PRODID'));
+        $this->assertEquals('-//The Horde Project//Horde Application Framework 5//EN', $this->_getIcalendar()->getAttribute('PRODID'));
     }
 
     public function testResultMessageIndicatesMethodReply()
-- 
1.7.11.7