auanasgheps / snapraid-aio-script

The definitive all-in-one SnapRAID script on Linux. Diff, sync, scrub are things of the past. Manage SnapRAID and much, much more!
GNU General Public License v3.0
231 stars 37 forks source link

disable email notification altogether #37

Closed tristan-k closed 2 years ago

tristan-k commented 2 years ago

Is there a way to disable email notification altogether or just send it once a month even though the script runs daily?

auanasgheps commented 2 years ago

There is no specific way, but I can add a logic to disable emails altogether.

Are you sure you don't want emails? Do you rely on other methods?

In the meantime you can set a filter/forward rule within your email account to delete emails coming from SnapRAID.

tristan-k commented 2 years ago

Yeah, I'm sure. I'm checking the status with a self-hosted healthchecks.io docker container. I would appreciate the option because I already do alot of email filtering.

auanasgheps commented 2 years ago

Ok, please try to remove your emails from the config file like this

# address where the output of the jobs will be emailed to.
EMAIL_ADDRESS=""
FROM_EMAIL_ADDRESS=""

The script logic should not error out and will not send an email if these fields are empty, but please check because I haven't tested.

tristan-k commented 2 years ago

Thanks for clearing that up, this works great.