config

package
v0.0.0-...-48d6722 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: GPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Database string

	ImapHost string
	User     string
	Password string

	SpamassassinHost string

	RspamdController string
	RspamdPassword   string

	DryRun bool

	MoveSpam      bool
	DeleteSpam    bool
	SpamFolder    string
	AppendReports bool
	ReportFolder  string

	CheckFolders []string

	SpamLearnFolders []string
	HamLearnFolders  []string
	DeleteLearned    bool

	Loglevel *string
}

func ReadConfig

func ReadConfig(filename string) (*Config, error)

Jump to

Keyboard shortcuts

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