@@ -38,7 +38,7 @@ template<typename T> static inline T *sa_get_item(std::vector<T> &arr, size_t id
3838 return idx < arr.size () ? &arr[idx] : nullptr ;
3939}
4040
41- int pop3_cmd_handler_capa (std::vector<std::string> &&argv, pop3_context *pcontext)
41+ int cmdh_capa (std::vector<std::string> &&argv, pop3_context *pcontext)
4242{
4343 char buff[256 ];
4444
@@ -59,7 +59,7 @@ int pop3_cmd_handler_capa(std::vector<std::string> &&argv, pop3_context *pcontex
5959 return DISPATCH_CONTINUE;
6060}
6161
62- int pop3_cmd_handler_stls (std::vector<std::string> &&argv, pop3_context *pcontext)
62+ int cmdh_stls (std::vector<std::string> &&argv, pop3_context *pcontext)
6363{
6464 if (pcontext->connection .ssl != nullptr )
6565 return 1703 ;
@@ -71,7 +71,7 @@ int pop3_cmd_handler_stls(std::vector<std::string> &&argv, pop3_context *pcontex
7171 return 1724 ;
7272}
7373
74- int pop3_cmd_handler_user (std::vector<std::string> &&argv, pop3_context *pcontext)
74+ int cmdh_user (std::vector<std::string> &&argv, pop3_context *pcontext)
7575{
7676 size_t string_length = 0 ;
7777 char buff[1024 ];
@@ -110,7 +110,7 @@ static bool store_owner_over(const char *actor, const char *mbox, const char *mb
110110 return ok;
111111}
112112
113- int pop3_cmd_handler_pass (std::vector<std::string> &&argv, pop3_context *pcontext)
113+ int cmdh_pass (std::vector<std::string> &&argv, pop3_context *pcontext)
114114{
115115 if (argv.size () < 2 )
116116 return 1704 ;
@@ -191,7 +191,7 @@ int pop3_cmd_handler_pass(std::vector<std::string> &&argv, pop3_context *pcontex
191191 return 1700 ;
192192}
193193
194- int pop3_cmd_handler_stat (std::vector<std::string> &&argv, pop3_context *pcontext)
194+ int cmdh_stat (std::vector<std::string> &&argv, pop3_context *pcontext)
195195{
196196 size_t string_length = 0 ;
197197 char temp_buff[1024 ];
@@ -207,7 +207,7 @@ int pop3_cmd_handler_stat(std::vector<std::string> &&argv, pop3_context *pcontex
207207 return DISPATCH_CONTINUE;
208208}
209209
210- int pop3_cmd_handler_uidl (std::vector<std::string> &&argv, pop3_context *pcontext)
210+ int cmdh_uidl (std::vector<std::string> &&argv, pop3_context *pcontext)
211211{
212212 size_t string_length = 0 ;
213213 char temp_buff[1024 ];
@@ -254,7 +254,7 @@ int pop3_cmd_handler_uidl(std::vector<std::string> &&argv, pop3_context *pcontex
254254 return 1707 ;
255255}
256256
257- int pop3_cmd_handler_list (std::vector<std::string> &&argv, pop3_context *pcontext)
257+ int cmdh_list (std::vector<std::string> &&argv, pop3_context *pcontext)
258258{
259259 size_t string_length = 0 ;
260260 char temp_buff[1024 ];
@@ -300,7 +300,7 @@ int pop3_cmd_handler_list(std::vector<std::string> &&argv, pop3_context *pcontex
300300 return 1707 ;
301301}
302302
303- int pop3_cmd_handler_retr (std::vector<std::string> &&argv, pop3_context *pcontext)
303+ int cmdh_retr (std::vector<std::string> &&argv, pop3_context *pcontext)
304304{
305305 if (argv.size () < 2 )
306306 return 1704 ;
@@ -339,7 +339,7 @@ int pop3_cmd_handler_retr(std::vector<std::string> &&argv, pop3_context *pcontex
339339 return DISPATCH_DATA;
340340}
341341
342- int pop3_cmd_handler_dele (std::vector<std::string> &&argv, pop3_context *pcontext)
342+ int cmdh_dele (std::vector<std::string> &&argv, pop3_context *pcontext)
343343{
344344 if (argv.size () < 2 )
345345 return 1704 ;
@@ -360,7 +360,7 @@ int pop3_cmd_handler_dele(std::vector<std::string> &&argv, pop3_context *pcontex
360360 return 1700 ;
361361}
362362
363- int pop3_cmd_handler_top (std::vector<std::string> &&argv, pop3_context *pcontext)
363+ int cmdh_top (std::vector<std::string> &&argv, pop3_context *pcontext)
364364{
365365 if (argv.size () < 2 )
366366 return 1704 ;
@@ -392,7 +392,7 @@ int pop3_cmd_handler_top(std::vector<std::string> &&argv, pop3_context *pcontext
392392 return DISPATCH_DATA;
393393}
394394
395- int pop3_cmd_handler_quit (std::vector<std::string> &&argv, pop3_context *pcontext)
395+ int cmdh_quit (std::vector<std::string> &&argv, pop3_context *pcontext)
396396{
397397 size_t string_length = 0 ;
398398 char temp_buff[1024 ];
@@ -441,7 +441,7 @@ int pop3_cmd_handler_quit(std::vector<std::string> &&argv, pop3_context *pcontex
441441
442442}
443443
444- int pop3_cmd_handler_rset (std::vector<std::string> &&argv, pop3_context *pcontext)
444+ int cmdh_rset (std::vector<std::string> &&argv, pop3_context *pcontext)
445445{
446446 if (argv.size () != 1 )
447447 return 1704 ;
@@ -451,14 +451,14 @@ int pop3_cmd_handler_rset(std::vector<std::string> &&argv, pop3_context *pcontex
451451 return 1700 ;
452452}
453453
454- int pop3_cmd_handler_noop (std::vector<std::string> &&argv, pop3_context *pcontext)
454+ int cmdh_noop (std::vector<std::string> &&argv, pop3_context *pcontext)
455455{
456456 if (argv.size () != 1 )
457457 return 1704 ;
458458 return 1700 ;
459459}
460460
461- int pop3_cmd_handler_else (std::vector<std::string> &&argv, pop3_context *pcontext)
461+ int cmdh_else (std::vector<std::string> &&argv, pop3_context *pcontext)
462462{
463463 /* command not implement*/
464464 return 1703 ;
0 commit comments