Append the recipient to a list of those whereby mail delivery failed
This commit is contained in:
parent
27ed30a815
commit
b299bd2515
|
@ -552,6 +552,10 @@ public final class ButterflyClient : Thread
|
|||
recipients ~= recipient.str();
|
||||
}
|
||||
|
||||
|
||||
/* List of server's failed to deliver to */
|
||||
string[] failedRecipients;
|
||||
|
||||
/* Send the mail to each of the recipients */
|
||||
foreach(string recipient; recipients)
|
||||
{
|
||||
|
@ -656,6 +660,10 @@ public final class ButterflyClient : Thread
|
|||
{
|
||||
deliveryFailed:
|
||||
writeln("Error delivering to server "~domain);
|
||||
|
||||
/* TODO: Make a list of all the servers we failed to deliver to */
|
||||
failedRecipients~=domain;
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue