Skip to content

Commit ae65a82

Browse files
committed
Stop trying to send mail for late weights
1 parent c982775 commit ae65a82

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

facebook/Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ RAW_DEST:="raw"
3131
# dry-run mode: generate all files, but do not post them anywhere, and disable all emails to outside parties.
3232
DRY:=yes
3333
ifeq ($(DRY),yes)
34-
EMAIL_SEND:=echo -e "Would send mail: echo -e \"Subject: $${SUBJECT}\n\n$${MSG}\" | sendmail $(DELPHI_SURVEY_EMAIL_USER)"
3534
SFTP_POST:=echo -e "Would run: sshpass -p $(DELPHI_SURVEY_SFTP_PASSWORD) sftp $(SFTP_OPTIONS) -b <(echo -e \"\$${BATCH}\") -P 2222 $(DELPHI_SURVEY_SFTP_USER)\n$${BATCH}"
3635
DRY_MESSAGE:="[DRY-RUN] "
3736
else
38-
EMAIL_SEND:=echo -e "Subject: $${SUBJECT}\n\n$${MSG}" | sendmail $(DELPHI_SURVEY_EMAIL_USER)
3937
SFTP_POST:=sshpass -p $(DELPHI_SURVEY_SFTP_PASSWORD) sftp $(SFTP_OPTIONS) -b <(echo -e "$${BATCH}") -P 2222 $(DELPHI_SURVEY_SFTP_USER)
4038
endif
4139

@@ -121,10 +119,8 @@ $(WEIGHTS): $(TODAY)
121119
MAX_WEIGHTED=`$(MAX_WEIGHTED)`; \
122120
EXPECTED_MAX_WEIGHTED=`date --date='$(TODAY) -3 day' +'%Y%m%d'`; \
123121
if [[ $$EXPECTED_MAX_WEIGHTED -gt $$MAX_WEIGHTED ]]; then \
124-
MSG="Expected most recent file: $$EXPECTED_MAX_WEIGHTED\nActual most recent file: $$MAX_WEIGHTED"; \
125-
echo "WARNING: $${MSG}" | tr "\n" ";" >> $(MESSAGES); \
126-
SUBJECT="[fb-cmu-cvid] Weights are stale"; \
127-
$(EMAIL_SEND) ;\
122+
MSG="Expected most recent file: $$EXPECTED_MAX_WEIGHTED; Actual most recent file: $$MAX_WEIGHTED"; \
123+
echo "WARNING: $${MSG}" >> $(MESSAGES); \
128124
fi
129125

130126
dev: delphiFacebook_1.0.tar.gz

0 commit comments

Comments
 (0)