<div dir="ltr"><div dir="ltr"><div><br></div><div>Thanks, now it works.</div><div>But it seems that :message string (of notify command) is limited to 255 chars.</div><div>Is there any chance to change limit to 512 ?<br></div><div><br></div><div>require ["body","enotify","variables","foreverypart","mime","extracttext"];<br><br>foreverypart<br>{<br>    if header :mime :type :is "Content-Type" "text"<br>    {<br>        extracttext :first 512 "body";<br>        break;<br>    }<br>}<br><br>if not header :contains "subject" "*"<br>{<br>    notify :importance "3" :message "${body}" "mailto:<a href="mailto:test@example.com">test@example.com</a>";<br>}<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 16, 2018 at 2:53 PM Stephan Bosch <<a href="mailto:stephan@rename-it.nl">stephan@rename-it.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Op 15-11-2018 om 23:54 schreef Bambero:<br>
> Hi,<br>
><br>
> I want to send notification like this:<br>
><br>
> if body :text :matches "*" {<br>
>            notify :importance "3"<br>
>                :message "[NOTIFY] ${1}"<br>
>                "mailto:<a href="mailto:test@example" target="_blank">test@example</a> <mailto:<a href="mailto:test@example" target="_blank">test@example</a>>,com";<br>
> }<br>
><br>
> The notification works but the variable ${1} seems to be empty.<br>
><br>
> But in this case:<br>
><br>
> if header :matches "Subject" "*" {<br>
>            notify :importance "3"<br>
>                :message "[NOTIFY] ${1}"<br>
>                "mailto:<a href="mailto:test@example" target="_blank">test@example</a> <mailto:<a href="mailto:test@example" target="_blank">test@example</a>>,com";<br>
> }<br>
><br>
> Everything works correct.<br>
<br>
<a href="https://tools.ietf.org/html/rfc5173#section-6" rel="noreferrer" target="_blank">https://tools.ietf.org/html/rfc5173#section-6</a><br>
<br>
Use the extracttext extension instead:<br>
<br>
<a href="https://tools.ietf.org/html/rfc5703#section-7" rel="noreferrer" target="_blank">https://tools.ietf.org/html/rfc5703#section-7</a><br>
<br>
Regards,<br>
<br>
Stephan.<br>
</blockquote></div>