[midPoint] Email Notification

Jason Everling jeverling at bshp.edu
Wed Oct 29 19:07:56 CET 2014


That is great, It is not critical for deployment but how can get all the
text as plain text, I tried even without the HTML tags and it does not work.

So with what I wrote how should that look as plain text?

JASON

On Wed, Oct 29, 2014 at 12:59 PM, Ivan Noris <ivan.noris at evolveum.com>
wrote:

>  Hi Jason,
>
> the e-mail notifications don't support HTML now, just text/plain.
>
> I've created a new feature request for this:
> https://jira.evolveum.com/browse/MID-2072, currently targeted for
> midPoint 3.2.
>
> Is this feature critical for your deployment now? It is not difficult to
> implement, but to do it now would require a change in priorities of other
> tasks.
>
> Thank you,
> regards,
> Ivan
>
> p.s. After the issue is implemented, you would need to escape all special
> characters such as angle brackets, ampersands etc.
>
>
> On 10/29/2014 06:39 PM, Jason Everling wrote:
>
> That worked,
>
>  Final Question,
>
>  The below works but the following one after does not,
>
>  <bodyExpression>
>   <script>
>  <code>
>  "[IDM] Your username is: " + requestee?.getName()?.getOrig()
>  </code>
>  </script>
> </bodyExpression>
>
>  Can I include HTML code within, Does this look correct or how should it
> be constructed?
>
>  <bodyExpression>
>         <script>
>               <code>
>                    "<p> Welome to blah blah, the following below are links
> to the various resources you will use here</p>
>
>                      <p>Your Username is  +
> requestee?.getName()?.getOrig()</p>
>
>                       <p>You should login and should your password at
> http://www.example/com</p>
>
>                       <p>Link 1</p>
>                      <p>Link 2</p>
>                       <p>Link 3</p>"
>               </code>
>           </script>
> </bodyExpression>
>
>
>
> On Wed, Oct 29, 2014 at 10:30 AM, Ivan Noris <ivan.noris at evolveum.com>
> wrote:
>
>>  Hi Jason,
>>
>> try to escape each & by *&* that should do the trick. I.e. &&
>> becomes && I see the & in Pavol's email, maybe it got converted
>> in email clients somewhere between...
>>
>> Regards,
>> Ivan
>>
>>
>> On 10/29/2014 02:48 PM, Jason Everling wrote:
>>
>> Thanks for the follow up, the organization attribute would be fine for us
>> to use. I had tried this out but I cannot get it to save, I get an error
>> when saving
>>
>>  Caused by: org.xml.sax.SAXParseException; lineNumber: 82; columnNumber:
>> 46; The entity name must immediately follow the '&' in the entity reference.
>>
>>
>>  Code:
>>
>>  <notificationConfiguration>
>>        <handler>        <!-- branch for department 'A' -->
>>  <expressionFilter>
>>  <script>
>>                 <code>event.isUserRelated() &&
>>  requestee.getOrganization().size() == 1 &&
>>  requestee.getOrganization().get(0).getOrig() == 'GenEd'</code>
>>  </script>
>>  </expressionFilter>
>>  <accountPasswordNotifier>
>>  <name>New Account Notification</name>
>>  <operation>add</operation>
>>  <status>success</status>
>>  <recipientExpression>
>>  <script>
>>  <code>basic.getExtensionPropertyValue(requestee, 'http://whatever.com/my',
>> 'otherMailbox')</code>
>>  </script>
>>  </recipientExpression>
>>  <subjectExpression>
>>  <script>
>>  <code>"Welcome to the General Education Program"</code>
>>  </script>
>>  </subjectExpression>
>>  <bodyExpression>
>>  <script>
>>  <code>"[IDM] Your username is: " +
>> requestee?.getName()?.getOrig()</code>
>>  </script>
>>  </bodyExpression>
>>  <transport>mail</transport>
>>  </accountPasswordNotifier>
>>  </handler>
>>  <handler>    <!-- branch for department 'B' -->
>>  <expressionFilter>
>>  <script>
>>                 <code>event.isUserRelated() &&
>>  requestee.getOrganization().size() == 1 &&
>>  requestee.getOrganization().get(0).getOrig() == 'Info'</code>
>>  </script>
>>  </expressionFilter>
>>  <accountPasswordNotifier>
>>  <name>New Account Notification</name>
>>  <operation>add</operation>
>>  <status>success</status>
>>  <recipientExpression>
>>  <script>
>>  <code>basic.getExtensionPropertyValue(requestee, 'http://whatever.com/my',
>> 'otherMailbox')</code>
>>  </script>
>>  </recipientExpression>
>>  <subjectExpression>
>>  <script>
>>  <code>"Welcome to the Information Systems Program"</code>
>>  </script>
>>  </subjectExpression>
>>  <bodyExpression>
>>  <script>
>>  <code>"[IDM] Your username is: " +
>> requestee?.getName()?.getOrig()</code>
>>  </script>
>>  </bodyExpression>
>>  <transport>mail</transport>
>>  </accountPasswordNotifier>
>>  </handler>
>>  <!-- Universal For All
>>   <handler>
>>  <simpleUserNotifier>
>>              ... configuration common to all cases ...
>>  </simpleUserNotifier>
>>  </handler>
>>  -->
>>
>>         <mail>
>>
>> <redirectToFile>/var/log/tomcat7/mail-notifications.log</redirectToFile>
>>         </mail>
>>  </notificationConfiguration>
>>
>>
>>
>>   --
>>   Ing. Ivan Noris
>>   Senior Identity Management Engineer
>>   evolveum.com
>>   ___________________________________________
>>            "Idem per idem - semper idem Vix."
>>
>>
>> _______________________________________________
>> midPoint mailing list
>> midPoint at lists.evolveum.com
>> http://lists.evolveum.com/mailman/listinfo/midpoint
>>
>>
>
>
>
> CONFIDENTIALITY NOTICE:
> This e-mail together with any attachments is proprietary and confidential;
> intended for only the recipient(s) named above and may contain information
> that is privileged. You should not retain, copy or use this e-mail or any
> attachments for any purpose, or disclose all or any part of the contents to
> any person. Any views or opinions expressed in this e-mail are those of the
> author and do not represent those of the Baptist School of Health
> Professions. If you have received this e-mail in error, or are not the
> named recipient(s), you are hereby notified that any review, dissemination,
> distribution or copying of this communication is prohibited by the sender
> and to do so might constitute a violation of the Electronic Communications
> Privacy Act, 18 U.S.C. section 2510-2521. Please immediately notify the
> sender and delete this e-mail and any attachments from your computer.
>
>
> _______________________________________________
> midPoint mailing listmidPoint at lists.evolveum.comhttp://lists.evolveum.com/mailman/listinfo/midpoint
>
>
> --
>   Ing. Ivan Noris
>   Senior Identity Management Engineer
>   evolveum.com
>   ___________________________________________
>            "Idem per idem - semper idem Vix."
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>

-- 


CONFIDENTIALITY NOTICE:
This e-mail together with any attachments is proprietary and confidential; 
intended for only the recipient(s) named above and may contain information 
that is privileged. You should not retain, copy or use this e-mail or any 
attachments for any purpose, or disclose all or any part of the contents to 
any person. Any views or opinions expressed in this e-mail are those of the 
author and do not represent those of the Baptist School of Health 
Professions. If you have received this e-mail in error, or are not the 
named recipient(s), you are hereby notified that any review, dissemination, 
distribution or copying of this communication is prohibited by the sender 
and to do so might constitute a violation of the Electronic Communications 
Privacy Act, 18 U.S.C. section 2510-2521. Please immediately notify the 
sender and delete this e-mail and any attachments from your computer. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20141029/69575e01/attachment.htm>


More information about the midPoint mailing list