imap/src/mailutil/mailutil.c
/* Mailbox status
 * Accepts: MAIL stream
 *	    mailbox name
 *	    mailbox status
 */
Mailbox status
Accepts: MAIL stream
mailbox name
mailbox status
Mailbox status Accepts : MAIL stream mailbox name mailbox status
void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
{
  if (status->recent || status->unseen)
    printf ("%lu new message(s) (%lu unseen),",status->recent,status->unseen);
  else fputs ("No new messages,",stdout);
  printf (" %lu total in %s\n",status->messages,mailbox);
}
void mm_status ( MAILSTREAM * stream , char * mailbox , MAILSTATUS * status ) { if ( status -> recent || status -> unseen ) printf ( " " , status -> recent , status -> unseen ) ; else fputs ( " " , stdout ) ; printf ( " \n " , status -> messages , mailbox ) ; }
Mailbox status
 Accepts: MAIL stream
          mailbox name
          mailbox status
Mailbox status Accepts : MAIL stream mailbox name mailbox status