是后缀残害我的HTML附件?

更新:

我只是后缀的配置文件里面发现了这一点。 我如何可能包括我在此消息的图形,而不是遇到了字符限制问题的任何想法将是巨大的。


我已经写了后缀,提取附件,并与链接的HTML文件到这些附件是替换它们一个基于Python的雄鱼。 对于“品牌”的目的(让我的用户并不认为他们被垃圾邮件),我已经嵌入base64编码的图像到这个HTML文件的CSS部分。

当我运行测试,并只输出HTML文件到我的文件系统(而不是通过电子邮件发送),并在Web浏览器中打开它,图形显示没有问题。 当通过与HTML附件后缀被实际发送的消息,因为它被认为是长的base64部拆分为许多线,而不是一个连续的行。

这是HTML文件应该是什么时候收到这样的:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="content-type content=" text="" html;="" charset="ISO-8859-1&quot;" /> <style type="text/css" media="screen"> #logo { background-color: #ffffff; color: #000000; font-family: Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 100%; line-height: 1; font-size-adjust: none; font-stretch: normal; } #logo { padding: 1em; } #logo h1, #logo h2 { margin: 0; } #logo h1 { height: 100px; } #logo h1 span { float: left; height: 100%; } #logo h1 #EARS { # background: transparent url(images/WRTgreendot.jpg) no-repeat scroll left top; background: transparent url(data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QSqaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49J++7vycgaWQ9J1c1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCc/Pgo8eDp4bXBtZXRhIHhtbG5zOng9J2Fkb2JlOm5zOm1ldGEvJz4KPHJkZjpSREYgeG1sbnM6cmRmPSdodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjJz4KCiA8cmRmOkRlc2NyaXB0aW9uIHhtbG5zOmRjPSdodHRwOi8v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TUNdNHGxpyzbO4tdxH+damLhFFBXTRQStlia47Dwc5HQuhE+drLk5JMyjqR+lcBWd7HgeFvxCcfLjaUEacYsNIV1HTWGeKepijkMjyGudgnmhRwX1Z3RtrNdcRUSN/29OQ45/M7oHii0PzNeMpTUIAKBhBF9CbknkM4kClzGBoDTKLHTlEaGzwQPGJNnaeOpx348EWQRfQcrLIlWEMN/KkADoLRpUICEhI4QU5q+wmuaa2kaPSWjntH9weao0Q9UpkvVJZUtMC6T4g8CO8fxoYY8yl5BQqNQkEEgggjcQehFsHUOnKe5EzwEQVXtY5r/AH+aiLjb6y3y8nVwOj37ncWn3FcEruzE7R1nGnE3wUNOvYefQmM5MSjjBzzHbHlREWcgWCIiUKCIs7ZNNVtc4SVDXU1P1uHOd7h4lGyFNmqi6GZZBUe7QczoBziRtpbqsKBeMfZ7bUXSrEEAw0b3vPBg/wA6Fsm3UcFBRspaduGMHHpJ6Se1LfRU1BTNp6WMMYOPWT1k9JXoXdNltlmqK0VrOJ1Wp4Adg7u08eVhGhk5MS4uc1GCIi1sGwREShQXGaOOaMxyxtkY7i1wyD8EReKSFCxFxC1jAXTTFqdG6WOOSBwBOI3bvkcqFqGCOd8bSSGnAyiLjftBpspKKaVLthBVe9ha/wBvKKKptIQQUi0cFmdM2qnuUrm1D5WgewQPBEWU2ZlmpqptNPJCkk5gwHKISt0BQyi1t1lttC4Pgpm8oOD385w+fBZBEX0RLSrEqjdsICU9gAHpGnQhKBZItBEREQ6CIiUKP//Z) no-repeat scroll left top; width: 100px; text-indent: -1000em; height: 100px; text-transform: uppercase; color: #3366ff; font-size: 100px; } #logo h1 #WRT { # background: transparent url(images/WRTgreendot.jpg) no-repeat scroll left top; width: 100px; height: 100px; text-indent: -1000em; font-size: 100px; text-transform: uppercase; color: #cc0000; } #EARS_desc { text-align: left; font-family: Arial,Helvetica,sans-serif; font-weight: normal; } #EARS_files { text-align: left; font-weight: bold; font-family: "Courier New",Courier,monospace; font-size: 14pt; } </style> <title>EARS</title> </head> <body> <div id="logo"> <h1><span id="WRT">WRT</span> <span id="EARS"> EARS</span> </h1> <h2>E-mail Attachment Retrieval System</h2> </div> <hr> <div id="EARS_desc"> You have been sent an e-mail that exceeds WRT's allowed e-mail attachment size.<p> Attachments to this message have been removed and saved to a <b>TEMPORARY</b> storage location<br> where they will be <b>PERMANENTLY REMOVED</b> after 30 days.<p> To retrieve the attachments, right-click on the filename listed below and choose <b>Save As...</b> </div> <hr> <div id="EARS_files"> <ul> <li> <a href="ftp://username:password@ftp.domain.com/filename1.txt">file1</a> <li> <a href="ftp://ftp://username:password@ftp.domain.com/filename2.txt">file2</a> </ul> </div> </body></html>

