#pragma implementation #include #include #include #include #include #include #include #include #include "fetchmailconf.h" #include "fetchmailconf.m" #include /* * Module api: "status"->showcommand */ void fetchmail_execute( char *check_retreive, char *logstring ) { STATUS_API *api = status_api_init("fetchmailconf"); if ( api == NULL ) { return; } char cmd[500]; char args[500]; sprintf(cmd,"%s", daemon_findpath( "fetchmail" ) ); sprintf(args,"%s %s %s -f %s", check_retreive, "--nosyslog ", logstring, f_config_file->getpath() ); //fprintf(stderr,"status.cc: fetchmail_execute() cmd=%s args=%s\n", cmd, args); api->showcommand( MSG_U(I_FETCHMAILCHECK,"Check mail"), cmd, args ); status_api_end( api ); }