<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Send Custom (email) Notifications from scripts running on a Synology	</title>
	<atom:link href="https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/</link>
	<description>The Joys of Computing</description>
	<lastBuildDate>Fri, 11 Nov 2016 09:13:36 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>
	<item>
		<title>
		By: Valery Letroye		</title>
		<link>https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-215</link>

		<dc:creator><![CDATA[Valery Letroye]]></dc:creator>
		<pubDate>Fri, 11 Nov 2016 09:13:36 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/?p=1382#comment-215</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-214&quot;&gt;Pedro Hermida&lt;/a&gt;.

Indeed, the file is not there anymore... To be honest, I am not using notifications since a while now. But the easiest for you would be to edit an existing notification that is not currently used (Via DSM &#062; Control Panel &#062; Notification &#062; Advanced &#062; Edit Message).

[EDIT] I have just retested this tutorial on my DSM 6.0 and written a new post:&lt;a href=&quot;/send-custom-notifications-from-scripts-running-on-a-synology-new/&quot; rel=&quot;nofollow ugc&quot;&gt;see here&lt;/a&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-214">Pedro Hermida</a>.</p>
<p>Indeed, the file is not there anymore&#8230; To be honest, I am not using notifications since a while now. But the easiest for you would be to edit an existing notification that is not currently used (Via DSM &gt; Control Panel &gt; Notification &gt; Advanced &gt; Edit Message).</p>
<p>[EDIT] I have just retested this tutorial on my DSM 6.0 and written a new post:<a href="/send-custom-notifications-from-scripts-running-on-a-synology-new/" rel="nofollow ugc">see here</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pedro Hermida		</title>
		<link>https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-214</link>

		<dc:creator><![CDATA[Pedro Hermida]]></dc:creator>
		<pubDate>Mon, 07 Nov 2016 18:12:33 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/?p=1382#comment-214</guid>

					<description><![CDATA[Valery Letroye : Thanks for all the details and time invested. I am running DSM 6.0.2-8541 Update 2 on a DS214 for testing purposes.

I was able to find the &quot;mails&quot; file but I couldn&#039;t find the &quot;notification_category&quot;. I am looking for it on /usr/syno/synoman/webman/texts/ and even used &quot;find&quot; to no avail.

Do you know it the location has changed?]]></description>
			<content:encoded><![CDATA[<p>Valery Letroye : Thanks for all the details and time invested. I am running DSM 6.0.2-8541 Update 2 on a DS214 for testing purposes.</p>
<p>I was able to find the &#8220;mails&#8221; file but I couldn&#8217;t find the &#8220;notification_category&#8221;. I am looking for it on /usr/syno/synoman/webman/texts/ and even used &#8220;find&#8221; to no avail.</p>
<p>Do you know it the location has changed?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Stephane		</title>
		<link>https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-213</link>

		<dc:creator><![CDATA[Stephane]]></dc:creator>
		<pubDate>Wed, 23 Dec 2015 18:11:34 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/?p=1382#comment-213</guid>

					<description><![CDATA[Hi, 

Great work, thank you for your input ! 

I&#039;m playing around with a custom rsync script. How come, if I use for example 

/usr/syno/bin/synonotify S3RecoverError 

The different variables in my email are not replaced as expected (%HOSTNAME%, ...).

Thank you !]]></description>
			<content:encoded><![CDATA[<p>Hi, </p>
<p>Great work, thank you for your input ! </p>
<p>I&#8217;m playing around with a custom rsync script. How come, if I use for example </p>
<p>/usr/syno/bin/synonotify S3RecoverError </p>
<p>The different variables in my email are not replaced as expected (%HOSTNAME%, &#8230;).</p>
<p>Thank you !</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Valery Letroye		</title>
		<link>https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-212</link>

		<dc:creator><![CDATA[Valery Letroye]]></dc:creator>
		<pubDate>Sat, 14 Nov 2015 12:32:28 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/?p=1382#comment-212</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-211&quot;&gt;Gary&lt;/a&gt;.

First, you can vote for such a feature here: http://forum.synology.com/enu/viewtopic.php?f=3&#038;t=68074#p259601

Next, I don&#039;t have a script for that. But someone (you?) could write a script based on this: https://codesourcery.wordpress.com/2012/11/29/more-on-the-synology-nas-automatically-indexing-new-files/

The idea is similar: detect new files and send a mail, instead of triggering the indexing.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-211">Gary</a>.</p>
<p>First, you can vote for such a feature here: <a href="http://forum.synology.com/enu/viewtopic.php?f=3&#038;t=68074#p259601" rel="nofollow ugc">http://forum.synology.com/enu/viewtopic.php?f=3&#038;t=68074#p259601</a></p>
<p>Next, I don&#8217;t have a script for that. But someone (you?) could write a script based on this: <a href="https://codesourcery.wordpress.com/2012/11/29/more-on-the-synology-nas-automatically-indexing-new-files/" rel="nofollow ugc">https://codesourcery.wordpress.com/2012/11/29/more-on-the-synology-nas-automatically-indexing-new-files/</a></p>
<p>The idea is similar: detect new files and send a mail, instead of triggering the indexing.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gary		</title>
		<link>https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-211</link>

		<dc:creator><![CDATA[Gary]]></dc:creator>
		<pubDate>Sat, 14 Nov 2015 06:57:33 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/?p=1382#comment-211</guid>

					<description><![CDATA[Hi, 

Good topic, I got a question concerning a standard notification.

I would like to receive notification whenever a user upload their file(s) onto the Synology via File Station.

Any idea on how to find it as I cant locate this type of notification in the list of notifications.

Do you have any idea of which notification must be edited?

Thanks!

Regards,
Gary]]></description>
			<content:encoded><![CDATA[<p>Hi, </p>
<p>Good topic, I got a question concerning a standard notification.</p>
<p>I would like to receive notification whenever a user upload their file(s) onto the Synology via File Station.</p>
<p>Any idea on how to find it as I cant locate this type of notification in the list of notifications.</p>
<p>Do you have any idea of which notification must be edited?</p>
<p>Thanks!</p>
<p>Regards,<br />
Gary</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Valery Letroye		</title>
		<link>https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-210</link>

		<dc:creator><![CDATA[Valery Letroye]]></dc:creator>
		<pubDate>Tue, 02 Dec 2014 13:12:58 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/?p=1382#comment-210</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-209&quot;&gt;Chris Williams&lt;/a&gt;.

For sure security have been improved with DSM 5.1. But no idea if there are now restrictions like the one you suggest. I would connect on your NAS via Telnet and the user account running your Transmission script to try manually the command synonotify... Next, if no error message is displayed in the console, look into the &quot;logs&quot; to see if something wrong happened. synonotify logs its own errors there.

Regarding the text,   I noticed recently that if one has created a custom notification and modified its text via the Advanced tab, the text of the notification is still be available even after a DSM update (which usually reset the file &#039;mails&#039; and &#039;notification_category&#039;) . It means that this text is kept somewhere else. But I didn&#039;t investigate further...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-209">Chris Williams</a>.</p>
<p>For sure security have been improved with DSM 5.1. But no idea if there are now restrictions like the one you suggest. I would connect on your NAS via Telnet and the user account running your Transmission script to try manually the command synonotify&#8230; Next, if no error message is displayed in the console, look into the &#8220;logs&#8221; to see if something wrong happened. synonotify logs its own errors there.</p>
<p>Regarding the text,   I noticed recently that if one has created a custom notification and modified its text via the Advanced tab, the text of the notification is still be available even after a DSM update (which usually reset the file &#8216;mails&#8217; and &#8216;notification_category&#8217;) . It means that this text is kept somewhere else. But I didn&#8217;t investigate further&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris Williams		</title>
		<link>https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-209</link>

		<dc:creator><![CDATA[Chris Williams]]></dc:creator>
		<pubDate>Thu, 27 Nov 2014 17:13:30 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/?p=1382#comment-209</guid>

					<description><![CDATA[Dang.  This is no longer working for me since I upgraded to DSM 5.1.  I can run the synonotify command from the command line and the custom notifications work fine, but for some reason it doesn&#039;t work from my Transmission script that is called when a torrent is completed.  I wonder if they changed synonotify so that only the root user can use it?

Something else that&#039;s weird:  the text for the notification messages is no longer being read from the enu/mails file.  If I change a notification message using the web interface, the text is NOT updated in the mails file.]]></description>
			<content:encoded><![CDATA[<p>Dang.  This is no longer working for me since I upgraded to DSM 5.1.  I can run the synonotify command from the command line and the custom notifications work fine, but for some reason it doesn&#8217;t work from my Transmission script that is called when a torrent is completed.  I wonder if they changed synonotify so that only the root user can use it?</p>
<p>Something else that&#8217;s weird:  the text for the notification messages is no longer being read from the enu/mails file.  If I change a notification message using the web interface, the text is NOT updated in the mails file.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Valery Letroye		</title>
		<link>https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-208</link>

		<dc:creator><![CDATA[Valery Letroye]]></dc:creator>
		<pubDate>Mon, 10 Nov 2014 09:54:20 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/?p=1382#comment-208</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-207&quot;&gt;Valery Letroye&lt;/a&gt;.

I have submitted a feature request to Synology, to add official support for Custom Notifications... Here it is: http://forum.synology.com/enu/viewtopic.php?f=3&#038;t=92727]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-207">Valery Letroye</a>.</p>
<p>I have submitted a feature request to Synology, to add official support for Custom Notifications&#8230; Here it is: <a href="http://forum.synology.com/enu/viewtopic.php?f=3&#038;t=92727" rel="nofollow ugc">http://forum.synology.com/enu/viewtopic.php?f=3&#038;t=92727</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Valery Letroye		</title>
		<link>https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-207</link>

		<dc:creator><![CDATA[Valery Letroye]]></dc:creator>
		<pubDate>Sat, 08 Nov 2014 21:27:03 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/?p=1382#comment-207</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-205&quot;&gt;k13tas&lt;/a&gt;.

That’s a great finding! Especially since Synology is providing more and more frequent updates. I was myself looking how to use the “sed” command in a script to reinsert my custom notifications automatically after each update…

Starting from your finding, I did however some tests and noticed that you remark is not only true for modifications of native notifications but also for modifications of custom notifications. I.e.: if one has created a custom notification and modified its text via the Advanced tab, the text of the notification will still be available for sending Desktop notification even after a DSM update (even if not declared anymore in the file “mails”) ! The drawback is that it won’t be visible anymore in the Advanced tab because it’s not in the file “notification_category” due to the DSM upgrade… In addition, if I remember well, the “send” options are also reset after an upgrade (Reason why, using your trick, you have to customize an existing notification that has “Email” option checked by default). Conclusion: If custom notifications are not visible anymore in the Advanced tab, one could not re-enable the option to send it by Email – except if editing also the file /usr/syno/etc/notification/notification_filter.settings mentioned by Gagi… So, I definitively has to create a script using sed – or – send a request for the feature “Custom Notification” to Synology]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-205">k13tas</a>.</p>
<p>That’s a great finding! Especially since Synology is providing more and more frequent updates. I was myself looking how to use the “sed” command in a script to reinsert my custom notifications automatically after each update…</p>
<p>Starting from your finding, I did however some tests and noticed that you remark is not only true for modifications of native notifications but also for modifications of custom notifications. I.e.: if one has created a custom notification and modified its text via the Advanced tab, the text of the notification will still be available for sending Desktop notification even after a DSM update (even if not declared anymore in the file “mails”) ! The drawback is that it won’t be visible anymore in the Advanced tab because it’s not in the file “notification_category” due to the DSM upgrade… In addition, if I remember well, the “send” options are also reset after an upgrade (Reason why, using your trick, you have to customize an existing notification that has “Email” option checked by default). Conclusion: If custom notifications are not visible anymore in the Advanced tab, one could not re-enable the option to send it by Email – except if editing also the file /usr/syno/etc/notification/notification_filter.settings mentioned by Gagi… So, I definitively has to create a script using sed – or – send a request for the feature “Custom Notification” to Synology</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Valery Letroye		</title>
		<link>https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-206</link>

		<dc:creator><![CDATA[Valery Letroye]]></dc:creator>
		<pubDate>Sat, 08 Nov 2014 21:21:07 +0000</pubDate>
		<guid isPermaLink="false">/wordpress/?p=1382#comment-206</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-202&quot;&gt;Valery Letroye&lt;/a&gt;.

Ok... I had some time to look at this issue. In the file &quot;notification_category&quot;, there is one section for each filter. In my post, I said to look in that file for the following definition: {“group”:”Backup/Restore”,”name”:”NetBkpS3OK”,”title”:”Amazon S3 backup completed”}.

By default, we all look for the first occurrence, which is in the section &quot;All&quot; (As you can see at the beginning of the file: {&quot;All&quot;:.). So, to see the notification within the other filter, you have to add it next to each occurrence!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.BeatificaBytes.be/send-custom-email-notifications-from-scripts-running-on-a-synology/#comment-202">Valery Letroye</a>.</p>
<p>Ok&#8230; I had some time to look at this issue. In the file &#8220;notification_category&#8221;, there is one section for each filter. In my post, I said to look in that file for the following definition: {“group”:”Backup/Restore”,”name”:”NetBkpS3OK”,”title”:”Amazon S3 backup completed”}.</p>
<p>By default, we all look for the first occurrence, which is in the section &#8220;All&#8221; (As you can see at the beginning of the file: {&#8220;All&#8221;:.). So, to see the notification within the other filter, you have to add it next to each occurrence!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
