diff options
| author | Bobby <[email protected]> | 2026-03-08 03:06:23 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-03-08 03:06:23 +0530 |
| commit | caf265e7050edefa64ecf7e13828ec9636bce867 (patch) | |
| tree | 6bb8554dbb34695a74c2dca556bf512998cf62ab /models/alias.go | |
| parent | cca905d35412f1549400fc3d1aca6dc704d8cae6 (diff) | |
| download | dove-caf265e7050edefa64ecf7e13828ec9636bce867.tar.xz dove-caf265e7050edefa64ecf7e13828ec9636bce867.zip | |
Refactor configuration handling and add mail management features
- Removed dependency on messages package in TOML loading and parsing.
- Introduced new config constants and messages for better clarity and maintainability.
- Implemented mail user and mailbox management with corresponding controllers and views.
- Added new templates for mailboxes, mailbox creation, and user management.
- Enhanced logging and error handling throughout the application.
- Established a structured approach for applying default values in TOML configuration.
- Created new utility functions for SMTP and email handling.
Diffstat (limited to 'models/alias.go')
| -rw-r--r-- | models/alias.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/models/alias.go b/models/alias.go deleted file mode 100644 index 5b0dcb3..0000000 --- a/models/alias.go +++ /dev/null @@ -1,10 +0,0 @@ -package models - -import "gorm.io/gorm" - -type Alias struct { - gorm.Model - SourceAddress string `gorm:"uniqueIndex;not null" json:"source_address"` - MailboxID uint `gorm:"not null" json:"mailbox_id"` - Mailbox Mailbox `gorm:"foreignKey:MailboxID" json:"mailbox"` -} |
