Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68268 > unrolled thread
| Started by | eras.rasmuson@gmail.com |
|---|---|
| First post | 2014-03-12 03:08 -0700 |
| Last post | 2014-03-13 06:22 +0000 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.python
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
| From | eras.rasmuson@gmail.com |
|---|---|
| Date | 2014-03-12 03:08 -0700 |
| Subject | SMTPHandler and mail subject |
| Message-ID | <4b23c949-12eb-444b-a950-c830ace83ca9@googlegroups.com> |
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
[toc] | [next] | [standalone]
| From | Andriy Kornatskyy <andriy.kornatskyy@live.com> |
|---|---|
| Date | 2014-03-12 12:27 +0200 |
| Message-ID | <mailman.8081.1394620139.18130.python-list@python.org> |
| In reply to | #68268 |
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
[toc] | [prev] | [next] | [standalone]
| From | eras.rasmuson@gmail.com |
|---|---|
| Date | 2014-03-12 05:25 -0700 |
| Message-ID | <f92d95e9-8997-4040-a8b8-d2404fe04798@googlegroups.com> |
| In reply to | #68270 |
It works. Thank you :) ---- Eras
[toc] | [prev] | [next] | [standalone]
| From | Chris Withers <chris@simplistix.co.uk> |
|---|---|
| Date | 2014-03-13 06:22 +0000 |
| Message-ID | <mailman.8123.1394691716.18130.python-list@python.org> |
| In reply to | #68274 |
If you want a much more fully-featured mail handler for the standard
logging framework, there's this:
https://pypi.python.org/pypi/mailinglogger/3.8.0
cheers,
Chris
On 12/03/2014 12:25, eras.rasmuson@gmail.com wrote:
>
> It works. Thank you :)
>
> ----
> Eras
>
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web