imap/src/dmail/dmail.c
/* Report an error
 * Accepts: string to output
 */
Report an error
Accepts: string to output
Report an error Accepts : string to output
int fail (char *string,int code)
{
  mm_log (string,ERROR);	
  switch (code) {
#if T
  case EX_USAGE:
  case EX_OSERR:
  case EX_SOFTWARE:
  case EX_NOUSER:
  case EX_CANTCREAT:
    code = EX_TEMPFAIL;		
    break;
#endif
  case -1:			
    code = EX_CANTCREAT;	
    break;
  default:
    break;
  }
  return code;			
}
int fail ( char * string , int code ) { mm_log ( string , ERROR ) ; switch ( code ) { #if T case EX_USAGE : case EX_OSERR : case EX_SOFTWARE : case EX_NOUSER : case EX_CANTCREAT : code = EX_TEMPFAIL ; break ; #endif case -1 : code = EX_CANTCREAT ; break ; default : break ; } return code ; }
Report an error
 Accepts: string to output
Report an error Accepts : string to output
/* pass up the string */ /* coerce these to TEMPFAIL */ /* quota failure... */ /* ...really returns this code */ /* error code to return */