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".
Click to show internal directories.
Click to hide internal directories.