aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;