How to sync 2 folders on 2 remote computers via Email? -


it quite weird question first look, in case if work company or organization strict rules communicate outer world, not funny.

for example, it's usual when bank or enterprise company doesn't allow access inner resources outside, neither tunnel nor vpn possible, , way push information inner area email messages. email messages in such companies have several restrictions - e.g. "prohibited" or "dangerous" media content.

but looks doable setup kind of email bridge, when both sides - e.g. worker's laptop @ home , desktop computer in office - exchange data, syncing dedicated folders sending email messages each other. such bridge may deal messages eligible according company's policies.

i created such bridge , published in github: https://github.com/domax/email-bridge

in short words how works:

when application runs, first of scans ews inbox transport email, matching subject specific pattern and, if such emails found, extracts files attachments. waits new messages , same new matched emails. transport emails removed automatically.

just after email inbox scanned, application scans "outbox" folder. if there files names matched specific regexp pattern, these files gathered attachments new email message, , email message sent away specific subject. application waits new files in "outbox" folder , same new files there.

only files (not sub-folders) synchronized between computers. that's design limitation, b/c application's "inbox" , "outbox" folders purpose temporarily keep vcs (git) patches or bundles in fact plain file list, kind of file hierarchy support business of vcs.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -