gwi

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2023 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

gwi contains the email handler for interacting with gwi.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GWIConfig

type GWIConfig struct {
	Root     string
	Commands map[string]func(email interfaces.Email) error
}

GWIConfig is used to configure the GWI interface for dovel. Root is the same root as in GWI: the path to the repositories. Commands lets you add functions that will run for each received email, the key of the map specifies a trigger in the form "key!". That is, if the email body starts with key! then the command key is run.

func (GWIConfig) GwiEmailHandler

func (g GWIConfig) GwiEmailHandler(email interfaces.Email) error

GwiEmailHandler saves emails to the correct repo using the subject to separate them. Subject fiel must be of form "[%s] %s".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL