__msgc_ui_parse_mmsto_uri(cd, svc_handle, (const char *)uri);
} else if (g_str_has_prefix(uri, MSG_BUNDLE_VALUE_FILE_URI)) { /* URI : file */
__msgc_ui_parse_file_uri(cd, svc_handle, (const char *)uri);
+ } else if (g_str_has_prefix(uri, "/")) {
+ cd->attachlist = make_tokenize_list((const char *)uri, COMPOSER_BUNDLE_ATTACH_TOKEN);
+ if (cd->attachlist)
+ msg_ui_composer_body_items_add(cd);
} else {
- D_EMSG("Not supported mime type");
+ D_EMSG("Not supported URI type");
return;
}
} else {
D_MSG("cb is NULL");
return NULL;
}
+ } else if (g_str_has_prefix(uri, "/")) {
+ if (service_create(&svc_handle) < 0 || svc_handle == NULL) {
+ D_EMSG("service_create() is failed !!");
+ return NULL;
+ }
+
+ D_MSG("APPSVC ATTACHMENT = [%s]", uri);
+ service_add_extra_data(svc_handle, MSG_BUNDLE_KEY_ATTACHFILE, uri);
} else {
- D_MSG("Not supported mime type");
+ D_MSG("Not supported URI type");
return NULL;
}
} else {