[ZendTo] Re: Malformed email from address

Geoff Bell G.Bell at bradford.ac.uk
Mon Nov 21 12:03:21 GMT 2011


Hi,

Is that regular expression correct? It looks like it ought to be 
'/[^\x00-\x7f]/' (the second backslash is in the wrong place)

Regards

Geoff

On 21/11/2011 11:51, Bendt, Christian wrote:
>
> Hi Phil,
>
> The code causing the problems is:
>
> if (preg_match('/[^\x00-x\7f]/', $this->_emailSenderAddr)) {
>
> $sender = 
> "=?UTF-8?B?".base64_encode(html_entity_decode($this->_emailSenderAddr))."?=";
>
> } else {
>
> $sender = $this->_emailSenderAddr;
>
> }
>
> In NSSDropbox.php->deliverEmail()
>
> When it only does "$sender = $this->_emailSenderAddr;" then it works 
> for me.
>
> Christian
>
>
> -- 
> ________________________________________________________________________
> Christian Bendt
> Informationstechnologie
>
> Logo: MAERKISCHES WERK
>
> Märkisches Werk GmbH
> Haus Heide 21
> 58553 Halver, Germany
> Tel: 	+49 (2353) 917-322
> Fax: 	+49 (2353) 917-1322
> E-Mail: 	c.bendt at mwh.de <mailto:c.bendt at mwh.de>
> 	http://www.mwh.de
>
>
> Visit us at German Pavilion W4 Booth 4E 21-4
>
> ________________________________________________________________________
> Geschäftsführer: Christiane Dahlhaus, Dr. Rudolf H. Stanglmaier
> Handelsregister: AG Iserlohn, HR B 3754
> Sitz der Gesellschaft: Halver
>
> Disclaimer: http://disclaimer.mwh.de
>
>
> *Von:*zendto-bounces at zend.to [mailto:zendto-bounces at zend.to] *Im 
> Auftrag von *--[ UxBoD ]--
> *Gesendet:* Donnerstag, 17. November 2011 12:22
> *An:* ZendTo Users
> *Betreff:* [ZendTo] Re: Malformed email from address
>
> Hmm, in NSSDropbox.php->deliverEmail() it does:
>
> if (preg_match('/[^\x00-x\7f]/', $fromAddr)) {
>       $fromAddr = 
> "=?UTF-8?B?".base64_encode(html_entity_decode($fromAddr))."?=";
>     }
>
> but if you do not have any special characters in that configuration 
> variable then I am struggling to see why it would be encoding the address.
>
> -- 
> Thanks, Phil
>
>
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20111121/9c6ed3c4/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 8865 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20111121/9c6ed3c4/attachment-0001.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 943 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20111121/9c6ed3c4/attachment-0003.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 870 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20111121/9c6ed3c4/attachment-0004.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 873 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20111121/9c6ed3c4/attachment-0005.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 150054 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20111121/9c6ed3c4/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4462 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20111121/9c6ed3c4/attachment-0001.bin 


More information about the ZendTo mailing list