Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Jan. 26, 2011 23:10:20

Torsten B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Long admin emails


Hallöchen!

I just upgraded from Django 13xxx to the current SVN. Before the
upgrade, error emails from 500 errors to the admins lokked like
<http://dpaste.com/357039/>. I liked that very much, especially
because the traceback was easily readable.

Now, they look like <http://dpaste.com/357032/>. It's the
text/plain part of the email (my client can't display HTML). Is
there a possibility to get the old, for me clearer emails back, at
least almost?

Tschö,
Torsten.

--
Torsten Bronger Jabber ID: torsten.bron...@jabber.rwth-aachen.de
orhttp://bronger-jmp.appspot.com--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 27, 2011 00:45:29

Russell K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Long admin emails


On Thu, Jan 27, 2011 at 7:10 AM, Torsten Bronger
<bron...@physik.rwth-aachen.de> wrote:
> Hallöchen!
>
> I just upgraded from Django 13xxx to the current SVN.  Before the
> upgrade, error emails from 500 errors to the admins lokked like
> <http://dpaste.com/357039/>.  I liked that very much, especially
> because the traceback was easily readable.
>
> Now, they look like <http://dpaste.com/357032/>.  It's the
> text/plain part of the email (my client can't display HTML).  Is
> there a possibility to get the old, for me clearer emails back, at
> least almost?

Sorry to be the bearer of bad news, but this means your mail client is
broken (or, at least, misconfigured).

Although we now send HTML error mails, we still send the original text
mail, in exactly the same format as before. We do this by sending two
MIME enclosures in the message; a text/plain enclosure with the
raw-text version, and a text/html version with the full markup. The
first MIME enclosure is always the text/plain enclosure.

So - I don't know what mail client you're using, but you need to
convince it to display the text/plain option, rather than the
text/html option.

Yours,
Russ Magee %-)

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Jan. 27, 2011 05:20:50

Torsten B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Long admin emails


Hallöchen!

Russell Keith-Magee writes:

>
>
> Although we now send HTML error mails, we still send the original
> text mail, in exactly the same format as before. We do this by
> sending two MIME enclosures in the message; a text/plain enclosure
> with the raw-text version, and a text/html version with the full
> markup. The first MIME enclosure is always the text/plain
> enclosure.

I had looked at the raw mail message, and the text/plain part looked
exactly the same as I uploaded -- really.

Tschö,
Torsten.

--
Torsten Bronger Jabber ID: torsten.bron...@jabber.rwth-aachen.de
orhttp://bronger-jmp.appspot.com--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 Jan. 27, 2011 05:25:17

Torsten B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Long admin emails


Hallöchen!

Torsten Bronger writes:

> Russell Keith-Magee writes:
>
>>
>>
>> Although we now send HTML error mails, we still send the original
>> text mail, in exactly the same format as before. We do this by
>> sending two MIME enclosures in the message; a text/plain
>> enclosure with the raw-text version, and a text/html version with
>> the full markup. The first MIME enclosure is always the
>> text/plain enclosure.
>
> I had looked at the raw mail message, and the text/plain part
> looked exactly the same as I uploaded -- really.

I hope I didn't overlook any of our secrets but I posted the raw
mail athttp://wilson.homeunix.com/6966Tschö,
Torsten.

--
Torsten Bronger Jabber ID: torsten.bron...@jabber.rwth-aachen.de
orhttp://bronger-jmp.appspot.com--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#5 Jan. 27, 2011 05:32:29

Russell K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Long admin emails


On Thu, Jan 27, 2011 at 1:19 PM, Torsten Bronger
<bron...@physik.rwth-aachen.de> wrote:
> Hallöchen!
>
> Russell Keith-Magee writes:
>
>>
>>
>> Although we now send HTML error mails, we still send the original
>> text mail, in exactly the same format as before. We do this by
>> sending two MIME enclosures in the message; a text/plain enclosure
>> with the raw-text version, and a text/html version with the full
>> markup. The first MIME enclosure is always the text/plain
>> enclosure.
>
> I had looked at the raw mail message, and the text/plain part looked
> exactly the same as I uploaded -- really.

I don't know what's happening here, but I'm fairly certain it isn't
Django's fault.

It's clear that *something* is processing your mail -- the text/plain
container you've provided has a footer providing contact details for
"Dr Ulrich Krafft, Prof Dr-Ing Harald Bolt, and Prof Dr. Sebastian M.
Schmidt. That content wasn't provided by Django.

You can check the exact output of Django using the File email backend
-- put the following two lines in your settings file:

EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
EMAIL_FILE_PATH = '/a/path/somewhere/mail'

(substituting an appropriate FILE_PATH), and you'll see the raw
content that is being sent by Django, one file per email.

Yours,
Russ Magee %-)

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#6 Jan. 27, 2011 07:14:39

