--- test/map-client | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/map-client b/test/map-client index e8c42e3..756ebb8 100755 --- a/test/map-client +++ b/test/map-client @@ -51,6 +51,8 @@ def parse_options(): help="Deletes the message from the folder") parser.add_option("--mark-undeleted", action="store", dest="mark_msg_undeleted", help="Undeletes the message") + parser.add_option("-u", "--update-inbox", action="store_true", dest="update_inbox", + help="Checks for new mails") return parser.parse_args() @@ -145,6 +147,9 @@ class MapClient: msg = dbus.Interface(obj, "org.bluez.obex.Message") msg.SetProperty (prop, flag); + def update_inbox(self): + self.map.UpdateInbox() + if __name__ == '__main__': @@ -196,5 +201,7 @@ if __name__ == '__main__': if options.mark_msg_undeleted is not None: map_client.set_message_property(options.mark_msg_undeleted, "Deleted", False) + if options.update_inbox: + map_client.update_inbox() mainloop.run() -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html