zotonic/zotonic — pull request #232 by kaos (2011-10-19 13:40:03+00:00)
Title: z_email_server: refactored the ?DELETE_AFTER define to be a customizable 

z_email_server: refactored the ?DELETE_AFTER define to be a customizable option.

Use option email_delete_sent_after in priv/config.

NOTE:

Currently, the inc_timestamp/2 is incrementing in seconds, not minutes:

%% @doc Increases a timestamp (as returned by now/0) with a value provided in minutes
inc_timestamp({MegaSec, Sec, MicroSec}, MinToAdd) ->
Sec2 = Sec + MinToAdd, %%!!! * 60,
Sec3 = Sec2 rem 1000000,

Either remove the comment for * 60, or change all references to email settings mentioning minutes when it is in fact seconds.

Actually, I'll post another pull request for the revert to minutes. I feel that it was set to seconds to speed things up for testing...