Menu

/trunk/gui/common/system.py Commit Log


Commit Date  
[r8962] (7.5 kB) by yaberauneya

Fix regression committed via r8332 with properly configured SMTP setups.

The problem is that not configuring an SMTP host causes .connect() to fail with socket.ECONN as it tries to connect to localhost:25 -- instead of the configured mail server -- because when you omit the arguments to connect(), it tries to use whatever gets passed into the initializer, which for some odd reason is being silently filtered out by smtplib (I haven't traced down the root cause here, yet..). But yes... we'll have to fix the GUI bug with it permitting empty SMTP hosts.

I am PURPOSELY filtering out these messages so they'll only end up in the test message pane and won't blow up syslog as we are using a puny 75MB memory disk for storing things in /var today and I don't want home users to start complaining that their boxes are tipping over at home.

Identified in a support call as the customer noted that things worked when SMTP authentication wasn't specified with FreeNAS 8.0.2-RELEASE, but things were broken with a newer version.

2011-12-05 20:37:59 View
Download
[r8654] (6.7 kB) by yaberauneya

Remove RCS keywords

2011-11-13 06:13:26 View
Download
[r8595] (6.7 kB) by yaberauneya

Fix bug in presenting login version.

2011-11-06 08:21:25 View
Download
[r8581] (6.7 kB) by zippybr

lets use str instead of unicode for smtplib.login as it seems to be the root cause for the
"TypeError: character mapping must return integer, None or unicode" exception

2011-11-04 14:56:47 View
Download
[r8555] (6.7 kB) by yaberauneya

Fix a potential corner case where the version would print out the $REVISION variable in parentheses (this mostly applies to release builds); see nanobsd/freenas-common:save_build() for more details about what I mean.

2011-11-02 17:48:02 View
Download
[r8453] (6.6 kB) by yaberauneya

Cache the version to avoid unnecessary 'I/O' (even though it's just a memory disk).

2011-10-27 10:03:37 View
Download
[r8452] (6.5 kB) by yaberauneya

Clean up 'find alias for smtplib' script:

1. Unbreak multiple recipient specification on the command line.
2. Make it apparent that -t actually is for parsing recipients from a message
body.
3. Use the email module with some minimal parsing to avoid unnecessary breakage
down the line because of ad hoc header parsing method previously employed.
4. Make send_mail a bit more robust / atomic.
5. Don't override library modules (email).
6. Remove dupe modules.
7. Simplify code a bit more (it could be simplified even further, but this is
good enough for now).

This will fix mass emailing, which affects SMART reports at least if multiple
recipients are specified.

This addresses ticket # 960.

2011-10-27 10:01:15 View
Download
[r8353] (6.6 kB) by zippybr

use _charset for MIMEText

2011-10-20 10:35:19 View
Download
[r8332] (6.6 kB) by zippybr

use smtplib.connect() if smtp auth was not provided

2011-10-19 12:41:22 View
Download
[r7994] (6.6 kB) by zippybr

accept to send plain mime message

2011-09-27 20:20:29 View
Download
Older >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.