Home » Networking » Net_Sieve » Bug #2728
Linebreaks not being read using getScript()
Details
| Submitted | 2004-11-10 09:41 UTC |
|---|---|
| From | matthew at de-construct dot com |
| Assigned | damian |
| Status | Closed |
| Package | Net_Sieve |
| PHP Version | 4.3.2 |
| OS | Linux |
| 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!'