mirror of
https://github.com/mjl-/mox.git
synced 2025-07-19 02:46:37 +03:00
imapclient: log traces of sensitive data with traceauth, and of bulk data with tracedata
Similar to the imapserver. This also fixes tracing of APPEND messages, which was completely absent before.
This commit is contained in:
@ -850,6 +850,7 @@ func (c *Conn) xliteral() []byte {
|
||||
sync := c.take('+')
|
||||
c.xtake("}")
|
||||
c.xcrlf()
|
||||
// todo: for some literals, read as tracedata
|
||||
if size > 1<<20 {
|
||||
c.xerrorf("refusing to read more than 1MB: %d", size)
|
||||
}
|
||||
|
Reference in New Issue
Block a user