#! /bin/sh #---------------------------------------------------------------------------------- # /var/install/bin/mail-panda-pre-view-log - extract log information # # Copyright (c) 2002-2021 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2020-07-01 jed # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------------- module_name='mail-panda' log_dir=/var/log log_file=${log_dir}/${module_name}.log ### view log file ### grep -E " ipop3d\[|imapd\[" ${log_dir}/messages > ${log_file} if [ ! -s "${log_file}" ] then echo "*** no log entries found! ***" > ${log_file} fi