Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
SaveConfig saves the given configuration to the config file.
Types ¶
type Config ¶
type Config struct {
ServiceProvider string `json:"service_provider"`
Email string `json:"email"`
Password string `json:"password"`
Name string `json:"name"`
}
Config stores the user's email configuration.
func LoadConfig ¶
LoadConfig loads the configuration from the config file.
func (*Config) IMAPServer ¶
IMAPServer returns the IMAP server address based on the service provider. This is used to connect to the email provider's IMAP server. It returns an empty string if the service provider is not supported.
Click to show internal directories.
Click to hide internal directories.