aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c
index 8b16dca7f..6cb0ce677 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -92,6 +92,7 @@
#define USER_HEADER "User"
#define PASS_HEADER "Pass"
#define JSON_HEADER "Json"
+#define HOSTNAME_HEADER "Hostname"
#define DELIVER_TO_HEADER "Deliver-To"
static GList *custom_commands = NULL;
@@ -509,6 +510,10 @@ parse_header (struct worker_task *task, f_str_t * line)
task->helo = memory_pool_fstrdup (task->task_pool, line);
debug_task ("read helo header, value: %s", task->helo);
}
+ else if (g_ascii_strncasecmp (headern, HOSTNAME_HEADER, sizeof (HOSTNAME_HEADER) - 1) == 0) {
+ task->hostname = memory_pool_fstrdup (task->task_pool, line);
+ debug_task ("read hostname header, value: %s", task->hostname);
+ }
else {
msg_info ("wrong header: %s", headern);
res = FALSE;