search for: do_mailcheck

Displaying 1 result from an estimated 1 matches for "do_mailcheck".

2001 Aug 13
1
[PATCH] Maildir support
...D Auth support: yes" diff -ur --exclude=configure openssh-2.9p2/session.c openssh-2.9p2.maildir/session.c --- openssh-2.9p2/session.c Sun Jun 17 05:40:51 2001 +++ openssh-2.9p2.maildir/session.c Mon Aug 13 14:32:47 2001 @@ -1019,6 +1019,82 @@ } #endif /* defined(HAVE_GETUSERATTR) */ +void +do_mailcheck(const char *mailbox) +{ + struct stat mailstat; + + if (stat(mailbox, &mailstat) != 0) { + debug("Mailcheck failed: %s: %s", mailbox, + strerror(errno)); + return; + } + /* mbox format mailcheck */ + if (S_ISREG(mailstat.st_mode)) { + if (mailstat.st_size == 0) + print...