Revision: 7187 http://sourceforge.net/p/ipcop/svn/7187 Author: owes Date: 2013-12-14 22:33:59 +0000 (Sat, 14 Dec 2013) Log Message: ----------- Pass verbose setting on to sendEmail. Helpful when trying to track problems.
Modified Paths: -------------- ipcop/trunk/src/misc-progs/emailhelper.c ipcop/trunk/updates/2.1.0/ROOTFILES.i486-2.1.0 Modified: ipcop/trunk/src/misc-progs/emailhelper.c =================================================================== --- ipcop/trunk/src/misc-progs/emailhelper.c 2013-12-14 09:44:46 UTC (rev 7186) +++ ipcop/trunk/src/misc-progs/emailhelper.c 2013-12-14 22:33:59 UTC (rev 7187) @@ -16,7 +16,7 @@ * You should have received a copy of the GNU General Public License * along with IPCop. If not, see <http://www.gnu.org/licenses/>. * - * (c) 2011 The IPCop Team + * (c) 2011-2013 The IPCop Team * * $Id$ * @@ -394,7 +394,13 @@ snprintf(command, STRING_SIZE_LARGE, "/usr/bin/sendEmail -s %s%s %s %s -f %s -t %s %s %s %s -o message-charset=utf-8", server, port, user, password, from, to, subject, message, attachment); - + if (flag_verbose >= 2) { + strcat(command, " -vv"); + } + else if (flag_verbose) { + strcat(command, " -v"); + } + verbose_printf(2, "Command: %s\n", command); rc = safe_system(command); if (rc) { Modified: ipcop/trunk/updates/2.1.0/ROOTFILES.i486-2.1.0 =================================================================== --- ipcop/trunk/updates/2.1.0/ROOTFILES.i486-2.1.0 2013-12-14 09:44:46 UTC (rev 7186) +++ ipcop/trunk/updates/2.1.0/ROOTFILES.i486-2.1.0 2013-12-14 22:33:59 UTC (rev 7187) @@ -42,6 +42,7 @@ /usr/local/bin/accountingctrl /usr/local/bin/blacklistupdate.pl /usr/local/bin/disk-partition.sh +/usr/local/bin/emailhelper /usr/local/bin/ipcopreboot /usr/local/bin/ipsecctrl /usr/local/bin/makesquidconf.pl This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn