/* 1xxxx range - success */

#define MSG1000READY "Bongo store server ready"
#define MSG1000BYE "Bongo store signing off.\r\n"
#define MSG1000LOGINOK "1000 Login ok\r\n"
#define MSG1000FLAGSET "Flags set"
#define MSG1000FLAGINFO "Current Flags"
#define MSG1000OK "1000 OK\r\n"
#define MSG1000DELETED "Deleted message"
#define MSG1000ENTRYRMVD "1000 Queue entry removed\r\n"
#define MSG1000ENTRYMADE "1000 Queue entry created\r\n"
#define MSG1000SPACE_AVAIL "1000 %lu bytes free\r\n"
#define MSG1000USER "1000 User selected\r\n"
#define MSG1000MBOX "Mailbox selected [Read-Write]"
#define MSG1020MBOX "Mailbox selected [Read-Only]"
#define MSG1000ADBK "Address Book selected [Read-Write]"
#define MSG1020ADBK "Address Book selected [Read-Only]"
#define MSG1000MBOXMADE "1000 Mailbox created\r\n"
#define MSG1000CALENDARMADE "1000 Calendar created\r\n"
#define MSG1000ADBKMADE "1000 Address book created\r\n"
#define MSG1000EQUE "1000 Queue state entered\r\n"
#define MSG1000NOTIMP "1000 Command not implemented\r\n"
#define MSG1000PARAMSET "1000 Parameters set\r\n"
#define MSG1000FEATUREAVAIL "1000 Feature available\r\n"
#define MSG1000PURGED "Message(s) purged"
#define MSG1000SALVAGED "Message(s) salvaged"
#define MSG1000QWATCHMODE "1000 Entering queue watch mode\r\n"
#define MSG1000RQWATCHMODE "1000 Returning to queue watch mode\r\n"
#define MSG1000STARTTLS "1000 Begin TLS negotiations\r\n"
#define MSG1000STORED "1000 %s Created\r\n"
#define MSG1000DELIVERYOK "1000 Message delivered, send next recipient\r\n"

/* 2xxx - success, info follows */

#define MSG2001CAPA "2001-NMAP1 NMAP Protocol Version 1\r\n2001-NMAP2 NMAP Protocol Version 2\r\n2001-ULIST Novonyx Userlist Extension\r\n2001-SLIST Novonyx Serverlist Extension\r\n2001-ADBK Address Book Extension\r\n2001-FEAT Feature Lookup Extension\r\n"
#define MSG2001CAPATLS "2001-TLS Encryption Extension\r\n"
#define MSG2002DELETED "Message(s) have been marked deleted"
#define MSG2002SENDVALUE "2002-Send value.\r\n"
#define MSG2003MULTIEND "2003-Multipart End\r\n"
#define MSG2004RFC822END "2004-RFC822 End\r\n"
#define MSG2005FEATURENOTAVAIL "2005-Feature not available\r\n"
#define MSG2006READYPURGE "2006-Standing by to purge.\r\n"
#define MSG2053SENDRECIP "2053 Send Recipients\r\n"
#define MSG2054SENDDOCS "2054 Send Documents\r\n"

/* 3xxx - protocol error */

