在阅读邮件正文(gmail)时,似乎有一些不一致之处。你知道吗
result, ems =mail.search(None,'ALL')#'UNSEEN')
if(result=='OK' and ems!=['']):
for em in ems[0].split():
preparse = mail.fetch(em,"(RFC822)")
msg = email.message_from_string(preparse[1][0][1])
for part in msg.get_payload():
if part.get_content_type() == 'text/plain':
to_verify = part.get_payload()
print to_verify
verified = verify(to_verify)
问题在于你需要核实。它与直接从我的web浏览器复制+粘贴的版本不一致。不需要的地方有'\n',添加了'\r'。这给我用gnupg验证签名带来了麻烦。我能做些什么来解决这个问题吗?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