Torsten B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Long admin emails


Hallöchen!

Russell Keith-Magee writes:

> On Thu, Jan 27, 2011 at 1:19 PM, Torsten Bronger
> <bron...@physik.rwth-aachen.de> wrote:
>
>>
>>
>> I had looked at the raw mail message, and the text/plain part
>> looked exactly the same as I uploaded -- really.
>
> I don't know what's happening here, but I'm fairly certain it
> isn't Django's fault.
>
> It's clear that *something* is processing your mail

Thank you, you are probably right. I invesitage this; I just sent
an email to our IT department. It may be though that all I can do
is to patch my local Django branch because the IT department might
refuse to change their configuration.

If both MIME parts are so different, multipart/alternative may be a
problematic approach anyway.

Tschö,
Torsten.

--
Torsten Bronger Jabber ID: torsten.bron...@jabber.rwth-aachen.de
orhttp://bronger-jmp.appspot.com--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#7 Jan. 27, 2011 08:47:59

Russell K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Long admin emails


On Thu, Jan 27, 2011 at 3:12 PM, Torsten Bronger
<bron...@physik.rwth-aachen.de> wrote:
> Hallöchen!
>
> Russell Keith-Magee writes:
>
>> On Thu, Jan 27, 2011 at 1:19 PM, Torsten Bronger
>> <bron...@physik.rwth-aachen.de> wrote:
>>
>>>
>>>
>>> I had looked at the raw mail message, and the text/plain part
>>> looked exactly the same as I uploaded -- really.
>>
>> I don't know what's happening here, but I'm fairly certain it
>> isn't Django's fault.
>>
>> It's clear that *something* is processing your mail
>
> Thank you, you are probably right.  I invesitage this; I just sent
> an email to our IT department.  It may be though that all I can do
> is to patch my local Django branch because the IT department might
> refuse to change their configuration.

The good news here is that you won't need to patch your install at
all. One of the advantages of the new logging framework is that you
can handle this by simply installing a different email handler. The
default Django error email handler sends HTML+text; if you just want
text emails, make a copy of the handler in django.utils.log, and
install it in your local logging configuration. There's no need to
patch anything.

Yours,
Russ Magee %-)

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#8 Jan. 27, 2011 12:25:50

Torsten B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Long admin emails


Hallöchen!

Russell Keith-Magee writes:

> On Thu, Jan 27, 2011 at 3:12 PM, Torsten Bronger
> <bron...@physik.rwth-aachen.de> wrote:
>
>>
>>
>> Thank you, you are probably right.  I invesitage this; I just
>> sent an email to our IT department.  It may be though that all I
>> can do is to patch my local Django branch because the IT
>> department might refuse to change their configuration.
>
> The good news here is that you won't need to patch your install at
> all. One of the advantages of the new logging framework is that
> you can handle this by simply installing a different email
> handler.

Thank you, this worked!

Tschö,
Torsten.

--
Torsten Bronger Jabber ID: torsten.bron...@jabber.rwth-aachen.de
orhttp://bronger-jmp.appspot.com--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 23rd of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support