Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log overall response message when using PRDR #62

Closed
wants to merge 1 commit into from

Conversation

nomis
Copy link
Contributor

@nomis nomis commented Feb 4, 2018

When using PRDR, the "C=" log message only contains the PRDR response
and the overall response message (that typically contains the remote
message reference) is not logged.

The logged response is already capable of containing multiple lines
in the event that there is a multi-line response, so this change
appends the overall response to the PRDR response with a newline
between them.

The "C=" log message will therefore contain both responses:
=> ... PRDR C="250 PRDR R=postmaster@example.com acceptance\n250 id=1eiQ9X-0005Ra-I3 message accepted" QT=3s DT=0s
-> ... PRDR C="250 PRDR R=postmaster@example.net acceptance\n250 id=1eiQ9X-0005Ra-I3 message accepted" QT=3s DT=0s

When using PRDR, the "C=" log message only contains the PRDR response
and the overall response message (that typically contains the remote
message reference) is not logged.

The logged response is already capable of containing multiple lines
in the event that there is a multi-line response, so this change
appends the overall response to the PRDR response with a newline
between them.

The "C=" log message will therefore contain both responses:
=> ... PRDR C="250 PRDR R=<postmaster@example.com> acceptance\\n250 id=1eiQ9X-0005Ra-I3 message accepted" QT=3s DT=0s
-> ... PRDR C="250 PRDR R=<postmaster@example.net> acceptance\\n250 id=1eiQ9X-0005Ra-I3 message accepted" QT=3s DT=0s
@nomis nomis closed this Mar 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant