-
Notifications
You must be signed in to change notification settings - Fork 2
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
Do not send a rejection reply in case of auto mails #5
base: master
Are you sure you want to change the base?
Conversation
Why not combine both in 1 PR? |
Since we are talking about two extensions with two repositories (combodo/combodo-email-synchro.git and combodo/itop-standard-email-synchro.git) I thought this is not possible, is it? |
Oh whoops, missed that 😄 |
@@ -1201,6 +1202,7 @@ EOF | |||
$oRawEmail->SendAsAttachment($sReplyTo, $sReplyFrom, $sReplySubject, $sReplyBody); | |||
|
|||
$this->sLastError .= " - Replied to sender on ".date('r'); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation is different compared to the surrounding code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ec6e5a7
to
0e72f77
Compare
Hello Lars, I'll check this PR on friday, would you update/rebase you branch on master in the meantime? Thanks |
0e72f77
to
f1b782f
Compare
Hello Lars, We reviewed the PR today it seems that the new method is only used for unknown callers, what about auto-reply of known callers? Edit: What I meant if that from our point of view it seems that this auto reply management could be applied in other use cases. We won't ask you to implement them, we were just wondering if you encountered them. |
$sReplyTo = $oEmail->sCallerEmail; | ||
$aTo = $oRawEmail->GetTo(); | ||
$sReplyFrom = $aTo[0]['email']; | ||
$this->Trace("From: ".$sReplyFrom."\nTo: ".$sReplyTo."\n".$sReplySubject."\n\n".$sReplyBody); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->Trace("From: ".$sReplyFrom."\nTo: ".$sReplyTo."\n".$sReplySubject."\n\n".$sReplyBody); |
f1b782f
to
27feacb
Compare
Hi @Molkobain , you are right the method For this small use case "unknown caller" I have implemented it because it was the most urgent use case for us: With out this implementation we got sometime endless loop between iTop (rejection reply) an the mail server (auto-reply):
Hope I could make my point clear :-) |
Yes perfect thanks! |
Accepted during functional review. Feature will always be used for unknown callers. |
Prevent endless email loops by not sending a rejection reply for auto replies.
Is PR is based on PR#12 in combodo-email-synchro