但是这是它表现为通过e-mail:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="content-type content=" text="" html;="" charset="ISO-8859-1&quot;" /> <style type="text/css" media="screen"> #logo { background-color: #ffffff; color: #000000; font-family: Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 100%; line-height: 1; font-size-adjust: none; font-stretch: normal; } #logo { padding: 1em; } #logo h1, #logo h2 { margin: 0; } #logo h1 { height: 100px; } #logo h1 span { float: left; height: 100%; } #logo h1 #EARS { # background: transparent url(images/WRTgreendot.jpg) no-repeat scroll left top; background: transparent url(data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QSqaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49J++7vycgaWQ9J1c1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCc/Pgo8eDp4bXBtZXRhIHhtbG5zOng9J2Fkb2JlOm5zOm1ldGEvJz4KPHJkZjpSREYgeG1sbnM6cmRmPSdodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjJz4KCiA8cmRmOkRlc2NyaX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Fr5jW5/iI3Xi6EgjQWiu0ZdaWO3TUNdNHGxpyzbO4tdxH+damLhFFBXTRQStlia47Dwc5HQuhE+drLk5JMyjqR+lcBWd7HgeFvxCcfLjaUEacYsNIV1HTWGeKepijkMjyGudgnmhRwX1Z3RtrNdcRUSN/29OQ45/M7oHii0PzNeMpTUIAKBhBF9CbknkM4kClzGBoDTKLHTlEaGzwQPGJNnaeOpx348EWQRfQcrLIlWEMN/KkADoLRpUICEhI4QU5q+wmuaa2kaPSWjntH9weao0Q9UpkvVJZUtMC6T4g8CO8fxoYY8yl5BQqNQkEEgggjcQehFsHUOnKe5 EzwEQVXtY5r/AH+aiLjb6y3y8nVwOj37ncWn3FcEruzE7R1nGnE3wUNOvYefQmM5MSjjBzzHbHlREWcgWCIiUKCIs7ZNNVtc4SVDXU1P1uHOd7h4lGyFNmqi6GZZBUe7QczoBziRtpbqsKBeMfZ7bUXSrEEAw0b3vPBg/wA6Fsm3UcFBRspaduGMHHpJ6Se1LfRU1BTNp6WMMYOPWT1k9JXoXdNltlmqK0VrOJ1Wp4Adg7u08eVhGhk5MS4uc1GCIi1sGwREShQXGaOOaMxyxtkY7i1wyD8EReKSFCxFxC1jAXTTFqdG6WOOSBwBOI3bvkcqFqGCOd8bSSGnAyiLjftBpspKKaVLthBVe9ha/wBvKKKptIQQUi0cFmdM2qnuUrm1D5WgewQPBEWU2ZlmpqptNPJCkk5gwHKISt0BQyi1t1lttC4Pgpm8oOD385w+fBZBEX0RLSrEqjdsICU9gAHpGnQhKBZItBEREQ6CIiUKP//Z) no-repeat scroll left top; width: 100px; text-indent: -1000em; height: 100px; text-transform: uppercase; color: #3366ff; font-size: 100px; } #logo h1 #WRT { # background: transparent url(images/WRTgreendot.jpg) no-repeat scroll left top; width: 100px; height: 100px; text-indent: -1000em; font-size: 100px; text-transform: uppercase; color: #cc0000; } #EARS_desc { text-align: left; font-family: Arial,Helvetica,sans-serif; font-weight: normal; } #EARS_files { text-align: left; font-weight: bold; font-family: "Courier New",Courier,monospace; font-size: 14pt; } </style> <title>EARS</title> </head> <body> <div id="logo"> <h1><span id="WRT">WRT</span> <span id="EARS"> EARS</span> </h1> <h2>E-mail Attachment Retrieval System</h2> </div> <hr> <div id="EARS_desc"> You have been sent an e-mail that exceeds WRT's allowed e-mail attachment size.<p> Attachments to this message have been removed and saved to a <b>TEMPORARY</b> storage location<br> where they will be <b>PERMANENTLY REMOVED</b> after 30 days.<p> To retrieve the attachments, right-click on the filename listed below and choose <b>Save As...</b> </div> <hr> <div id="EARS_files"> <ul> <li> <a href="ftp://dropped:files@ftp.wrtdesign.com/dropdir/71dbce53e1898e5b801d370216b55c27274dcdee/Lorem Ipsum - All the facts - Lipsum generator.html">Lorem Ipsum - All the facts - Lipsum generator.html</a> </ul> </div> </body></html>

正如你应该能够看到, base64文本已拆分为多行,这反过来,不允许要显示的图像(S)。

分类:蟒蛇 时间:2012-01-01 人气:0
本文关键词: HTML,蟒蛇,BASE64,后缀
分享到:

