From 52a89428f3295d35db7bfddc3d7dd28d93e36159 Mon Sep 17 00:00:00 2001 From: "Brian J. Tarricone" Date: Mon, 5 Feb 2024 12:03:57 -0800 Subject: [PATCH] Update sample config --- sample-config.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/sample-config.yaml b/sample-config.yaml index a5dd940..ffca934 100644 --- a/sample-config.yaml +++ b/sample-config.yaml @@ -7,7 +7,7 @@ user_id: "@mybebot:example.com" # Password for Matrix user. password: "secret-matrix-account-password" # All Gitlab-specific settings are under here. -gitlab: +gitlab_webhook: # Optional prefix to serve the webhook path under (default is empty string). url_prefix: "/bebot" # Default Matrix room to publish Gitlab events to. @@ -58,3 +58,28 @@ gitlab: "gitlab.example.com/myuser/some-other-less-cool-app": token: "kljaslkdjaklsdjalksd" # This repo uses the default events and room. +# The mail_archive configuration section allows you to set up bebot to publish +# messages based on RSS feeds from mail-archive.com. +mail_archive: + # List of rooms that will be published to by default, unless overridden by + # a per-list config. + default_rooms: + - "#some-room:example.com" + - "#some-other-room:example.com" + # How often bebot will fetch the RSS feed to check for updates, in seconds. + update_interval: 60 + # A directory where bebot can store state, such as the data of the last + # entry in the RSS feed it has seen. + state_dir: "/var/lib/bebot/mail-archive-state" + # A list of mailing lists. + lists: + # This is the list name as is displayed in mail-archive.com URLS. + - name: "my-list@example.com" + # Disable publishing a matrix message for replies sent to the list + # (default true). This isn't perfect, and can only guess if a message + # is a reply based on the subject line. + publish_on_replies: false + # An optional list of rooms to publish to. If not specified, the + # default_rooms setting above will be used. + rooms: + - "#yet-some-other-room:example.com"