[ZendTo] Re: Malformed email from address

John Cooper johnpcooper at yahoo.com
Mon Nov 21 13:11:54 GMT 2011


Christian/Geof,
Thanks for pointing out this code typo. Only in NSSDropbox.php so I've 
corrected it on my site.

$ cd /opt/zento/lib
$ grep 'x\\7f' *.php
NSSDropbox.php: if (preg_match('/[^\x00-x\7f]/', $fromAddr)) {
NSSDropbox.php: if (preg_match('/[^\x00-x\7f]/', $this->_emailSenderAddr)) {

John.

On 21/11/11 12:03, Geoff Bell wrote:
> 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
>
>
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto



More information about the ZendTo mailing list