Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.053 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '(it': 0.16; 'non-ascii': 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; 'unicode.': 0.16; 'producing': 0.19; 'header:User-Agent:1': 0.23; 'header': 0.24; 'source': 0.25; 'header:X-Complaints-To:1': 0.27; 'character': 0.29; 'characters': 0.30; 'especially': 0.30; 'lines': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'writes:': 0.31; 'open': 0.33; '(e.g.': 0.33; 'projects.': 0.33; 'common': 0.35; 'something': 0.35; 'test': 0.35; 'there': 0.35; 'words,': 0.36; 'charset:us-ascii': 0.36; 'to:addr:python-list': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'subject:emails': 0.60; 'received:217': 0.63; 'deals': 0.65; 'emails,': 0.69; 'wish': 0.70; 'legal': 0.71; 'emails.': 0.78; 'maybe,': 0.84; 'standards,': 0.84; 'catalog': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: dieter Subject: Re: Generating multi-part emails Date: Thu, 16 May 2013 08:01:55 +0200 References: <51946d1e$0$29978$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gmane-NNTP-Posting-Host: pd9e0ae76.dip0.t-ipconnect.de User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) Cancel-Lock: sha1:s27aFGhBaHqIE/V3H+MHs8TJO/4= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1368684129 news.xs4all.nl 15983 [2001:888:2000:d::a6]:46408 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45402 Steven D'Aprano writes: > I wish to generate some test data for a program that deals with emails. I > need something that can produce multi-part emails, including "broken" > emails that violate email standards, especially when it comes to Unicode. I would start producing legal messages (e.g. with the "email" package) and then put in common standard violations. I am using the XEmacs "vm" email package and it has difficulties with the quoting of non-ascii characters in header lines (it performes the quoting based on non-ascii character sequences rather than on words, as it should). Maybe, there is an email message catalog around for the test of email servers/clients. I would check for this in corresponding open source projects.