Message72763
The __getaddr does not handle certain valid MAIL FROM well :
For eg,
<marcus@internetnow.com.my> SIZE=7777 AUTH=<>
would result in a mismatch of bracket handling.
Suggested fix is :-
def __getaddr(self, keyword, arg):
address = None
keylen = len(keyword)
if arg[:keylen].upper() == keyword:
address = arg[keylen:].strip()
if not address:
pass
# Marcus fix :
i = address.count("<")
ii = address.count(">")
if i != ii :
address = None
return address
# Marcus remark : bug if : <abc@ap.com.my> SIZE=6092 AUTH=<>
elif address[0] == '<' and address[-1] == '>' and address !
= '<>':
# Addresses can be in the form <person@dom.com> but
watch out
# for null address, e.g. <>
if address.count("<") == 1 :
address = address[1:-1]
return address |
|
Date |
User |
Action |
Args |
2008-09-08 04:59:59 | marcus@internetnowasp.net | set | recipients:
+ marcus@internetnowasp.net |
2008-09-08 04:59:58 | marcus@internetnowasp.net | set | messageid: <1220849998.55.0.777734204126.issue3802@psf.upfronthosting.co.za> |
2008-09-08 04:59:56 | marcus@internetnowasp.net | link | issue3802 messages |
2008-09-08 04:59:54 | marcus@internetnowasp.net | create | |
|