Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #58910
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'broken': 0.04; 'strict': 0.07; 'converted': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'references.': 0.09; 'satisfy': 0.09; 'subject:few': 0.09; 'suggest': 0.14; '(before': 0.16; 'quoted': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'regression': 0.16; 'skip:p 120': 0.16; 'spurious': 0.16; 'subject:send': 0.16; 'subject:whitespaces': 0.16; 'whitespace.': 0.16; 'whitespaces': 0.16; '<': 0.19; 'input': 0.22; 'header:User-Agent:1': 0.23; 'replace': 0.24; 'sends': 0.24; 'source': 0.25; 'script': 0.25; '>': 0.26; 'somewhere': 0.26; 'skip:" 20': 0.27; 'header:X -Complaints-To:1': 0.27; 'idea': 0.28; 'testing': 0.29; '???': 0.30; 'characters': 0.30; 'lines': 0.31; 'writes:': 0.31; 'file': 0.32; 'quite': 0.32; 'text': 0.33; 'limitation': 0.33; 'table': 0.34; 'subject:the': 0.34; 'test': 0.35; 'campaign': 0.36; 'charset:us-ascii': 0.36; 'project': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'introduced': 0.61; 'length': 0.61; 'completed': 0.61; 'here:': 0.62; 'received:217': 0.63; 'email addr:gmail.com': 0.63; 'reads': 0.68; 'results': 0.69; 'containing': 0.69; 'subject:get': 0.81; 'transfer': 0.82; 'characters,': 0.84; 'maybe,': 0.84; 'right).': 0.84; 'subject:source': 0.84; 'url:auto': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | dieter <dieter@handshake.de> |
| Subject | Re: When I send email as HTML, why do erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ??? |
| Date | Sat, 09 Nov 2013 08:29:00 +0100 |
| References | <aa3a285b-b526-4f02-9cfa-90ef4e3daf3a@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| X-Gmane-NNTP-Posting-Host | pd9e0a525.dip0.t-ipconnect.de |
| User-Agent | Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) |
| Cancel-Lock | sha1:wu3Pplo8HozmRucUHJebGfIDyr0= |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2281.1383982152.18130.python-list@python.org> (permalink) |
| Lines | 27 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1383982152 news.xs4all.nl 15947 [2001:888:2000:d::a6]:53907 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:58910 |
Show key headers only | View raw
richard.balbat@gmail.com writes:
> I have the following script that reads in an HTML file containing a table then sends it out via email with a content type of text/html.
>
> For some reason a few erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ???
> ...
> Contents of results.html
>
> <html><head><title>Test Campaign Results</title></head><body><p>SoapUI regression testing has completed against the following: <br/><br/> Environment: Auto.QA<br/>Build: test<br/>Detailed results can be found here: http://xxxx-AUTO1.xxxx.xxx/SoapUITestResults/Auto.QA-2013-6-11_22-54-50<br/><br/></p><table border="1"><tr><th>SoapUI Project (WSDL/WADL)</th><th>Total</th><th>Pass</th><th>Failure</th><th>Pass Percentage</th></tr><tr><td>acceptancePartnerEndpointWSDefinition-soapui-project.xml</td><td>7</td><td><font color="green">7</font></td><td><font color="red">0</font></td><td>100.00%</td></tr><tr><td>AIM-Automation.xml</td><td>25</td><td><font color="green">23</font></td><td><font color="red">2</font></td><td>92.00%</td></tr><tr><td>ATM-Automation.xml</td><td>41</td><td><font color="green
> ...
I suggest to log the generated email (before sending) to verify whether
the transformation happens in your script or somewhere during the
email transport.
The email transport protocol ("SMTP" - "Simple Mail Transfer Protocol")
in principle imposes quite a strict limitation on line length
(72 characters, when I remember right). Your html input has much larger
lines - maybe, they are broken up somewhere - at the cost of spurious
whitespace. Usually, a "Content-Transfer-Encoding" is used
to satisfy the line length limitation. If this is quoted printable,
then reading the text undecoded, it may seem to have additional
characters (whitespace and control characters).
I have no idea what may replace "<" and ">" by html entity references.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
When I send email as HTML, why do erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ??? richard.balbat@gmail.com - 2013-11-08 14:06 -0800
Re: When I send email as HTML, why do erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ??? dieter <dieter@handshake.de> - 2013-11-09 08:29 +0100
Re: When I send email as HTML, why do erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ??? Richard Balbat <richard.balbat@gmail.com> - 2013-11-11 18:02 -0800
Re: When I send email as HTML, why do erroneous whitespaces get introduced to the HTML source and a few < > chars get converted to < and > ??? Walter Hurry <walterhurry@lavabit.com> - 2013-11-10 04:17 +0000
csiph-web