When we send mail to submitter,need a specific format of address
in job_request.py.Sometimes it maybe have the escape character,
that causes the encode issue.We should check and change it.
eg:
'<stephane.desneux@open.eurogiciel.org>' should be changed to
'<stephane.desneux@open.eurogiciel.org>'
Fixes: #2010
Change-Id: Ib0d1b0c32f37a2a1f007ac8bc5e319f98f1175db
mkey = mapping.get(key.strip())
if not mkey:
continue
- entry[mkey] = value.strip()
+ if key.strip() in ['Submitter']:
+ entry[mkey] = value.strip().replace('<',
+ '<').replace('>', '>')
+ else:
+ entry[mkey] = value.strip()
except (AttributeError, ValueError):
print '-------------------------------------'
print 'key:value %s' % line