# haraka-plugin-template **Repository Path**: mirrors_Dexus/haraka-plugin-template ## Basic Information - **Project Name**: haraka-plugin-template - **Description**: Clone me, to create a new Haraka plugin! - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status][ci-img]][ci-url] [![Code Climate][clim-img]][clim-url] [![Greenkeeper badge][gk-img]][gk-url] [![NPM][npm-img]][npm-url] # haraka-plugin-template Clone me, to create a new plugin! # Template Instructions These instructions will not self-destruct after use. Use and destroy. See also, [How to Write a Plugin](https://github.com/haraka/Haraka/wiki/Write-a-Plugin) and [Plugins.md](https://github.com/haraka/Haraka/blob/master/docs/Plugins.md) for additional plugin writing information. ## Create a new repo for your plugin Haraka plugins are named like `haraka-plugin-something`. All the namespace after `haraka-plugin-` is yours for the taking. Please check the [Plugins]() page and a Google search to see what plugins already exist. Once you've settled on a name, create the GitHub repo. On the repo's main page, click the _Clone or download_ button and copy the URL. Then paste that URL into a local ENV variable with a command like this: ```sh export MY_PLUGIN_NAME=haraka-plugin-SOMETHING export MY_PLUGIN_REPO=git@github.com:SOME_ORG/haraka-plugin-SOMETHING.git ``` Clone and rename the template repo: ```sh git clone git@github.com:haraka/haraka-plugin-template.git mv haraka-plugin-template $MY_PLUGIN_NAME cd $MY_PLUGIN_NAME git remote rm origin git remote add origin $MY_PLUGIN_REPO ``` Now you'll have a local git repo to begin authoring your plugin ## rename boilerplate Replaces all uses of the word `template` with your plugin's name. ./redress.sh [something] You'll then be prompted to update package.json and then force push this repo onto the GitHub repo you've created earlier. ## Enable Travis-CI testing - [ ] visit your [Travis-CI profile page](https://travis-ci.org/profile) and enable Continuous Integration testing on the repo - [ ] enable Code Climate. Click the _code climate_ badge and import your repo. # Add your content here ## INSTALL ```sh cd /path/to/local/haraka npm install haraka-plugin-template echo "template" >> config/plugins service haraka restart ``` ### Configuration If the default configuration is not sufficient, copy the config file from the distribution into your haraka config dir and then modify it: ```sh cp node_modules/haraka-plugin-template/config/template.ini config/template.ini $EDITOR config/template.ini ``` ## USAGE [ci-img]: https://travis-ci.org/haraka/haraka-plugin-template.svg [ci-url]: https://travis-ci.org/haraka/haraka-plugin-template [ci-win-img]: https://ci.appveyor.com/api/projects/status/CHANGETHIS?svg=true [ci-win-url]: https://ci.appveyor.com/project/haraka/haraka-CHANGETHIS [cov-img]: https://codecov.io/github/haraka/haraka-plugin-template/coverage.svg [cov-url]: https://codecov.io/github/haraka/haraka-plugin-template [clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-template/badges/gpa.svg [clim-url]: https://codeclimate.com/github/haraka/haraka-plugin-template [gk-img]: https://badges.greenkeeper.io/haraka/haraka-plugin-template.svg [gk-url]: https://greenkeeper.io/ [npm-img]: https://nodei.co/npm/haraka-plugin-template.png [npm-url]: https://www.npmjs.com/package/haraka-plugin-template