mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
With the introduction of aliases, the queue may now be delivering mail to pipes. This patch implements pipe delivery. It uses a fixed 30s timeout for now, as these commands should really not take much time, and we don't want to overly complicate the configuration for now.
40 lines
599 B
Protocol Buffer
40 lines
599 B
Protocol Buffer
|
|
syntax = "proto3";
|
|
|
|
package queue;
|
|
|
|
import "github.com/golang/protobuf/ptypes/timestamp/timestamp.proto";
|
|
|
|
|
|
message Message {
|
|
// Message ID. Uniquely identifies this message, it is used for
|
|
// auditing and troubleshooting.
|
|
string ID = 1;
|
|
|
|
// The envelope for this message.
|
|
string from = 2;
|
|
repeated Recipient rcpt = 3;
|
|
bytes data = 4;
|
|
|
|
// Creation timestamp.
|
|
google.protobuf.Timestamp created_at_ts = 5;
|
|
}
|
|
|
|
message Recipient {
|
|
string address = 1;
|
|
|
|
enum Type {
|
|
EMAIL = 0;
|
|
PIPE = 1;
|
|
}
|
|
Type type = 2;
|
|
|
|
enum Status {
|
|
PENDING = 0;
|
|
SENT = 1;
|
|
FAILED = 2;
|
|
}
|
|
Status status = 3;
|
|
}
|
|
|