PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_Sieve » Bug #2728

Linebreaks not being read using getScript()

Details

Submitted2004-11-10 09:41 UTC
Frommatthew at de-construct dot com
Assigneddamian
StatusClosed
PackageNet_Sieve
PHP Version4.3.2
OSLinux
Roadmaps(Not assigned)

Comments

[2004-11-10 09:41 UTC] matthew at de-construct dot com

Description:
------------
in version 1.0.1 of Net_Sieve, i'm using getScript() to retrieve a specific sieve script from the mailserver.
whilst it returns the contents of the script accurately, the content of the actual body of items enclosed in quotation marks (see sieve script below) is returned without linebreaks.

Sieve Script:

require "vacation";
vacation
:days 7
:addresses ["matthew@de-construct.com"]
:subject "This is a test"
"I'm on my holiday!
sadfafs";

Reproduce code:
---------------
$script = $sieve->getScript('vacation.msg');
print $script;

Expected result:
----------------
expect to see the script as it is in the sieve script file (see description)

Actual result:
--------------
require "vacation";
vacation
:days 7
:addresses ["matthew@de-construct.com"]
:subject "This is a test"
"I'm on my holiday! sadfafs";

(note the lack of linebreak after 'holiday!'