summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-04-22 17:55:05 +0200
committerRicardo Wurmus <rekado@elephly.net>2020-04-22 17:55:05 +0200
commit67566dd084312e9eab0d03df46aaec8785623720 (patch)
tree2d550ec642bf638499a7979e934e8466807b10da
parentc17148518446d5b0627413c3364d4c615ab573c3 (diff)
messages: sender: Return unknown sender in the expected format.
-rw-r--r--mumi/messages.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/mumi/messages.scm b/mumi/messages.scm
index 5a6ca34..6354e3c 100644
--- a/mumi/messages.scm
+++ b/mumi/messages.scm
@@ -74,7 +74,8 @@ yet. Return new results alongside cached results."
(define-public (sender message)
(or (and=> (header message 'from) first)
- "unknown sender"))
+ '((name . "Unknown sender")
+ (address . "unknown"))))
(define-public sender-email
(compose extract-email sender))