相关文章

  • 弦中的蟒蛇整数后缀排序列表 2012-04-04

    我有一个字符串列表: [song_1, song_3, song_15, song_16, song_4, song_8] 我想按#结束时对它们进行排序,遗憾的是由于较低的数字不是"08",并有"8",它们被视为在字典顺序大于15. 我知道我必须通过一键排序功能,我看到这个地方在本网站的十进制数是字符串进行排序: sorted(the_list, key=lambda a:map(int,a.split('.')) 但是,这是对"1.2,2.5,2.3&q

  • 发送的base64有时会出现乱码结果编码在TCP套接字图片来自蟒蛇的node.js 2012-08-19

    我想在程序上生成蟒蛇图像发送到node.js的实例,因此然后我可以通过WebSocket的提供这些图像实时浏览器. 我的第一个测试循环无非是在我的Node.js服务器打开一个JPEG文件,将其编码成的base64,并使用socket.io(81端口)发送到浏览器. 这种精细工作的每一个数据被发送的时间. 然后,我尝试打开同一个文件中的巨蟒,连接到原始TCP的node.js服务器(端口9090),并发送文件到节点服务器为它转发到浏览器(81端口). 大约有一半的数据节点接收的时间似乎被打破,但数据

  • 从蟒蛇的base64编码XMLRPC wp.uploadFile 2014-04-08

    我试图用上传WordPress的上一个XMLRPC文件. 我这样做使用PHP,但是这一次我必须用Python和东西是行不通的. 具体而言,要做到这一点的方法是通过调用在这里法典或http://codex.wordpress.org/XML-RPC_wp#wp.uploadFile解释metaWeblog.newMediaObject的XMLRPC功能wp.uploadFile. 问题是编码. 从PHP我用一类是做肮脏的工作. 即ixr_base64类aparently做的伎俩. 在python我

  • 可以蟒蛇有工程用基于后缀数字符号? 2012-05-01

    作为一名电气工程师我(我们?)使用Python的帮忙与计算/自动化/等. 当使用了一些真实世界的数字是非常普遍认为在-nano,-pico,-tera等方式与计算处理. 例如:我知道一个1pF的电容是什么,但1E-12 F电容somewhow不太友好. 此外,它是4倍(与1E-12 1P)更多的输入和更容易出错. 不是说显示数字时,其后缀数字简直是更容易. 所以,问题是:是否有可能在此蟒工作(IPython的?): L = 1n C = 1p f = 1/(2*pi*sqrt(L*C)) pri

  • 蟒蛇格式的日期时间为“ST”,“第二”,“第三”,“日”(后面的英文后缀),如PHP的“S” 2012-05-20

    我想一个python DateTime对象输出(和使用结果在Django)所示: Thu the 2nd at 4:30 但我发现在Python输出没办法st nd , rd ,或th像我一样用PHP的日期时间格式S字符串(他们叫什么?"后面的英文后缀")(http://uk.php.net/manual /en/function.date.php). 是否有一个内置的方式做到这一点在Django / Python的? strftime不够好(http://docs.python.or

  • 转换文件流为Base64蟒蛇 2012-10-27

    我看过下面的代码压缩文件的文件流: file = open(source_url, "rb") data = file.read() file.close() byte_arr = base64.b64encode(data) 现在我想调用它接受的数据格式base64Binary的(写在Java字节数组)web服务. 如果我送byte_arr到Web服务,我得到客户端错误: 故障ENV:客户:捕捉到异常,同时处理的请求:意外元素类型:预期= {} http://www.w3.org/2

  • 蟒蛇:库广义后缀树 2013-12-25

    我需要Python库,可以构造后缀树,尤其是广义后缀树. 你可以建议我一些库. 谢谢. --------------解决方案------------- 请参见下面的库. suffixtree Python的后缀树 SuffixTree SuffixTree(同名不同的项目,支持通用后缀树) pysuffix(这是后缀数组)

  • 在蟒蛇后缀树工作 2014-07-09

    我是比较新的Python和我开始后缀树工作. 我可以建立他们,但我运行到一个内存问题当字符串变大. 我知道,他们可以用大小为4 ^ 10或4 ^ 12的DNA串的工作,但每当我试图实现一个方法,我结束了内存问题. 这里是我的生成字符串和后缀树代码. import random def get_string(length): string="" for i in range(length): string += random.choice("ATGC") return

  • 字串后缀的置换蟒蛇 2014-08-07

    我知道如何在Python字符串替换,但我需要一个方式,如果该序列位于词的结尾只能更换. 例如: rule: at -> ate so: cat -> cate but: attorney -> attorney 谢谢. --------------解决方案------------- 字符regex可以做到这一点easyness: import re regx = re.compile('at\\b') ch = 'the fat cat was impressed by all the

  • BASE64在Windows png格式的蟒蛇 2014-12-23

    你如何编码PNG图像为使用Windows上的Python的base64? iconfile = open("icon.png") icondata = iconfile.read() icondata = base64.b64encode(icondata) 上述工作正常,在Linux和OSX,但在Windows上,将编码的前几个字符再剪短. 为什么是这样? --------------解决方案------------- 以二进制方式打开文件: open("icon.png&

Copyright (C) 55228885.com, All Rights Reserved.

55228885 版权所有 京ICP备15002868号

processed in 0.186 (s). 10 q(s)