Email file name is the timestamp of received email (in microseconds). Example: 1466698612265640
, start with From - Thu Jun 23 18:16:52 2016
(Thu Jun 23 2016 18:16:52 GMT+0200 (CEST)
)
Use NodeJS:
// Note: this script not work properly if an email contains "\n\nFrom - "
const fs = require('fs');
const path = require('path');