summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-07-25 16:26:16 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-07-25 16:26:16 +0800
commitffa58f68a2f802d8fe751b62856a373841d10659 (patch)
treed1ec76c1497bcae8faa5f3bc5a3666cf86695d1f /mbbsd/record.c
parenta0b8e524ca554800eae363391732f420a3ee1997 (diff)
downloadpttbbs-ffa58f68a2f802d8fe751b62856a373841d10659.tar
pttbbs-ffa58f68a2f802d8fe751b62856a373841d10659.tar.gz
pttbbs-ffa58f68a2f802d8fe751b62856a373841d10659.tar.bz2
pttbbs-ffa58f68a2f802d8fe751b62856a373841d10659.tar.lz
pttbbs-ffa58f68a2f802d8fe751b62856a373841d10659.tar.xz
pttbbs-ffa58f68a2f802d8fe751b62856a373841d10659.tar.zst
pttbbs-ffa58f68a2f802d8fe751b62856a373841d10659.zip
maildir: add show size
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2956 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r--mbbsd/record.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index 00c8f11e..c6779553 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -27,7 +27,10 @@ get_num_records(const char *fpath, int size)
{
struct stat st;
if (stat(fpath, &st) == -1)
+ {
+ /* TODO: delete this entry, or mark as read */
return 0;
+ }
return st.st_size / size;
}