aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-05-19 17:34:04 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-05-19 17:34:04 +0400
commit57832154742f76265c5b8778b52785d2da968be4 (patch)
tree9cf5c32ecd4c486cc8ee1e8f8118c4b89210c1d7
parent3e07b8e4513adc5dd5765071f061ab661d44d071 (diff)
downloadrspamd-57832154742f76265c5b8778b52785d2da968be4.tar.gz
rspamd-57832154742f76265c5b8778b52785d2da968be4.zip
* Add 'User' header that is used by exim MTA
-rw-r--r--src/protocol.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c
index 132cba039..2cd025287 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -80,6 +80,7 @@
#define RCPT_HEADER "Rcpt"
#define QUEUE_ID_HEADER "Queue-ID"
#define ERROR_HEADER "Error"
+#define USER_HEADER "User"
/*
* Reply messages
*/
@@ -322,6 +323,15 @@ parse_header (struct worker_task *task, f_str_t *line)
return -1;
}
break;
+ case 'u':
+ case 'U':
+ if (strncasecmp (headern, USER_HEADER, sizeof (USER_HEADER) - 1) == 0) {
+ /* XXX: use this header somehow */
+ }
+ else {
+ return -1;
+ }
+ break;
default:
msg_info ("parse_header: wrong header: %s", headern);
return -1;