Koozali.org: home of the SME Server

Multidrop fetch interval

Andreas

Multidrop fetch interval
« on: March 03, 2001, 08:17:04 PM »
How do you set the interval for multidrop collection to less than every five minutes?
In db configuration for fetchmail the values for FreqOffice, FreqOutside, FreqWeekend can be set to whatever, but if I change these values how do I get the e-smith box to start using them?

Charlie Brady

Re: Multidrop fetch interval
« Reply #1 on: March 03, 2001, 08:22:52 PM »
Andreas wrote:
>
> How do you set the interval for multidrop collection to less
> than every five minutes?
> In db configuration for fetchmail the values for FreqOffice,
> FreqOutside, FreqWeekend can be set to whatever, but if I
> change these values how do I get the e-smith box to start
> using them?

/sbin/e-smith/signal-event email-update

Charlie

Andreas

Re: Multidrop fetch interval
« Reply #2 on: March 03, 2001, 08:56:52 PM »
Thanks for the quick reply!! I actually just implemented the changes without noticing since I just installed your new e-smith-obtuse-smtpd-maps addon!

Andreas

Re: Multidrop fetch interval
« Reply #3 on: March 03, 2001, 09:20:16 PM »
Guess I was a little quick on that on, it actually doesn't work.

I thought I could just change the db configuration for fetchmail (FreqOffice, FreqOutside, FreqWeekend) to 'every2min' and than do the
/sbin/e-smith/signal-event email-update and it would work, but now it doesn't collect the mail at all so I changed it back to the setting 'every5min' in the GUI.

So, more to the point, how do I do to get the multidrop collection to happen every 2 minutes instead of every 5 minutes?

Scott Smith

Re: Multidrop fetch interval
« Reply #4 on: March 05, 2001, 05:54:36 PM »
Been out for a few days.

Running output through sed instead of redirecting to /dev/null: You can indeed clean up the output this way. However, a cron task that generates output to stdout will result in an email being generated. If all you do is clean up the "." characters, you will still get an email. You could, though, redirect the output to a log file, which would save the output for you but prevent the emails. You could even redirect the output to a perl or bash script of your making, at which time you could do just about anything.

Changing the dialup interval: You can't simply change the interval setting to "every2min" or whatever. The e-smith scripts, contrary to what you might expect, don't parse the interval out of the configuration string. The string is a literal value which is used in a case to set the value. In other words, "every5min" could have just as easily been "frequently" -- there is no real meaning to the string itself except as a selector.

To achieve the change you want, you would need to find and modify the script(s) and/or template(s) that use this setting, to also recognize a new setting of "every2min". When I have some time, I'll poke around and see if I can tell you which files are affected (or perhaps Charlie or Gordon can fill in this blank?)