Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Email
(view source)
Revision as of 06:49, 25 March 2016
16 bytes added
,
06:49, 25 March 2016
→LearnAsSpam / LearnAsHam (spam/ham training)
Line 375:
Line 375:
declare -i tnseen
declare -i tnseen
−
printf "%25s %
10s
%
10s
%
10s
%
10s
\n" "User" "LearnAsSpam" "LearnAsHam" "JunkMail" "NotSeen"
+
printf "%
-
25s %
-11s
%
-11s
%
-11s
%
-11s
\n" "User" "LearnAsSpam" "LearnAsHam" "JunkMail" "NotSeen"
pushd /home/e-smith/files/users/ >>/dev/nul
pushd /home/e-smith/files/users/ >>/dev/nul
for u in `ls ` #| grep -v admin`
for u in `ls ` #| grep -v admin`
Line 385:
Line 385:
nseen=`ls -1 $mailpath/Maildir/.$JunkMail/new |wc -l`
nseen=`ls -1 $mailpath/Maildir/.$JunkMail/new |wc -l`
if [[ $spam > 0 ]] || [[ $ham > 0 ]] || [[ $left > 0 ]] || [[ $nseen > 0 ]]; then
if [[ $spam > 0 ]] || [[ $ham > 0 ]] || [[ $left > 0 ]] || [[ $nseen > 0 ]]; then
−
printf "%25s %
10d
%
10d
%
10d
%
10d
\n" $u $spam $ham $left $nseen
+
printf "%
-
25s %
-11d
%
-11d
%
-11d
%
-11d
\n" $u $spam $ham $left $nseen
fi
fi
tspam=$tspam+$spam
tspam=$tspam+$spam
Line 393:
Line 393:
done
done
echo "----------------------------------------------------------------------"
echo "----------------------------------------------------------------------"
−
printf "%25s %
10d
%
10d
%
10d
%
10d
\n" "Total:" $tspam $tham $tleft $tnseen
+
printf "%
-
25s %
-11d
%
-11d
%
-11d
%
-11d
\n" "Total:" $tspam $tham $tleft $tnseen
echo
echo
popd >>/dev/nul
popd >>/dev/nul
+
</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