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: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 Eras, You have to override getSubject method of SMTPHandler. = http://hg.python.org/cpython/file/677327810121/Lib/logging/handlers.py#l90= 7 Thanks. Andriy Kornatskyy On Mar 12, 2014, at 12:08 PM, eras.rasmuson@gmail.com wrote: > Hi >=20 > I use logging.handlers.SMTPHandler and i have tried to change subject = of mail. >=20 > Are there exists easy way to do that ? >=20 > Subject of mail can change repeatedly depends on content of mail. >=20 > ---- > Eras > --=20 > https://mail.python.org/mailman/listinfo/python-list