Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koreografeye-email

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koreografeye-email

A Koreografeye plugin to send an email to an address.

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Koreografeye Email plugin

A Koreografeye plugin to send an email to an address.

Install

yarn add koreografeye-email

Change the config.jsonld configuration file and add the plugin definition.

In @context add "https://linkedsoftwaredependencies.org/bundles/npm/koreografeye-email/^1.0.0/components/context.jsonld".

Add the plugin definition:

{
  "@id": "http://example.org/sendEmail",
  "@type": "SendEmailPlugin",
  "host": "mail.gmx.com",
  "port": 465,
  "secure": true,
  "user": "yourusername",
  "password": "********"
}

Usage

The Koreografeye N3 rules should produce a ex:sendEmail policy to trigger this plugin. An example N3 rule file is provided below:

@prefix ex:   <http://example.org/> .
@prefix as:   <https://www.w3.org/ns/activitystreams#> .
@prefix pol:  <https://www.example.org/ns/policy#> .
@prefix fno:  <https://w3id.org/function/ontology#> .
@prefix string: <http://www.w3.org/2000/10/swap/string#> .

{
  ?id a as:Update .
}
=>
{
  ex:MyEmailPolicy pol:policy [
      a fno:Execution ;
      fno:executes ex:sendEmail ;
      ex:to "patrick.hochstenbach@gmail.com" ;
      ex:from "patrick_hochstenbach@gmx.net" ;
      ex:subject "A new resource was created!" ;
      ex:body "You got a new notification"
  ] .
}.

Demo

When installing the source code from the https://github.com/eyereasoner/Koreografeye-Plugin one can run an email demo using the code example below:

# Run an orchestrator on the in/demo.ttl with rules/demo.n3
yarn orch
# Execute the resulting policy
yarn pol

where

  • in/demo.ttl is a demonstration Event Notification
  • rules/demo.n3 is a demonstration rule that defined what to do with the notification

FAQs

Package last updated on 08 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc