Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Email
(view source)
Revision as of 06:03, 25 March 2016
486 bytes added
,
06:03, 25 March 2016
→LearnAsSpam / LearnAsHam (spam/ham training)
Line 363:
Line 363:
#for compatibility with older versions without rpm, testing
#for compatibility with older versions without rpm, testing
if [ `/sbin/e-smith/db configuration getprop LearnAsSpam dir` ]; then
if [ `/sbin/e-smith/db configuration getprop LearnAsSpam dir` ]; then
−
LearnAsSpam=`/sbin/e-smith/db configuration getprop
LearnAsHam
dir`;
+
LearnAsSpam=`/sbin/e-smith/db configuration getprop
LearnAsSpam
dir`;
else
else
LearnAsSpam='LearnAsSpam';
LearnAsSpam='LearnAsSpam';
Line 376:
Line 376:
JunkMail='junkmail';
JunkMail='junkmail';
−
echo
echo
echo
date
date
Line 400:
Line 399:
tnseen=$tnseen+$nseen
tnseen=$tnseen+$nseen
done
done
+
popd >>/dev/nul
+
spam=`ls -1 /home/e-smith/Maildir/.$LearnAsSpam/cur |wc -l`
+
ham=`ls -1 /home/e-smith/Maildir/.$LearnAsHam/cur |wc -l`
+
left=`ls -1 /home/e-smith/Maildir/.$JunkMail/cur |wc -l`
+
nseen=`ls -1 /home/e-smith/Maildir/.$JunkMail/new |wc -l`
+
if [[ $spam > 0 ]] || [[ $ham > 0 ]] || [[ $left > 0 ]] || [[ $nseen > 0 ]]; then
+
printf "%25s %10d %10d %10d %10d \n" "admin" $spam $ham $left $nseen
+
fi
+
tspam=$tspam+$spam
+
tham=$tham+$ham
+
tleft=$tleft+$left
+
tnseen=$tnseen+$nseen
echo "----------------------------------------------------------------------"
echo "----------------------------------------------------------------------"
printf "%25s %10d %10d %10d %10d \n" "Total:" $tspam $tham $tleft $tnseen
printf "%25s %10d %10d %10d %10d \n" "Total:" $tspam $tham $tleft $tnseen
−
popd >>/dev/nul
echo
echo
−
</pre>
</pre>
Unnilennium
Super Admin, Wiki & Docs Team,
Bureaucrats
,
Interface administrators
,
Administrators
3,254
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search