6.0.0-alpha12
6/10/25

[#13908] exception on datetime object for some emails created by outlook
Summary exception on datetime object for some emails created by outlook
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 2. Medium
Owners mrubinsk (at) horde (dot) org
Requester Claas.Hilbrecht (at) linum (dot) com
Created 03/11/2015 (3744 days ago)
Due
Updated 03/13/2015 (3742 days ago)
Assigned 03/13/2015 (3742 days ago)
Resolved 03/13/2015 (3742 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/13/2015 10:29:03 PM claas (dot) hilbrecht (at) linum (dot) com Comment #13 Reply to this comment
Released. Please let me know if the updated Compress package fixes 
this for you.
Just did a

pear upgrade horde/Horde_Compress
downloading Horde_Compress-2.1.1.tgz ...
Starting to download Horde_Compress-2.1.1.tgz (2,193,270 bytes)
..........................................................................................................................................................................done: 2,193,270 
bytes
upgrade ok: channel://pear.horde.org/Horde_Compress-2.1.1

and everything (even older mails with the same problem) are shown as 
expected. Thanks, good work.

03/13/2015 05:23:28 PM Michael Rubinsky State ⇒ Resolved
 
03/13/2015 04:34:23 PM Michael Rubinsky Comment #12 Reply to this comment
Released. Please let me know if the updated Compress package fixes 
this for you.
03/13/2015 03:43:51 PM Michael Rubinsky Comment #11 Reply to this comment
You shouldn't get that error with the patch properly applied. The 
exception should now be caught properly. I'll be pushing the update 
shortly.
03/13/2015 03:34:49 PM Claas (dot) Hilbrecht (at) linum (dot) com Comment #10 Reply to this comment
The *exact* error message is...?
I get this message (see below).

Ein schwerer Fehler ist aufgetreten:
Zeitformat (-11362994757) nicht erkannt

  1. IMP_Dynamic_Base->__construct() /var/www/horde/imp/dynamic.php:33
  2. IMP_Dynamic_Compose->_init() /var/www/horde/imp/lib/Dynamic/Base.php:90
  3. IMP_Compose->replyMessage() /var/www/horde/imp/lib/Dynamic/Compose.php:93
  4. IMP_Compose->replyMessageText() /var/www/horde/imp/lib/Compose.php:2006
  5. IMP_Compose->_getMessageText() /var/www/horde/imp/lib/Compose.php:2111
  6. IMP_Contents->findBody() /var/www/horde/imp/lib/Compose.php:2988
  7. IMP_Contents->_buildMessage() /var/www/horde/imp/lib/Contents.php:687
  8. Horde_Mime_Viewer_Base->getEmbeddedMimeParts() 
/var/www/horde/imp/lib/Contents.php:1114
  9. Horde_Mime_Viewer_Tnef->_getEmbeddedMimeParts() 
/usr/share/php/Horde/Mime/Viewer/Base.php:298
10. Horde_Compress_Tnef->decompress() 
/usr/share/php/Horde/Mime/Viewer/Tnef.php:74
11. Horde_Compress_Tnef->_decodeMessageProperty() 
/usr/share/php/Horde/Compress/Tnef.php:282
12. Horde_Date->__construct() /usr/share/php/Horde/Compress/Tnef.php:662

Details
Die vollständige Fehlermeldung wurde in Hordes Logdatei geschrieben 
und für Administratoren weiter unten ausgegeben. Benutzer, die keine 
Administratoren sind, bekommen diese Details nicht zu sehen.

And this is logged

2015-03-13T16:32:45+01:00 EMERG: HORDE [imp] Zeitformat (-11362994757) 
nicht erkannt [pid 1143 on line 369 of "/usr/share/php/Horde/Date.php"]
2015-03-13T16:32:45+01:00 DEBUG: HORDE  1. 
IMP_Dynamic_Base->__construct() /var/www/horde/imp/dynamic.php:33
  2. IMP_Dynamic_Compose->_init() /var/www/horde/imp/lib/Dynamic/Base.php:90
  3. IMP_Compose->replyMessage() /var/www/horde/imp/lib/Dynamic/Compose.php:93
  4. IMP_Compose->replyMessageText() /var/www/horde/imp/lib/Compose.php:2006
  5. IMP_Compose->_getMessageText() /var/www/horde/imp/lib/Compose.php:2111
  6. IMP_Contents->findBody() /var/www/horde/imp/lib/Compose.php:2988
  7. IMP_Contents->_buildMessage() /var/www/horde/imp/lib/Contents.php:687
  8. Horde_Mime_Viewer_Base->getEmbeddedMimeParts() 
/var/www/horde/imp/lib/Contents.php:1114
  9. Horde_Mime_Viewer_Tnef->_getEmbeddedMimeParts() 
/usr/share/php/Horde/Mime/Viewer/Base.php:298
10. Horde_Compress_Tnef->decompress() 
/usr/share/php/Horde/Mime/Viewer/Tnef.php:74
11. Horde_Compress_Tnef->_decodeMessageProperty() 
/usr/share/php/Horde/Compress/Tnef.php:282
12. Horde_Date->__construct() /usr/share/php/Horde/Compress/Tnef.php:662

2015-03-13T16:32:45+01:00 DEBUG: HORDE [imp] Max memory usage: 6029312 
bytes [pid 1143 on line 608 of "/usr/share/php/Horde/Registry.php"]

03/13/2015 03:29:02 PM Michael Rubinsky Comment #9
State ⇒ Feedback
Reply to this comment
The *exact* error message is...?
03/13/2015 08:53:13 AM Claas (dot) Hilbrecht (at) linum (dot) com Comment #8 Reply to this comment
I've applied the changes from git locally but I stll get the same 
error message. You said you would like to push a new package with 
other fixes, maybe I need some more fixes. I've already upgraded 
horde_ActiveSync but it seems that horde/Mime_Viewer and horde/Mime 
are up to date here.
03/11/2015 03:50:17 PM Claas (dot) Hilbrecht (at) linum (dot) com Comment #7 Reply to this comment
03/11/2015 03:41:44 PM Michael Rubinsky Comment #6 Reply to this comment
This was already fixed in Git.
Do you have an ID to cherry pick the fix?
The line numbers won't match up since there were other changes, but 
you'll get the idea:

https://github.com/horde/horde/commit/a2568919deff1eab79ff3cd67a35df8cc34de60b


I'll push a release later tonight when I get back to my dev environment.
03/11/2015 03:29:09 PM Claas (dot) Hilbrecht (at) linum (dot) com Comment #5 Reply to this comment
This was already fixed in Git.
Do you have an ID to cherry pick the fix?
03/11/2015 03:02:27 PM Michael Rubinsky Queue ⇒ Horde Framework Packages
Version ⇒
 
03/11/2015 03:02:04 PM Michael Rubinsky Comment #4
Assigned to Michael Rubinsky
State ⇒ Resolved
Reply to this comment
This was already fixed in Git.
03/11/2015 02:46:21 PM Claas (dot) Hilbrecht (at) linum (dot) com Comment #3 Reply to this comment
I reinstalled the Horde_Compress and get:

sha1sum /usr/share/php/Horde/Date.php
7bed932ea2730d6f309e6598a40933bd58f16f9f  /usr/share/php/Horde/Date.php

And a pear list-all -c horde show Horde_Compress is recent. Any other idea?

All packages [Channel horde]:
=============================
Package                            Latest      Local
horde/ansel                        3.0.2              Photo management 
application
horde/content                      2.0.4       2.0.4  Tagging application
horde/gollem                       3.0.3       3.0.3  Web-based file manager
horde/groupware                    5.2.5              Horde Groupware
horde/horde                        5.2.4       5.2.4  Horde 
Application Framework
horde/Horde_ActiveSync             2.26.1      2.24.1 Horde ActiveSync 
Server Library
horde/Horde_Alarm                  2.2.4       2.2.4  Horde Alarm Libraries
horde/Horde_Argv                   2.0.10      2.0.10 Horde 
command-line argument parsing package
horde/Horde_Auth                   2.1.6       2.1.6  Horde Authentication API
horde/Horde_Autoloader             2.1.0       2.1.0  Horde Autoloader
horde/Horde_Autoloader_Cache       2.1.1              Cache for the 
Horde_Autoloader library
horde/Horde_Browser                2.0.8       2.0.8  Horde Browser API
horde/Horde_Cache                  2.5.0       2.5.0  Horde Caching API
horde/Horde_Cli                    2.0.6       2.0.6  Horde Command 
Line Interface API
horde/Horde_Cli_Modular            2.0.3              A toolset for 
CLI interfaces that are modular.
horde/Horde_Compress               2.1.0       2.1.0  Horde Compression API
horde/Horde_Compress_Fast          1.1.0       1.1.0  Fast Compression Library
horde/Horde_Constraint             2.0.2       2.0.2  Horde Constraint library
horde/Horde_Controller             2.0.2       2.0.2  Horde Controller 
libraries
horde/Horde_Core                   2.19.2      2.19.0 Horde Core 
Framework libraries
horde/Horde_Crypt                  2.5.3       2.5.3  Horde Cryptography API
horde/Horde_Crypt_Blowfish         1.0.3       1.0.2  Blowfish 
Encryption Library
horde/Horde_CssMinify              1.0.2       1.0.2  CSS Minification
horde/Horde_Css_Parser             1.0.6       1.0.6  Horde CSS Parser
horde/Horde_Data                   2.1.1       2.1.1  Horde Data API
horde/Horde_DataTree               2.0.1              DataTree API
horde/Horde_Date                   2.0.13      2.0.13 Horde Date package
horde/Horde_Date_Parser            2.0.3       2.0.3  Horde Date Parser
horde/Horde_Dav                    1.1.2       1.1.2  Horde library 
for WebDAV, CalDAV, CardDAV
horde/Horde_Db                     2.2.2       2.2.2  Horde Database Libraries
horde/Horde_Editor                 2.0.4       2.0.4  Horde Editor API
horde/Horde_ElasticSearch          1.0.3       1.0.3  Horde 
ElasticSearch client
horde/Horde_Exception              2.0.5       2.0.5  Horde Exception Handler
horde/Horde_Feed                   2.0.3       2.0.3  Horde Feed libraries
horde/Horde_Form                   2.0.9       2.0.9  Horde Form API
horde/Horde_Group                  2.0.5       2.0.4  Horde User Groups System
horde/Horde_HashTable              1.2.3       1.2.2  Horde Hash Table 
Interface
horde/Horde_History                2.3.3       2.3.3  API for tracking 
the history of an object
horde/Horde_Http                   2.1.4       2.1.3  Horde HTTP libraries
horde/Horde_Icalendar              2.0.10      2.0.10 iCalendar API
horde/Horde_Idna                   1.0.1       1.0.1  IDNA backend 
normalization package
horde/Horde_Image                  2.2.0       2.2.0  Horde Image API
horde/Horde_Imap_Client            2.27.0      2.26.1 Horde IMAP Client
horde/Horde_Imsp                   2.0.6       2.0.6  IMSP API
horde/Horde_Injector               2.0.4       2.0.4  Horde dependency 
injection container
horde/Horde_Itip                   2.0.7       2.0.7  iTip invitation 
response handling
horde/Horde_JavascriptMinify       1.1.2       1.1.2  Javascript Minification
horde/Horde_JavascriptMinify_Jsmin 1.0.1       1.0.1  Horde Javascript 
Minifier - Jsmin PHP Driver
horde/Horde_Kolab_Cli              1.0.0alpha3        A command line 
interface to the Kolab storage system
horde/Horde_Kolab_Format           2.0.6       2.0.6  A package for 
reading/writing Kolab data formats.
horde/Horde_Kolab_Server           2.0.3       2.0.3  A package for 
manipulating the Kolab user database
horde/Horde_Kolab_Session          2.0.2       2.0.2  A package 
managing an active Kolab session
horde/Horde_Kolab_Storage          2.1.2       2.1.2  A package for 
handling Kolab data stored on an IMAP server
horde/Horde_Ldap                   2.3.1       2.3.1  Horde LDAP libraries
horde/Horde_ListHeaders            1.2.1       1.2.1  Horde List 
Headers Parsing Library
horde/Horde_Lock                   2.1.1       2.1.1  Horde Resource 
Locking System
horde/Horde_Log                    2.1.1       2.1.1  Horde Logging library
horde/Horde_LoginTasks             2.0.4       2.0.4  Horde Login Tasks System
horde/horde_lz4                    1.0.7       1.0.7  Horde LZ4 
Compression Extension
horde/Horde_Mail                   2.5.1       2.5.1  Horde Mail Library
horde/Horde_Mail_Autoconfig        1.0.2       1.0.2  Horde Mail 
Autoconfiguration
horde/Horde_Mapi                   1.0.4       1.0.4  MAPI utility library.
horde/Horde_Memcache               2.0.7       2.0.7  Horde Memcache API
horde/Horde_Mime                   2.8.0       2.7.0  Horde MIME Library
horde/Horde_Mime_Viewer            2.0.8       2.0.8  Horde MIME 
Viewer Library
horde/Horde_Mongo                  1.0.3       1.0.3  Horde Mongo 
Configuration
horde/Horde_Nls                    2.0.5       2.0.5  Native Language 
Support (NLS)
horde/Horde_Notification           2.0.2       2.0.2  Horde 
Notification System
horde/Horde_Oauth                  2.0.2       2.0.2  Horde OAuth 
client/server
horde/Horde_OpenXchange            1.0.0       1.0.0  Open-Xchange Connector
horde/Horde_Pack                   1.0.5       1.0.5  Horde Pack Utility
horde/Horde_Pdf                    2.0.4       2.0.4  Horde PDF library
horde/Horde_Pear                   1.0.0alpha7        A library for 
handling a subset of the PEAR formats and specifications
horde/Horde_Perms                  2.1.3       2.1.3  Horde Permissions System
horde/Horde_Prefs                  2.7.2       2.7.2  Horde Preferences API
horde/Horde_Queue                  1.1.2       1.1.2  Horde Queue
horde/Horde_Rdo                    2.0.3       2.0.2  Rampage Data Objects
horde/Horde_Release                3.0.0              Horde Release 
generation library
horde/Horde_Role                   1.0.1       1.0.0  PEAR installer 
role used to install Horde components
horde/Horde_Routes                 2.0.3       2.0.3  Horde Routes URL 
mapping system
horde/Horde_Rpc                    2.1.3       2.1.3  Horde RPC API
horde/Horde_Scheduler              2.0.2              Horde Scheduler System
horde/Horde_Scribe                 2.0.2       2.0.2  Scribe
horde/Horde_Secret                 2.0.4       2.0.4  Secret Encryption API
horde/Horde_Serialize              2.0.3       2.0.3  Data Encapulation API
horde/Horde_Service_Facebook       2.0.7       2.0.7  Horde Facebook client
horde/Horde_Service_Gravatar       1.0.0       1.0.0  API accessor for 
gravatar.com
horde/Horde_Service_Twitter        2.1.3       2.1.2  Horde Twitter client
horde/Horde_Service_UrlShortener   2.0.2               
Horde_Service_UrlShortener Class
horde/Horde_Service_Weather        2.1.6       2.1.5  Horde Weather Provider.
horde/Horde_SessionHandler         2.2.4       2.2.4  Horde Session 
Handler API
horde/Horde_Share                  2.0.6       2.0.6  Horde Shared 
Permissions System
horde/Horde_Smtp                   1.9.0       1.8.0  Horde SMTP Client
horde/Horde_Socket_Client          2.0.0       1.1.2  Horde Socket Client
horde/Horde_SpellChecker           2.1.2       2.1.2  Spellcheck API
horde/Horde_Sql                    1.0.0RC2           SQL Utility Class
horde/Horde_Stream                 1.6.2       1.6.2  Horde stream handler
horde/Horde_Stream_Filter          2.0.3       2.0.3  Horde Stream filters
horde/Horde_Stream_Wrapper         2.1.2       2.1.2  Horde Stream wrappers
horde/Horde_Stringprep             1.0.1       1.0.1  PHP 
implementation of RFC 3454 - Preparation of Internationalized Strings 
("stringprep").
horde/Horde_Support                2.1.2       2.1.2  Horde support package
horde/Horde_SyncMl                 2.0.5       2.0.5  Horde_SyncMl 
provides an API for processing SyncML requests
horde/Horde_Template               2.0.2       2.0.2  Horde Template System
horde/Horde_Test                   2.5.0       2.5.0  Horde testing 
base classes
horde/Horde_Text_Diff              2.1.1       2.1.1  Engine for 
performing and rendering text diffs
horde/Horde_Text_Filter            2.2.2       2.2.2  Horde Text Filter API
horde/Horde_Text_Filter_Csstidy    2.0.1       2.0.1  Horde Text Filter API
horde/Horde_Text_Filter_Jsmin      1.0.1       1.0.1  Horde Text 
Filter - Jsmin PHP Driver
horde/Horde_Text_Flowed            2.0.2       2.0.2  Horde API for 
flowed text as per RFC 3676
horde/Horde_Thrift                 2.0.2       2.0.2  Thrift
horde/Horde_Timezone               1.0.9       1.0.9  Timezone library
horde/Horde_Token                  2.0.6       2.0.6  Horde Token API
horde/Horde_Translation            2.2.0       2.2.0  Horde 
translation library
horde/Horde_Tree                   2.0.3       2.0.3  Horde Tree API
horde/Horde_Url                    2.2.4       2.2.4  Horde Url class
horde/Horde_Util                   2.5.4       2.5.3  Horde Utility Libraries
horde/Horde_Vfs                    2.2.2       2.2.2  Virtual File System API
horde/Horde_View                   2.0.4       2.0.4  Horde View API
horde/Horde_Xml_Element            2.0.2       2.0.2  Horde Xml Element object
horde/Horde_Xml_Wbxml              2.0.2       2.0.1  Horde_Xml_Wbxml 
provides an API for encoding and decoding WBXML documents used in 
SyncML and other wireless applications
horde/Horde_Yaml                   2.0.3              Horde YAML 
parsing and dumping routines
horde/imp                          6.2.7       6.2.7  A web based 
webmail system
horde/ingo                         3.2.4       3.2.4  An email filter 
rules manager
horde/kronolith                    4.2.5       4.2.5  A web based calendar
horde/mnemo                        4.2.5       4.2.5  A web based 
notes manager
horde/nag                          4.2.4       4.2.4  A web based task 
list manager
horde/passwd                       5.0.2              Horde password 
changing application
horde/sesha                        1.0.0RC3           A simple 
Inventory App for Horde
horde/timeobjects                  2.1.0       2.1.0  Horde 
timeobjects application
horde/trean                        1.1.1       1.1.1  Web-based 
bookmarks application
horde/turba                        4.2.5       4.2.5  A web based address book
horde/webmail                      5.2.5       5.2.5  Horde Groupware 
Webmail Edition
horde/whups                        3.0.2              Ticket-tracking 
application
horde/wicked                       2.0.3              Wiki application

03/11/2015 02:00:43 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Cannot reproduce. Make sure you have the latest Horde_Compress 
version. The current one doesn't match the code lines from your error 
message.
03/11/2015 08:47:25 AM Claas (dot) Hilbrecht (at) linum (dot) com Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
New Attachment: email-horde.txt Download
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ exception on datetime object for some emails created by outlook
Type ⇒ Bug
Reply to this comment
If try to answer an email (see the attached sample) that imp can't 
parse correctly I get this message:

Ein schwerer Fehler ist aufgetreten:
Zeitformat (-11362994757) nicht erkannt

  1. IMP_Dynamic_Base->__construct() /var/www/horde/imp/dynamic.php:33
  2. IMP_Dynamic_Compose->_init() /var/www/horde/imp/lib/Dynamic/Base.php:90
  3. IMP_Compose->replyMessage() /var/www/horde/imp/lib/Dynamic/Compose.php:93
  4. IMP_Compose->replyMessageText() /var/www/horde/imp/lib/Compose.php:2006
  5. IMP_Compose->_getMessageText() /var/www/horde/imp/lib/Compose.php:2111
  6. IMP_Contents->findBody() /var/www/horde/imp/lib/Compose.php:2988
  7. IMP_Contents->_buildMessage() /var/www/horde/imp/lib/Contents.php:687
  8. Horde_Mime_Viewer_Base->getEmbeddedMimeParts() 
/var/www/horde/imp/lib/Contents.php:1114
  9. Horde_Mime_Viewer_Tnef->_getEmbeddedMimeParts() 
/usr/share/php/Horde/Mime/Viewer/Base.php:298
10. Horde_Compress_Tnef->decompress() 
/usr/share/php/Horde/Mime/Viewer/Tnef.php:74
11. Horde_Compress_Tnef->_decodeMessageProperty() 
/usr/share/php/Horde/Compress/Tnef.php:282
12. Horde_Date->__construct() /usr/share/php/Horde/Compress/Tnef.php:659

Details
Die vollständige Fehlermeldung wurde in Hordes Logdatei geschrieben 
und für Administratoren weiter unten ausgegeben. Benutzer, die keine 
Administratoren sind, bekommen diese Details nicht zu sehen.

Saved Queries