Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maildir hooks #8

Open
jaromil opened this issue Oct 28, 2015 · 0 comments
Open

Maildir hooks #8

jaromil opened this issue Oct 28, 2015 · 0 comments

Comments

@jaromil
Copy link
Member

jaromil commented Oct 28, 2015

Support a hooks file in maildirs, which may contain functions() with predefined names which will be executed by filters as maildir events occurr, i.e.

called every time a mail is added

every-new-mail() { cat $1 | distribute "Groups/close-friends" } 

the distribute function above refiles the message for the whole group.

called at end of filtering if folder changed

when-maildir-changes() { publish $1 }

the publish function above rebuilds html pages.

So basically two main events, one for each mail added the other after any number of mails have been filed into the folder, arguments will provide relative paths to new mail(s).

The first application for this will be the implementation of the "autonomous mailinglist" feature allowing anyone to setup a mailinglist on any client or server running jaromail: every-new-mail() will trigger a distribute() event to another email address or a group collecting mail addresses. The distribute() function is a standard Jaro Mail auxiliary function available in the hooks, it supports settings on the path inside the $JAROMAILDIR configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant