使用的是IMAP协议收取邮件,但是不能获取附件的存储路径,不能下载了。只能获取以下的信息
Content-Type: application/octet-stream; charset="gb18030"; name="Postfix.txt" Content-Disposition: attachment; filename="Postfix.txt" Content-Transfer-Encoding: base64
SVA6IDE5Mi4xNjguMjAuOTANCsPcwus6IGxsYzAwMQ0K0/LD+6O6aGtzdHJvbmcuY29tDQoN Cg0KDQpwb3N0Zml4ILCy17DEv8K8o7ovdXNyL3NiaW4vcG9zdGZpeA0KcG9zdGZpeCDP4LnY xeTWwzogdmkgL2V0Yy9wb3N0Zml4L21haW4uY2YgDQoNCtDo0qqwstewtcS7+bShz+C52Mjt vP6junBvc3RmaXgrbXlzcWwrZG92ZWNvdA0KDQoNCsq1z9a1xLmmxNw6IMTcubu3osvNus29 08rVxNqyv9LUvLDN4rK/tcTTyrz+o6yyosfSxNy5u7n9wsvArLv408q8/tLUvLCwstewz+C5 2LXEt7Syoba+yO28/g0KYWxpYXNfZGF0YWJhc2UgPSBoYXNoOi9ldGMvYWxpYXNlcw0KYWxp YXNfbWFwcyA9IGhhc2g6L2V0Yy9hbGlhc2VzDQpjb21tYW5kX2RpcmVjdG9yeSA9IC91c3Iv c2Jpbg0KY29uZmlnX2RpcmVjdG9yeSA9IC9ldGMvcG9zdGZpeA0KZGFlbW9uX2RpcmVjdG9y eSA9IC91c3IvbGliZXhlYy9wb3N0Zml4DQpkYXRhX2RpcmVjdG9yeSA9IC92YXIvbGliL3Bv c3RmaXgNCmRlYnVnX3BlZXJfbGV2ZWwgPSAyDQpob21lX21haWxib3ggPSBNYWlsZGlyLw0K aHRtbF9kaXJlY3RvcnkgPSBubw0KaW5ldF9pbnRlcmZhY2VzID0gYWxsDQppbmV0X3Byb3Rv Y29scyA9IGFsbA0KbWFpbF9vd25lciA9IHBvc3RmaXgNCm1haWxfc3Bvb2xfZGlyZWN0b3J5 ID0gL3Zhci9zcG9vbC9tYWlsDQptYWlscV9wYXRoID0gL3Vzci9iaW4vbWFpbHEucG9zdGZp eA0Kb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JsZS1hbm9uIC1lbmFi bGUtcGxhaW4gLS1lbmFibGUtbG9naW4gLw0KLS1lbmFibGUtc3FsDQotLXdpdGgtbXlzcWwt aW5jbHVkZXM9L3Vzci9pbmNsdWRlL215c3FsIC8NCi0td2l0aC1teXNxbC1saWJzPS91c3Iv bGliNjQvbXlzcWwgLw0KLS13aXRoLWF1dGhkYWVtb25kDQoNCg0KDQoNCi4vY29uZmlndXJl DQotLXByZWZpeD0vdXNyL2xvY2FsL3Nhc2wyIA0KLS1kaXNhYmxlLWFub24gLWVuYWJsZS1w bGFpbg0KLS1lbmFibGUtbG9naW4gLS1lbmFibGUtc3FsIA0KLS13aXRoLW15c3FsLWluY2x1 ZGVzPS91c3IvaW5jbHVkZS9teXNxbCAvIA0KLS13aXRoLW15c3FsLWxpYnM9L3Vzci9saWI2 NC9teXNxbCAvDQotLXdpdGgtYXV0aGRhZW1vbmQ9L3Vzci9sb2NhbC9hdXRobGliL3Zhci9z cG9vbC9hdXRoZGFlbW9uL3NvY2tldA0KDQoNCg0KDQoNCg0K
上面的大串字母就是文件内容吧,base64编码的,是把其解码存储一下就行了
谢谢了啊!确实将上面的乱码使用Base64算法解密后就可以了
。。。楼主协议不熟悉啊。我记得有字段标记这些内容的加密以及编码方式的。常见的喜欢ACE128+BASE64.对着弄就行了