Giter Club home page Giter Club logo

voynotices's Introduction

Voyager Notice Pre-processing

This tool preprocesses Voyager notice SIF files to email. The intent is to handle these notices on the server without requiring manual runs of Voyager Reporter.

See a comparable process autocirc from UTSA. This was created rather than reusing autocirc because we are primarily interested in automating Item Available notices without additional python dependencies.

Requirements

  • Voyager 9 or later (Voyager 10 tested)
    • Specifically, Voyager crcnotes version "09.1"
  • Perl 5 or later (Perl 5.24 tested)
  • Perl modules:
    • Mojo::Template
    • Email::Sender
    • Email::MIME
    • Email::Address::XS
    • HTML::FormatText or HTML::WikiConverter::Markdown (if using HTML templates for email)
  • UTF-8 based email templates (sorry, too lazy to normalize UTF-8 Voyager data with another encoding)

Installation

Drop this in an arbitrary directory accessible by the voyager user.

Configuration / Customization

Edit the templates to customize your emails. Note that the templates are named by notice type (e.g. crcnotes type 01 is "crcnotes/01.tmpl").

The script uses a regular expression to identify whether the hostname contains the keyword "prod" to enable production email sending. Otherwise, the script munges the email address. This will need to be modified to your local hostname configurations and/or local test email domain.

Usage

Execute this as the voyager user, after the appropriate run of a cronjob created the notice file. Pipe in the notice file, and write out the results of this application to the new notice file. E.g.:

for n in $RPT_DIR/crcnotes.*.inp; do mv $n $n.preprocess; perl preprocess.pl < $n.preprocess > $n; done

Author / License

Written by Clinton Graham for the University of Pittsburgh. Copyright (c) University of Pittsburgh.

Released under a license of GPL v2 or later.

voynotices's People

Contributors

ctgraham avatar

Watchers

Brian Gregg avatar James Cloos avatar  avatar Willow Gillingham avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.