#define MSG3000UNKNOWN "3000 Unknown command\r\n"
#define MSG3010BADARGC "3010 Wrong number of arguments\r\n"
#define MSG3011BADGUIDLEN "3011 Incorrect GUID length\r\n"
#define MSG3011BADGUID "3011 Invalid GUID\r\n"
#define MSG3012BADQSTATE "3012 Wrong state; not waiting on queues\r\n"
#define MSG3013BADQSTATE "3013 Wrong state; waiting on queues\r\n"
#define MSG3014REQNOTALLOWED "3014 Request not allowed!%s\r\n"
#define MSG3015BADDOCTYPE "3015 Document type not allowed\r\n"
#define MSG3015NOTCOLL "3015 Not a collection\r\n"
#define MSG3015BADCOLLTYPE "3015 Not a collection type\n"
#define MSG3016DOCTYPESYNTAX "3016 Invalid document type.\r\n"
#define MSG3017BADINTARG "3017 Integer expected\r\n"
#define MSG3017INTARGRANGE "3017 Integer outside allowed range.\r\n"
#define MSG3018BADPATH "3018 Bad path\r\n"
#define MSG3019BADCOLLNAME "3019 Bad collection name\r\n"
#define MSG3020BADRANGEARG "3020 Range expected.\r\n"
#define MSG3021BADRANGESIZE "3020 Range too large.\r\n"
#define MSG3021BADISODATETIME "3021 Invalid ISO date-time.\r\n"
#define MSG3021BADICALDATETIME "3021 Invalid icalendar date-time.\r\n"
#define MSG3021BADDATETIME "3021 Invalid date-time.\r\n"
#define MSG3021BADDATERANGE "3021 Invalid date range.\r\n"
#define MSG3022BADSYNTAX "3022 Syntax error\r\n"
#define MSG3023USERNAMETOOLONG "3023 Username too long\r\n"
#define MSG3024NOTCAL "3024 Not a calendar\r\n"
#define MSG3025BADACL "3025 Invalid ACL\r\n"
#define MSG3026BADALARM "2026 Invalid Alarm\r\n"
#define MSG3240NOAUTH "3240 I don't know you you are. AUTH first!\r\n"
#define MSG3240BADSTATE "3240 Command issued in wrong state\r\n"
#define MSG3241NOUSER "3241 No user selected. USER first!\r\n"
#define MSG3242BADAUTH "3242 Bad authentication!\r\n"
#define MSG3243MANAGERONLY "3243 Restricted command.  MANAGER first!\r\n"
#define MSG3244BADPROPNAME "3244 Restricted property name.\r\n"
#define MSG3244BADPROPLENGTH "3244 Missing or invalid property length.\r\n"
#define MSG3245NOPROP "3245 Property not found: %s\r\n"
#define MSG3243NOSTORE "3243 No store selected. Use STORE command first!\r\n"
#define MSG3247STORE "3247 Store selected. Unselect store first.\r\n"

/* 4xxx - error */

