1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-01-30 04:30:56 +02:00

Bugfix: Fix search with existing emails

This commit is contained in:
Ralph Slooten 2023-03-04 23:25:55 +13:00
parent de0549e60a
commit eede2bff99

View File

@ -17,8 +17,8 @@ func searchParser(args []string, start, limit int) *sqlf.Stmt {
Select(`ID, Data, Tags, Read,
json_extract(Data, '$.To') as ToJSON,
json_extract(Data, '$.From') as FromJSON,
json_extract(Data, '$.Cc') as CcJSON,
json_extract(Data, '$.Bcc') as BccJSON,
IFNULL(json_extract(Data, '$.Cc'), '{}') as CcJSON,
IFNULL(json_extract(Data, '$.Bcc'), '{}') as BccJSON,
json_extract(Data, '$.Subject') as Subject,
json_extract(Data, '$.Attachments') as Attachments
`).