From: Mohammed Sadiq <sadiq@sadiqpk.org>
To: linux-bluetooth@vger.kernel.org
Cc: Mohammed Sadiq <sadiq@sadiqpk.org>
Subject: [PATCH BlueZ] obexd/map: Populate new messages with event data
Date: Thu, 26 Nov 2026 15:24:39 +0530 [thread overview]
Message-ID: <20261126095439.2113609-1-sadiq@sadiqpk.org> (raw)
notifications for new messages shall contain various details which are
already being parsed by mns.c, but are ignored when creating the message
object.
Fill new messages with those details from the notification event received,
if available.
---
obexd/client/map.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/obexd/client/map.c b/obexd/client/map.c
index 6702aa333..e9dc198e2 100644
--- a/obexd/client/map.c
+++ b/obexd/client/map.c
@@ -2069,7 +2069,16 @@ static void map_handle_new_message(struct map_data *map,
if (msg)
g_hash_table_remove(map->messages, &event->handle);
- map_msg_create(map, event->handle, event->folder, event->msg_type);
+ msg = map_msg_create(map, event->handle, event->folder,
+ event->msg_type);
+
+ if (msg) {
+ parse_datetime(msg, event->datetime);
+ parse_subject(msg, event->subject);
+ parse_sender(msg, event->sender_name);
+ if (event->priority)
+ parse_priority(msg, event->priority);
+ }
}
static void map_handle_status_changed(struct map_data *map,
--
2.47.3
next reply other threads:[~2026-11-26 9:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 9:54 Mohammed Sadiq [this message]
2026-11-26 15:11 ` [BlueZ] obexd/map: Populate new messages with event data bluez.test.bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261126095439.2113609-1-sadiq@sadiqpk.org \
--to=sadiq@sadiqpk.org \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox