ESPEASY V2.0 Notifications Syntax

Moderators: BertB, rtenklooster, Voyager, Stuntteam, Martinus

Forum rules
You have entered the experimental forum, beware!!!
Message
Author
Sandominion
Normal user
Posts: 5
Joined: 02 Aug 2018, 12:36

Re: ESPEASY V2.0 Notifications Syntax

#21 Post by Sandominion » 12 Aug 2018, 12:51

Thanks for reading my Wiki artikle. I wasn't sure if somebody would be interested.
TD-er wrote:
11 Aug 2018, 13:11
A space can be used in texts, since very recent builds, but then you have to use quotes like "This is a body with spaces"
I am not sure how spaces are currently interpreted in the rules parser, but at least in the past it was translated into a "," which is essentially a parameter separator.
The body text in quotation marks works fine even inside Rules. I added it to the artikle. Thanks for the hint.

If you need to put more than one e-mail address in a header, for instance when you wish to send a message to several people at once, the addresses are separated with commas, like this (with "simple" addresses):

jsmith@example.net, mjones@example.org
That definitely does not work with ESPEasy Notifikation. I did many tests but the Email always goes out to the first Receiver only for example with filled in Receiver like:

TD-er
Normal user
Posts: 940
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESPEASY V2.0 Notifications Syntax

#22 Post by TD-er » 12 Aug 2018, 21:39

I guess that's somewhere inbetween a "bug" and a "very much desired feature" :)
Can you make an issue for it on Github?

Sandominion
Normal user
Posts: 5
Joined: 02 Aug 2018, 12:36

Re: ESPEASY V2.0 Notifications Syntax

#23 Post by Sandominion » 13 Aug 2018, 20:25

TD-er wrote:
12 Aug 2018, 21:39
I guess that's somewhere inbetween a "bug" and a "very much desired feature" :)
Can you make an issue for it on Github?
I agree that it’s not really a bug.
According to the SMTP-Syntax in https://tools.ietf.org/html/rfc5321#section-4.1.1 the command RECIPIENT (RCPT) “is used to identify an individual recipient of the mail data; multiple recipients are specified by multiple uses of this command.”

I took a look inside the SMTP handling inside sources of ESPEasy and found the piece of code responsible for setting together the string for RCPT. There is foreseen the command only once for the one-and-only recipient:
if (!NPlugin_001_MTA(client, String(F("RCPT TO:<")) + notificationsettings.Receiver + ">", F("250 "))) break;
Seems it would be necessary to seek the string for (different) separators and distinguish the receivers. For each optional receiver there needs to be an extra RCPT command.
Are you sure it’s worth to create an issue for that (if nobody else has asked this feature)?

The alternative is to mention it in the Wiki that only one Receiver is allowed and you can create another notification with a second Receiver.
What do you think?

TD-er
Normal user
Posts: 940
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESPEASY V2.0 Notifications Syntax

#24 Post by TD-er » 14 Aug 2018, 13:49

Just make an issue for it with your description of the request, just like you did here.
We also have to take a closer look at the size of some stored settings and how to use them.
This may be an excellent example how to improve it.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest