æ¦è¦
ã¿ãªããããã«ã¡ã¯ããã«ã¹ã¿ãã¯ã¨ã³ã¸ãã¢ã®é«ç¬ @takasehiromichi ã§ãã
æè¿ããã¦ã³ã¹ã¡ã¼ã«ã®å¯¾å¿ãè¡ãªã£ã¦ããã®ã§ããããã¦ã³ã¹ã¡ã¼ã«ã«ã¯SMTPã¹ãã¼ã¿ã¹ã³ã¼ããè¨è¼ããã¦ãã¾ãã
ãã®ã³ã¼ããå ã«ããã¦ã³ã¹ã®åå ãæ¥æ¬èªã§ãããããã«ããã°ã©ã ãä½æããã®ã§ãè¨äºã«ãããã¨æãã¾ãã
ãªããã½ã¼ã¹ã³ã¼ãã«ã¤ãã¦ã¯ãè¨äºæ«å°¾ã«è¨è¼ãã¾ãã
Simple Mail Transfer Protocol (SMTP) Enhanced Status Codes Registry
ã¾ããSMTPã¹ãã¼ã¿ã¹ã³ã¼ãã®ä»æ§ã確èªãã¾ãã
SMTPã¹ãã¼ã¿ã¹ã³ã¼ãã¯ãX.Y.Zã®å½¢å¼ã§è¨è¿°ãããClass Sub-CodesãSubject Sub-CodesãEnumerated Status Codesã®ä»æ§ã¨ãã¦ã¾ã¨ãããã¦ãã¾ãã
Xã«å½ããClass Sub-Codesã¯ã2ãæåã4ãæ°¸ç¶çã§ä¸æçãªé害ã5ãæä¹ çãªå¤±æã§ãã
Yã«å½ããSubject Sub-Codesã¯ãå¾è¿°ã®Enumerated Status Codesã§ç¶²ç¾ ã§ãããããç¹ã«è§£èª¬ãã¾ããã
Y, Zã«å½ããEnumerated Status Codesã¯ãYã¨Zã®å¤ã確èªãããã¨ã§ã詳細ãªèª¬æãå°åºãããã¨ãã§ãã¾ãã
ä¾ãã°ãããããã¡ã¼ã«ããã¯ã¹ããã£ã±ãã§ã¡ã¼ã«ãåä¿¡ã§ããªãã±ã¼ã¹ã¯ãX.2.2 ã§éä¿¡ãããããã¯Y=2ãZ=2ãªã®ã§ãX.2.2ãMailbox fullã該å½ãã説æã¨ãã¦ã¯ãThe mailbox is full because the user has exceeded a per-mailbox administrative quota or physical capacity. The general semantics implies that the recipient can delete messages to make more space available. This code should be used as a persistent transient failure.ãã¨ãªãã¾ãã
ãããæ¥æ¬èªã«ããã¨ããã¦ã¼ã¶ã¼ãã¡ã¼ã«ããã¯ã¹ãã¨ã®ç®¡çã¯ã©ã¼ã¿ã¾ãã¯ç©ç容éãè¶ ãããããã¡ã¼ã«ããã¯ã¹ããã£ã±ãã§ãã ä¸è¬çãªã»ãã³ãã£ã¯ã¹ã¯ãåä¿¡è ãã¡ãã»ã¼ã¸ãåé¤ãã¦ä½¿ç¨å¯è½ãªã¹ãã¼ã¹ãå¢ãããã¨ãã§ãããã¨ãæå³ãã¾ãã ãã®ã³ã¼ãã¯ãæ°¸ç¶çãªä¸æçãªé害ã¨ãã¦ä½¿ç¨ããå¿ è¦ãããã¾ãããã¨ãªããããããããããã表ç¾ã«ããã¨ããã¦ã¼ã¶ã¼ãã¡ã¼ã«ããã¯ã¹ãã¨ã®ç®¡çã¯ã©ã¼ã¿ã¾ãã¯ç©ç容éãè¶ ãããããã¡ã¼ã«ããã¯ã¹ããã£ã±ãã§ãããã¨ãªãã¾ãã
ãããä¸ã¤ä¸ã¤ã®ã«ã¼ã«ãã¨ã«å ¨ã¦ããããããæ¥æ¬èªã«ããã®ããå¾è¿°ã®ããã°ã©ã ã§ãã
ã¾ããä»å¾ãããã®ã«ã¼ã«ã«å¤æ´ã追å ããã£ã¦ãã¡ã³ããã³ã¹ããããããã«ãå ¨ã¦ã®ã«ã¼ã«ã«ã¯ã³ã¡ã³ããè¨è¼ãã¦ãã¾ããã©ã®ã«ã¼ã«ããX.Y.Zã®ã©ãã«è©²å½ããããã©ããªã¿ã¤ãã«ããã©ããªæ¥æ¬èªè¨³åæããè¨è¼ããreturnã§ããããããæ¥æ¬èªãè¿ãã¦ãã¾ãã
ã¾ããswitchã§ã¯ãªããããã¦if-elseã§è¨è¿°ãããã¨ã§ãè¤æ°è¡ã³ã¡ã³ããå ¥ãã¦ãè¦è¦çã«åé¡ãåºãªãããã«ãã¦ããã¾ãã
ã¾ã¨ã
ãããã£ãããã°ã©ã ã¯ãå¾ã å¹ãã¦ããã¿ã¤ããå¤ãã§ããå·¥æ°ãããã£ã¦ããã«è¦ãã¦ããå¾ããååã§ãããã¨ãå¤ãã®ã§ãç©æ¥µçã«åãæãã£ã¦ããããã§ãã