-
Notifications
You must be signed in to change notification settings - Fork 0
netmail-open/detach
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NetGovern Detach service ======================== This is a free/libre sucessor to Netmail Secure's Attachment Stripping Agent. It consists of: - a RESTful detach API (node service) - a milter wrapper (in progress) - some quick tests Configuration ------------- ``` STORE or --store - CAS to use when storing stripped attachments. PORT or --port - which port detach should listen on. TRANSFORM or --transform - URL transform service REPLACE or --replace - simple hostname substitution ``` Requirements ------------ - npm - typescript Build ----- Build the "api" source directory: $ cd api $ npm install $ tsc Run --- Once the detach api service is built: $ cd api $ STORE=http://caspoorhost:3237 node . Use --- To strip attachments from a message, POST its RFC822 data to /detach/ : $ curl -H "Content-Type: text/plain" --data-binary @test.eml -X POST \ http://localhost:7001/detach/ >stripped.eml The message will then contain links instead of attachments. To restore the attachments, POST a stripped message to /reattach/ : $ curl -H "Content-Type: text/plain" --data-binary @stripped.eml -X POST \ http://localhost:7001/reattach/ >restored.eml For a simple reference implementation of a URL transform service, see test/transform.js
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published