Server IP : 85.214.239.14 / Your IP : 3.139.69.138 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/cwd/proc/3/root/usr/share/doc/fetchmail/contrib/ |
Upload File : |
#------------------------------------------------------------------------------ # # GetMail - Fetchmail Daemon Controlling Script # # 1999 by Thomas Nesges <ThomaNesges@TNT-Computer.de> # #------------------------------------------------------------------------------ #------------------------------------------------------------------------------ # GetMail starts/stops fetchmail in daemon mode and logs all actions to # /var/log/fetchmail.log. Output is done by tailing the logfile. # # Sendmail/Fetchmail has to be installed, and your fetchmailrc has to be # correctly configured. The option 'got' and 'goth' require a correctly # installed GotMail. If you didn't install it in /usr/local/gotmail you # must change the path given. # # If you have any changes/corrections in the script, please send me email. #------------------------------------------------------------------------------ #!/bin/sh case "$1" in start) sendmail -q date +%d.%m.%Y\ %H:%M:%S\ fetchmail\ started >> /var/log/fetchmail.log fetchmail -d 1 -L /var/log/fetchmail.log & tail -f /var/log/fetchmail.log ;; stop) fetchmail -q date +%d.%m.%Y\ %H:%M:%S\ fetchmail\ stoped >> /var/log/fetchmail.log ;; fetch) date +%d.%m.%Y\ %H:%M:%S\ fetchmail\ started >> /var/log/fetchmail.log fetchmail -d 1 -L /var/log/fetchmail.log & tail -f /var/log/fetchmail.log ;; status) tail -f /var/log/fetchmail.log ;; got) /usr/local/gotmail/gotmail ;; goth) /usr/local/gotmail/gotmail html ;; send) /sendmail -q ;; clear) fetchmail -q rm /var/log/fetchmail.log ;; -v) echo 'getmail version: 0.0.1' ;; *) echo echo 'Usage: getmail option' echo echo 'options:' echo ' clear - stops fetchmail and kills the logfile' echo ' fetch - starts fetchmail' echo ' got - starts gotmail' echo ' goth - starts gotmail html' echo ' send - sends all mail from the mailqueue' echo ' status - tails the logfile' echo ' start - starts fetchmail and tails the logfile' echo ' stop - stops fetchmail' echo ' -v - print the version number' echo esac