]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_task: Add missing received types
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 7 Feb 2019 14:21:32 +0000 (14:21 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 7 Feb 2019 14:21:32 +0000 (14:21 +0000)
src/lua/lua_task.c

index b216eda69e66a13b98a828df6b8793c8b383382b..f40a036fe69c9abedc2768cb36e24b809644f51d 100644 (file)
@@ -2410,6 +2410,15 @@ lua_task_get_received_headers (lua_State * L)
                                case RSPAMD_RECEIVED_IMAP:
                                        proto = "imap";
                                        break;
+                               case RSPAMD_RECEIVED_HTTP:
+                                       proto = "http";
+                                       break;
+                               case RSPAMD_RECEIVED_LOCAL:
+                                       proto = "local";
+                                       break;
+                               case RSPAMD_RECEIVED_MAPI:
+                                       proto = "mapi";
+                                       break;
                                case RSPAMD_RECEIVED_UNKNOWN:
                                default:
                                        proto = "unknown";