Skip to content

Commit 2a55798

Browse files
committed
send no mail notifications on first run
1 parent b019f4d commit 2a55798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MailWebsiteChanges.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def pollWebsites():
260260

261261
subject = '[' + site['shortname'] + '] ' + parseResult['titles'][i]
262262
print(' ' + subject)
263-
if config.enableMailNotifications:
263+
if config.enableMailNotifications and len(fileContents) > 0:
264264
sendmail(receiver, subject, content, (site.get('type', 'html') == 'html'), site['uri'])
265265

266266
if config.enableRSSFeed:

0 commit comments

Comments
 (0)