mirror of
https://git.sr.ht/~rjarry/aerc
synced 2026-02-17 11:28:16 +01:00
Have individual message handlers return errors to the central handleAction switch instead of posting Done or Error messages themselves. The switch now dispatches the appropriate response based on the return value: Done for nil, Error for regular errors, Unsupported or Cancelled for the respective sentinel errors. Add support for types.ErrNoop to signal that an operation had no effect and should not produce a Done response. Replace the local errUnsupported variable with the standard types.ErrUnsupported sentinel. In flag and mark handlers (handleAnsweredMessages, handleForwardedMessages, handleFlagMessages), return immediately on error instead of continuing the loop. This lets the central handler report the error consistently. Remove the currentSortCriteria field since it is no longer used. Signed-off-by: Robin Jarry <robin@jarry.cc> Reviewed-by: Simon Martin <simon@nasilyan.com> |
||
|---|---|---|
| .. | ||
| container.go | ||
| message.go | ||
| search.go | ||
| worker.go | ||