Changeset 610

Show
Ignore:
Timestamp:
06/16/08 15:38:31 (3 months ago)
Author:
free
Message:

Support custom poll intervals in fetchmail

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cdd-utils/trunk/debian/changelog

    r605 r610  
    1 cdd-utils (0.9.8) 64studio; urgency=low 
     1cdd-utils (0.9.9) 64studio; urgency=low 
    22 
    33  * Fixed missing semicolon in dhclient 
     
    1313  * Run locale-gen after changing squirrelmail locale 
    1414  * Added asoundrc script 
     15  * Support custom poll intervals in fetchmail 
    1516 
    1617 -- Free Ekanayaka <freee@debian.org>  Fri, 23 May 2008 18:17:25 +0100 
  • cdd-utils/trunk/lib/server.sh

    r601 r610  
    135135fetchmail () { 
    136136 
     137    interval=$1 # Poll interval 
     138    if nullstr $interval; then warning "No interval given"; return; fi 
     139 
    137140    cfg=/etc/default/fetchmail 
    138141    if ! exists $cfg; then warning $cfg not found; return; fi 
    139142    sed -i -e 's/^START_DAEMON=no/START_DAEMON=yes/g' $cfg 
     143 
     144    unc_key "OPTIONS" "#" $cfg 
     145    set_key "OPTIONS" "=" "\"-d $interval\"" $cfg 
    140146 
    141147    cfg=/etc/fetchmailrc