{"id":19535673,"url":"https://github.com/miyako/4d-plugin-message-file-drop","last_synced_at":"2026-06-19T18:33:21.632Z","repository":{"id":147172392,"uuid":"138240037","full_name":"miyako/4d-plugin-message-file-drop","owner":"miyako","description":"Accept drag and drop of messages from Microsoft Outlook","archived":false,"fork":false,"pushed_at":"2023-08-30T21:06:19.000Z","size":33504,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T04:16:33.010Z","etag":null,"topics":["4d-plugin"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miyako.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-22T01:32:15.000Z","updated_at":"2022-09-13T03:31:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d97966f-91d6-43df-ae55-e3448843b280","html_url":"https://github.com/miyako/4d-plugin-message-file-drop","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/miyako/4d-plugin-message-file-drop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-message-file-drop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-message-file-drop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-message-file-drop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-message-file-drop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miyako","download_url":"https://codeload.github.com/miyako/4d-plugin-message-file-drop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-message-file-drop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34544404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["4d-plugin"],"created_at":"2024-11-11T02:19:31.374Z","updated_at":"2026-06-19T18:33:21.615Z","avatar_url":"https://github.com/miyako.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 4d-plugin-message-file-drop\nAccept drag and drop of messages from Microsoft Outlook\n\n![version](https://img.shields.io/badge/version-17%2B-3E8B93)\n![platform](https://img.shields.io/static/v1?label=platform\u0026message=win-64\u0026color=blue)\n[![license](https://img.shields.io/github/license/miyako/4d-plugin-message-file-drop)](LICENSE)\n![downloads](https://img.shields.io/github/downloads/miyako/4d-plugin-message-file-drop/total)\n\n**A similar solution for Mac is available**: [apple-file-promises](https://github.com/miyako/4d-plugin-apple-file-promises)\n\n## Syntax\n\n```\nACCEPT MESSAGE FILES (window;method{;context})\n```\n\nParameter|Type|Description\n------------|------------|----\nwindow|LONGINT|windowRef or ``0``\nmethod|TEXT|callback method(``$1:text;$2:text``)\ncontext|TEXT|any string (``$2`` passed to ``method``)\n\nConfigures the specified window to implement a custom [OLE drag and drop](https://msdn.microsoft.com/en-us/library/96826a87.aspx) feature, over-riding standard form events. \n\n**Note**: You can disable the custom \"OLE drag and drop\" feature by passing ``0`` to the command. However, it is not possible to restore standard drop events (from external source) for that window. \n\nWhen an email is dropped directly from Outlook, a VBA script is executed (``csript.exe``) which asks Outlook to export the selected messages to a temporary folder in ``.mht`` format. \n\nThe plugin is monitoring the temporary folder in a background thread. The specified callback method is executed when an ``.mht`` file is created.\n\n**Do not abort the callback method**. If you abort the execution context, the process will keep running but the method will not longer be called from the plugin until you reopen the structure file.\n\n---\n\n#### Technical Details \n\nT.B.C. \n\n#### Technical Details (previously)\n\nWhen Outlook exports an email in  ``.mht`` format, several file system events are generated:\n\n1. create \"name.mh_\"\n2. modify \"name.mh_\"\n3. rename from \"name.mh_\"\n4. rename to \"name.mht\" \n5. create \"~$name.mht\"\n6. modify \"~$name.mht\"\n7. remove \"~$name.mht\"\n\nIn addition, the script creates a new subfolder for each drop event.\n\nThe callback is called when the event is \"rename to\", not a folder, has the  extension \"mht\" and does not have the temporary file prefix (``~$``).\n\nThe callback method is also executed for standard file drop events. No name checks are performed in this instance. Multiple items call multiple events. However, when a folder with contents is dropped, on the path of the folder (not its sub contents) are reported.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2F4d-plugin-message-file-drop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiyako%2F4d-plugin-message-file-drop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2F4d-plugin-message-file-drop/lists"}