#define MSG4000OUTOFRANGE "4000 Number out of range\r\n"
#define MSG4000CANTUNLOCKENTRY "4000 Queue entry unknown or already being processed\r\n"
#define MSG4100STORENOTFOUND "4100 Store not found.\r\n"
#define MSG4120USERLOCKED "4120 User currently locked, try later!\r\n"
#define MSG4120BOXLOCKED "4120 Mailbox currently locked, try later!\r\n"
#define MSG4120CALLOCKED "4120 Calendar currently locked, try later!\r\n"
#define MSG4120DBLOCKED "4120 DB currently locked, try later!\r\n"
#define MSG4120ADBKLOCKED "4120 Mailbox currently locked, try later!\r\n"
#define MSG4120INDEXLOCKED "4120 Index currently locked, try later!\r\n"
#define MSG4201FILENOTFOUND "4201 File not found\r\n"
#define MSG4202CONVERSATIONNOTFOUND "4202 Conversation not found\r\n"
#define MSG4220NOMSG "4220 No message with that ID\r\n"
#define MSG4220NOCONTACT "4220 No contact with that ID\r\n"
#define MSG4220NOENTRY "4220 No entry with that ID\r\n"
#define MSG4220NOGUID "4220 No document with that GUID\r\n"
#define MSG4220USERSHARES "4220 User owns shared resources.\r\n"
#define MSG4221USERDONE "4221 User already selected. RSET first!\r\n"
#define MSG4221MBOXLOCKED "4221 Mailbox currently locked - try later!\r\n"
#define MSG4221ADBKLOCKED "4221 Address Book currently locked - try later!\r\n"
#define MSG4221MBOXSHARED "4221 Mailbox is shared\r\n"
#define MSG4221CALSHARED "4221 Calendar is shared\r\n"
#define MSG4221ADBKSHARED "4221 Calendar is shared\r\n"
#define MSG4221COLLWATCHED "4221 Collection is being watched\r\n"
#define MSG4224NOENTRY "4224 Queue entry does not exist\r\n"
#define MSG4224CANTREAD "4224 Can't read store data\r\n"
#define MSG4224CANTWRITE "4224 Can't write store data\r\n"
#define MSG4224NOSTORE "4224 User store doesn't exist\r\n"
#define MSG4224BADSTORE "4224 Can't open store\r\n"
#define MSG4224NOMBOX "4224 Mailbox doesn't exist\r\n"
#define MSG4224NOCSTORE "4224 Calendar doesn't exist\r\n"
#define MSG4224NOADBK "4224 Address Book doesn't exist\r\n"
#define MSG4224CANTREADMBOX "4224 Can't read mailbox\r\n"
#define MSG4224CANTREADADBK "4224 Can't read address book\r\n"
#define MSG4224CANTREADSQL "4224 Can't read sql\r\n"
#define MSG4224CANTREADCAL "4224 Can't read calendar\r\n"
#define MSG4224CANTREADADBK "4224 Can't read address book\r\n"
#define MSG4224NOUSER "4224 User does not exist\r\n"
#define MSG4224NOCOLLECTION "4224 Collection doesn't exist\r\n"
#define MSG4224NODOCUMENT "4224 Document doesn't exist\r\n"
#define MSG4226MBOXEXISTS "4226 Mailbox already exists\r\n"
#define MSG4226CALEXISTS "4226 Calendar already exists\r\n"
#define MSG4226BADEMAIL "4226 Unable to parse email\r\n"
#define MSG4226BADEVENT "4226 Unable to parse event\r\n"
#define MSG4226ADBKEXISTS "4226 Calendar already exists\r\n"
#define MSG4226QUEUEOPEN "4226 Queue entry still open\r\n"
#define MSG4227OLDVERSION "4227 Document has different version\r\n"
#define MSG4228CANTWRITEMBOX "4228 Can't write to mailbox\r\n"
#define MSG4228CANTWRITECAL "4228 Can't write to calendar\r\n"
#define MSG4228CANTWRITEADBK "4228 Can't write to calendar\r\n"
#define MSG4229CANTWRITEMBOX "4229 Can't write to message store\r\n"
#define MSG4229CANTWRITEADBK "4229 Can't write to contact store\r\n"
#define MSG4230PATHTOOLONG "4230 Path exceeds allowed length\r\n"
#define MSG4231USEREMOVE "4231 Not a document, use REMOVE to delete a collection\r\n"
#define MSG4231USEPURGE "4231 Not a collection, use PURGE to delete a document\r\n"
#define MSG4240NOPERMISSION "4240 Permission denied\r\n"
#define MSG4241AUTHDONE "4241 Already authenticated\r\n"
#define MSG4242AUTHREQUIRED "4242 NMAP <%s>\r\n"
#define MSG4260NOQENTRY "4260 No queue entry open, try QCREA\r\n"
#define MSG4261NODOMAIN "4261 No queue entry with that domain\r\n"
#define MSG4262NOTFOUND "4262 Field/Content not found\r\n"
#define MSG4242NOTALLOWED "4242 Not allowed via FLAG\r\n"
#define MSG4243READONLY "4243 Read-only message store\r\n"
#define MSG4244NOTSUPPORTED "4244 Not supported\r\n"
#define MSG5244USERLOOKUPFAILURE "5244 Failed looking up User %s\r\n"

/* 5xxx - internal errors */

#define MSG5000ERROR "5000 Error requested\r\n"
#define MSG5001NOMEMORY "5001 Out of memory\r\n"
#define MSG5002SHUTDOWN "5002 Server shutting down\r\n"
#define MSG5004NOCONNECTIONS "5004 Too many connections; try later\r\n"
#define MSG5005DBLIBERR "5005 DB library error\r\n"
#define MSG5006CORRUPTACL "5006 Internal error: corrupt ACL\r\n"
#define MSG5007INDEXLIBERR "5007 Index library error\r\n"
#define MSG5008NOALARMDB "5008 Couldn't open alarm db\r\n"

#define MSG5201FILEREADERR "5201 Error Reading File\r\n"
#define MSG5220QUOTAERR "5220 User Quota exceeded\r\n"
#define MSG5230NOMEMORYERR "5230 Out of memory\r\n"
#define MSG5004INTERNALERR "5004 Internal error\r\n"
#define MSG5202TMPWRITEERR "5202 Couldn't open temporary file.\r\n"
#define MSG5221SPACELOW "5221 Free disk space too low\r\n"
#define MSG5260DELIVERYFAILED "5260 Delivery failed with status %d\r\n"

#define MSG5920FATALDBLIBERR "5920 Fatal DB Library error.\r\n"

/* 6xxx - oob messages */

#define MSG6000RESET "6000 RESET too many events! try LIST\r\n"
