mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 11:04:38 +03:00
webadmin: add single-line form for looking up a cid for a received id
This commit is contained in:
@ -2217,3 +2217,10 @@ func (Admin) TLSRPTSuppressExtend(ctx context.Context, id int64, until time.Time
|
||||
err := tlsrptdb.SuppressUpdate(ctx, id, until)
|
||||
xcheckf(ctx, err, "updating reporting address in suppresslist")
|
||||
}
|
||||
|
||||
// LookupCid turns an ID from a Received header into a cid as used in logging.
|
||||
func (Admin) LookupCid(ctx context.Context, recvID string) (cid string) {
|
||||
v, err := mox.ReceivedToCid(recvID)
|
||||
xcheckf(ctx, err, "received id to cid")
|
||||
return fmt.Sprintf("%x", v)
|
||||
}
|
||||
|
Reference in New Issue
Block a user