aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account/export-mbox.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account/export-mbox.go')
-rw-r--r--commands/account/export-mbox.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/commands/account/export-mbox.go b/commands/account/export-mbox.go
index 3e86fc19..b68e1cc5 100644
--- a/commands/account/export-mbox.go
+++ b/commands/account/export-mbox.go
@@ -96,7 +96,10 @@ func (ExportMbox) Execute(aerc *widgets.Aerc, args []string) error {
done <- false
case *types.FullMessage:
mu.Lock()
- mboxer.Write(file, msg.Content.Reader, "", t)
+ err := mboxer.Write(file, msg.Content.Reader, "", t)
+ if err != nil {
+ logging.Warnf("failed to write mbox: %v", err)
+ }
for i, uid := range uids {
if uid == msg.Content.Uid {
uids = append(uids[:i], uids[i+1:]...)