Re: [PATCH 1/6] stg mail: Refactor __send_message and friends
- From
Karl Wiberg <kha@treskal.com>
- Date
- Nov 29, 2009, 09:13 UTC
- Message-ID
- <4B123B48.4050405@treskal.com>
- In-Reply-To
- <20091128195016.949.17089.stgit@bob.kio>
Alex Chiang wrote:
> Instead of passing all the various smtp* args to __send_message > individually, let's just pass the options list instead.
Looks good.
> + if (smtppassword and not smtpuser): > + raise CmdException, 'SMTP password supplied, username needed' > + if (smtpusetls and not smtpuser): > + raise CmdException, 'SMTP over TLS requested, username needed'
Python style nit: Use "raise Exception('message')" in new code. (And yes, I know you just moved these lines around.)
--
Karl Wiberg, kha@treskal.com
subrabbit.wordpress.com
www.treskal.com/kalle