# \[ egroupware-Bugs-1424547 \] Several errors in class.SiveSession.inc.php

**URL:** <https://help.egroupware.org/t/egroupware-bugs-1424547-several-errors-in-class-sivesession-inc-php/8976>\
**Category:** eGW-tracker\
**Created:** [August 29, 2006, 10:22am UTC](https://help.egroupware.org/t/egroupware-bugs-1424547-several-errors-in-class-sivesession-inc-php/8976 "2006-08-29T10:22:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SourceForge.net](https://help.egroupware.org/letter_avatar_proxy/v4/letter/s/46a35a/32.png) [@SourceForge.net](https://help.egroupware.org/u/SourceForge.net)\
**Post date:** [August 29, 2006, 10:22am UTC](https://help.egroupware.org/t/egroupware-bugs-1424547-several-errors-in-class-sivesession-inc-php/8976/1 "2006-08-29T10:22:33Z")

</div>

Bugs item #1424547, was opened at 2006-02-05 15:37  
Message generated for change (Comment added) made by rujobi  
You can respond by visiting:  
[https://sourceforge.net/tracker/?func=detail&atid=554338&aid=1424547&group\_id=78745](https://sourceforge.net/tracker/?func=detail&atid=554338&aid=1424547&group_id=78745)

Please note that this message will contain a full copy of the comment thread,  
including the initial issue submission, for this request,  
not just the latest update.  
Category: felamimail  
Group: 1.2 final, no more RC1-8 please !!!  
Status: Closed  
Resolution: Out of Date  
Priority: 5  
Submitted By: Daniel Berlin (danielberlin)  
Assigned to: Lars Kneschke (lkneschke)  
Summary: Several errors in class.SiveSession.inc.php

Initial Comment:  
I use eGroupware 1.2RC6 on FreeBSD (apache 2.2, php  
5.1, mysql 5).

When i open felamimail and click on “emailfilter”, my  
logs get spammed with:

Feb 5 14:43:00 hermes httpd: PHP Warning: fread(): 91  
is not a valid stream resource in  
/usr/local/www/data-dist-1.2/felamimail/inc/class.SieveSession.inc.php  
on line 176  
Feb 5 14:43:00 hermes httpd: PHP Warning:  
socket\_get\_status(): 91 is not a valid stream resource  
in  
/usr/local/www/data-dist-1.2/felamimail/inc/class.SieveSession.inc.php  
on line 178  
Feb 5 14:43:00 hermes httpd: PHP Warning:  
socket\_get\_status(): 91 is not a valid stream resource  
in  
/usr/local/www/data-dist-1.2/felamimail/inc/class.SieveSession.inc.php  
on line 178  
Feb 5 14:43:00 hermes httpd: PHP Warning: fread(): 91  
is not a valid stream resource in  
/usr/local/www/data-dist-1.2/felamimail/inc/class.SieveSession.inc.php  
on line 176

… and so on, until php kills the script after 30 sec.

Furthermore, the connection to timsieved seems to get  
disconnected quite often.

The attached diff fixes all these errors (YMMV) and has  
a nice side-effect: when the sive-connection is  
disconnected, it automatically gets reconnected.

* * *

Comment By: rujobi (rujobi)

Message:  
Logged In: YES  
user\_id=1348056

Hi Lars, Hi Daniel,

I still get the same errors in 1.2-104 release when I try to  
store/save a filter or vacation message. Is this item still  
valid for the 1.2-104 stable release or did you (Lars)  
already switch to new Sieve class?

Best regards

Rüdiger

* * *

Comment By: Lars Kneschke (lkneschke)

Message:  
Logged In: YES  
user\_id=68218

Hello Daniel!

I have switched to the Sieve class from PEAR for the next  
version of Felamimail. Which looks a more stable and is  
maintained by someone.

That means we don’t need your patches anymore.

Thanks for helping!

* * *

Comment By: Daniel Berlin (danielberlin)

Message:  
Logged In: YES  
user\_id=1282963

I took the time and improved the whole class a bit.  
My previous fixes are included as well as several cleanups  
and improvements.

* * *

Comment By: Daniel Berlin (danielberlin)

Message:  
Logged In: YES  
user\_id=1282963

One more diff…

* * *

You can respond by visiting:  
[https://sourceforge.net/tracker/?func=detail&atid=554338&aid=1424547&group\_id=78745](https://sourceforge.net/tracker/?func=detail&atid=554338&aid=1424547&group_id=78745)

* * *

Using Tomcat but need to do more? Need to support web services, security?  
Get stuff done quickly with pre-integrated technology to make your job easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

* * *

eGroupWare-tracker mailing list  
[eGroupWare-tracker@lists.sourceforge.net](mailto:eGroupWare-tracker@lists.sourceforge.net)  
[https://lists.sourceforge.net/lists/listinfo/egroupware-tracker](https://lists.sourceforge.net/lists/listinfo/egroupware-tracker)
