X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=pingmail;h=f40eb0fba5c711bf0649ac6ce4eeaf579e8afe48;hb=b0385aa88e781c4546bd37c5880f761bea3cb5ae;hp=b59fa4906adb4b0ec3fc94cf3f03ade8463be2d5;hpb=9f8ae1a3603fc36b53132563fab11cd86631562e;p=pingmail.git diff --git a/pingmail b/pingmail index b59fa49..f40eb0f 100755 --- a/pingmail +++ b/pingmail @@ -28,19 +28,23 @@ if [ -f $ping_touch ]; then modtime_pingfile=`stat $ping_touch --format=%Y` fi -# search maildir for last life sign datetime +# search mailbox or maildir for last life sign datetime modtime_mails=0 -while read file; do - if [ -z $file ]; then - break - fi - modtime=`stat $file --format=%Y` - if [ "$modtime" -gt "$modtime_mails" ]; then - modtime_mails=$modtime - fi -done <