Search squid archive

The email notification feature does not work after 10 days

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to use the email notification feature specified in the document.
http://www.squid-cache.org/Doc/config/mail_program/
http://www.squid-cache.org/Doc/config/cache_mgr/
http://www.squid-cache.org/Doc/config/mail_from/

Basically, if the Squid proxy server dies, I can receive an email
notification by configuring "mail_program", "cache_mgr", and
"mail_from". This is a very nice feature.

However, when I start Squid and then intentionally kill Squid by
issuing SEGV, Squid dies without sending any email to me. Diving into
the code, I see that the email notification feature is disabled by the
following if condition,

    /* src/tools.cc */
    ....
    if (squid_curtime - SQUID_RELEASE_TIME < 864000) {
        /* skip if more than 10 days old */
        if (Config.adminEmail)
            mail_warranty();

        puts(dead_msg());
    }

>From the comment, it seems that intentionally the feature is disabled
if the current time is latter than 10 days after the release time
(which is my case). This totally makes no sense to me because most
users like me will use this feature after 10 days latter than the
release date...

Could anyone explain this? I moved the if-condition and the feature does work.

I also opened a bugzilla report here,
http://bugs.squid-cache.org/show_bug.cgi?id=4184

Thanks!

~t
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux