mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-07 06:57:37 +03:00
Use Unix socket to pass IMAP updates from maddyctl to daemon
There is abstraction 'updates pipe' defined for future use with configuration involving IMAP data replication (e.g. multiple nodes with maddy instances + PostgreSQL replicas + S3 bucket for messages). However, for the case of local SQLite3 DB, limited UDS-based implementation is provided. It solves the problem of maddyctl not being able to tell the server about modifications it makes. Alternative to this approach would be to have server actually perform operations and maddyctl being a dumb API client, but this requires a lot more complex IPC interface and will not work when the server is down.
This commit is contained in:
parent
9e5bb288b3
commit
a574b9fbb2
10 changed files with 431 additions and 11 deletions
|
@ -233,7 +233,6 @@ func msgsRemove(be Storage, ctx *cli.Context) error {
|
|||
}
|
||||
|
||||
if !ctx.Bool("yes") {
|
||||
fmt.Fprintf(os.Stderr, "Currently, it is unsafe to remove messages from mailboxes used by connected clients, continue?")
|
||||
if !clitools.Confirmation("Are you sure you want to delete these messages?", false) {
|
||||
return errors.New("Cancelled")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue