email plugin: Simplified code.
authorSebastian Harl <sh@tokkee.org>
Sun, 27 Apr 2008 18:58:44 +0000 (20:58 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 30 Apr 2008 08:41:48 +0000 (10:41 +0200)
commit981fe506e52ca86d74eeef132a9231b402c4658a
tree2aaac2e8116521aa0f33c6a727fac5495917eca1
parent0fb622abbe7df8156cb89adc19d028e629054aed
email plugin: Simplified code.

While looking at the code for some reason, I decided to simplify and
improve large parts of it. Most notably, standard IO streams are now used
to read from the socket. This allowed to remove large parts of the code
which were used to read and buffer data from the socket so far.

Also among the changes:
 * free any allocated memory
 * added / improved log messages
 * do not require euid == 0 to chown() the socket

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/email.c