diff --git a/include/sieve/class_sieveElement_Fileinto.inc b/include/sieve/class_sieveElement_Fileinto.inc
index 6ac66371ca6fca283c5b7971a0a38611744dcbb1..f357d37d96d961bd4e1ea2065d8468deb9f985b8 100644 (file)
/* Load element contents, should normaly be only one string
* but if we found more than one, just append the following strings.
*/
/* Load element contents, should normaly be only one string
* but if we found more than one, just append the following strings.
*/
- foreach($data['ELEMENTS'] as $key => $node ){
- if(in_array($node['class'],array("quoted-string","text"))){
- $tmp = sieve_get_strings($data['ELEMENTS'],$key);
- if(count($tmp['STRINGS'])){
- foreach($tmp['STRINGS'] as $str){
- $this->data.= $str;
- }
- }
+ for($i = 0 ; $i < count($data['ELEMENTS']) ; $i++){
+ $tmp = sieve_get_strings($data['ELEMENTS'],$i);
+ $i = $i + $tmp['OFFSET'];
+ foreach($tmp['STRINGS'] as $str){
+ $this->data .= $str;
}
}
}
}