Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #68270

Re: SMTPHandler and mail subject

Subject Re: SMTPHandler and mail subject
From Andriy Kornatskyy <andriy.kornatskyy@live.com>
Date 2014-03-12 12:27 +0200
References <4b23c949-12eb-444b-a950-c830ace83ca9@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.8081.1394620139.18130.python-list@python.org> (permalink)

Show all headers | 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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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