From 5a886ce7f82d5add6fdbf17a6ed698f13abb748d Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 5 Apr 2015 20:12:58 +0100 Subject: [PATCH] received_protocol --- TODO | 11 +++++++---- doc/doc-txt/experimental-spec.txt | 2 +- src/src/smtp_in.c | 1 + test/log/4201 | 4 ++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/TODO b/TODO index 6cce9a6f5..cca33151f 100644 --- a/TODO +++ b/TODO @@ -23,23 +23,26 @@ to-Alabel convert of helo name ++ helo-time option handling ++ conversion of utf-8 domains for DNS rfc5890 -- MSA mode: convert on forward? +--- mua-wrapper +--- acl control? dsn handling rfc6533 logging -- international msg +++ - international msg - presentation of local-part in log -- a log option? encoding of local_part -Recieved-by header tracking info -- WITH protocol types get UTF8 prefix -- use for logging also +++ Recieved-by header tracking info +++ - WITH protocol types get UTF8 prefix +++ - use for logging also forwarding checks rfc6530 7.1 -3- - rcpt-time rejects get 533 mailbox name not allowed - mail-time rejects get 550 mailbox unavailable - bounces (see dsn handling) +flag in spool file ++ expansions for to- and from-Alabel ? bug1567 diff --git a/doc/doc-txt/experimental-spec.txt b/doc/doc-txt/experimental-spec.txt index 59dd44ea1..79b21fe39 100644 --- a/doc/doc-txt/experimental-spec.txt +++ b/doc/doc-txt/experimental-spec.txt @@ -1291,7 +1291,7 @@ The option allow_utf8_domains is set to true for this message, but all DNS lookups are converted to a-label form. Log lines and Received-by: header lines will aquire a "utf8" -prefix on the 'with' element, eg. utf8esmtp. +prefix on the protocol element, eg. utf8esmtp. Expansion operators: ${utf8_domain_to_alabel:str} diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index 2f1a5d623..eb22233ca 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -4005,6 +4005,7 @@ while (done <= 0) { DEBUG(D_receive) debug_printf("smtputf8 requested\n"); message_smtputf8 = allow_utf8_domains = TRUE; + received_protocol = string_sprintf("utf8%s", received_protocol); } break; #endif diff --git a/test/log/4201 b/test/log/4201 index 29ce53d48..299952090 100644 --- a/test/log/4201 +++ b/test/log/4201 @@ -1,6 +1,6 @@ 1999-03-02 09:44:33 exim x.yz daemon started: pid=pppp, no queue runs, listening for SMTP on port 1225 -1999-03-02 09:44:33 10HmaX-0005vi-00 <= someone@some.domain H=(client) [127.0.0.1] P=esmtp S=sss for userx@test.ex -1999-03-02 09:44:33 10HmaY-0005vi-00 <= ليهمابتكلموشعربي؟@czech.Pročprostěnemluvíčesky.com H=(client) [127.0.0.1] P=esmtp S=sss for userx@test.ex +1999-03-02 09:44:33 10HmaX-0005vi-00 <= someone@some.domain H=(client) [127.0.0.1] P=utf8esmtp S=sss for userx@test.ex +1999-03-02 09:44:33 10HmaY-0005vi-00 <= ليهمابتكلموشعربي؟@czech.Pročprostěnemluvíčesky.com H=(client) [127.0.0.1] P=utf8esmtp S=sss for userx@test.ex 1999-03-02 09:44:33 Start queue run: pid=pppp -qq 1999-03-02 09:44:33 10HmaX-0005vi-00 => :blackhole: R=localuser 1999-03-02 09:44:33 10HmaX-0005vi-00 Completed -- 2.25.1