Skip to content

Commit 97077a6

Browse files
committed
One-line results for other commands for clean logs
1 parent 9472bb5 commit 97077a6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

common.inc.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,14 @@ function deliver_email(&$mail, $email, $isOutputVerbose = false) {
183183

184184
if ($isOutputVerbose) {
185185
flush();
186-
echo " [✉️ ".$email["id"]." / ".$email["to"];
186+
echo " [#".$email["id"]." / ".$email["to"];
187187
}
188188

189189
setsendingnow($email["id"]);
190190

191191
if ($email["is_sendingnow"]) {
192192
if ($isOutputVerbose)
193-
echo " / Already being sent.";
193+
echo " / Already being sent";
194194
add_incidence($email["id"], "Try to send an email that is already being sent");
195195
$logger->add_log_incidence(
196196
array
@@ -204,7 +204,7 @@ function deliver_email(&$mail, $email, $isOutputVerbose = false) {
204204
}
205205

206206
if (!checkemail($email["to"])) {
207-
echo " / Bad recipient.";
207+
echo " / Bad recipient";
208208
add_incidence($email["id"], "Incorrect recipient email address: ".$email["to"]);
209209
cancel($email["id"]);
210210
$logger->add_log_incidence(
@@ -219,7 +219,7 @@ function deliver_email(&$mail, $email, $isOutputVerbose = false) {
219219

220220
if (!checkemail($email["from"])) {
221221
if ($isOutputVerbose)
222-
echo " / Bad sender.";
222+
echo " / Bad sender";
223223
add_incidence($email["id"], "Incorrect sender email address: ".$email["from"]);
224224
cancel($email["id"]);
225225
$logger->add_log_incidence
@@ -238,7 +238,7 @@ function deliver_email(&$mail, $email, $isOutputVerbose = false) {
238238
if (isset($blacklisted_emails))
239239
if (is_array($blacklisted_emails) and in_array(strtolower(trim($email["to"])), $blacklisted_emails)) {
240240
if ($isOutputVerbose)
241-
echo " / Black listed.";
241+
echo " / Black listed";
242242
add_incidence($email["id"], "Recipient is on the black list: ".$email["to"]);
243243
cancel($email["id"]);
244244
$logger->add_log_incidence(
@@ -386,7 +386,7 @@ function deliver_email(&$mail, $email, $isOutputVerbose = false) {
386386
)
387387
);
388388
if ($isOutputVerbose)
389-
echo " / No more attempts.";
389+
echo " / No more attempts";
390390
}
391391
else {
392392
update_error_count($email["id"], $email["error_count"]+1);
@@ -399,7 +399,7 @@ function deliver_email(&$mail, $email, $isOutputVerbose = false) {
399399
$incidence_text
400400
));
401401
if ($isOutputVerbose)
402-
echo " / Scheduled for one more try.";
402+
echo " / Scheduled for one more try";
403403
}
404404

405405
} else {

0 commit comments

Comments
 (0)