Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68270
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.news.ox.ac.uk!news.ox.ac.uk!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <andriy.kornatskyy@live.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.121 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.76; '*S*': 0.00; 'override': 0.09; 'cc:addr :python-list': 0.11; 'subject:subject': 0.16; 'url:file': 0.16; 'wrote:': 0.18; 'thanks.': 0.20; 'cc:addr:python.org': 0.22; 'exists': 0.24; 'received:65.55.116': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; '----': 0.29; 'url:mailman': 0.30; 'received:192.168.10': 0.31; 'url:python': 0.33; 'there': 0.35; 'from:addr:live.com': 0.36; 'url:listinfo': 0.36; 'method': 0.36; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'depends': 0.38; 'pm,': 0.38; '12,': 0.39; 'url:mail': 0.40; 'easy': 0.60; 'email addr:gmail.com': 0.63; 'to:addr:gmail.com': 0.65; 'mar': 0.68; 'subject': 0.69; 'mail.': 0.69; '2014,': 0.84; 'url:cpython': 0.84 |
| X-TMN | [vhIwYjPwnCNYVnlmfpyISiu+rXlMS0CM] |
| X-Originating-Email | [andriy.kornatskyy@live.com] |
| Content-Type | text/plain; charset="us-ascii" |
| MIME-Version | 1.0 (Mac OS X Mail 7.2 \(1874\)) |
| Subject | Re: SMTPHandler and mail subject |
| From | Andriy Kornatskyy <andriy.kornatskyy@live.com> |
| In-Reply-To | <4b23c949-12eb-444b-a950-c830ace83ca9@googlegroups.com> |
| Date | Wed, 12 Mar 2014 12:27:45 +0200 |
| Content-Transfer-Encoding | quoted-printable |
| References | <4b23c949-12eb-444b-a950-c830ace83ca9@googlegroups.com> |
| To | eras.rasmuson@gmail.com |
| X-Mailer | Apple Mail (2.1874) |
| X-OriginalArrivalTime | 12 Mar 2014 10:27:49.0896 (UTC) FILETIME=[B7DF3880:01CF3DDD] |
| Cc | python-list@python.org |
| 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.8081.1394620139.18130.python-list@python.org> (permalink) |
| Lines | 28 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1394620139 news.xs4all.nl 2925 [2001:888:2000:d::a6]:58741 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:68270 |
Show key headers only | View raw
Eras, You have to override getSubject method of SMTPHandler. http://hg.python.org/cpython/file/677327810121/Lib/logging/handlers.py#l907 Thanks. Andriy Kornatskyy On Mar 12, 2014, at 12:08 PM, eras.rasmuson@gmail.com wrote: > Hi > > I use logging.handlers.SMTPHandler and i have tried to change subject of mail. > > Are there exists easy way to do that ? > > Subject of mail can change repeatedly depends on content of mail. > > ---- > Eras > -- > https://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
SMTPHandler and mail subject eras.rasmuson@gmail.com - 2014-03-12 03:08 -0700
Re: SMTPHandler and mail subject Andriy Kornatskyy <andriy.kornatskyy@live.com> - 2014-03-12 12:27 +0200
Re: SMTPHandler and mail subject eras.rasmuson@gmail.com - 2014-03-12 05:25 -0700
Re: SMTPHandler and mail subject Chris Withers <chris@simplistix.co.uk> - 2014-03-13 06:22 +0000
csiph-web