[GitHub] dimidd commented on issue #447: Import from a local json file

2018-05-14 Thread GitBox
dimidd commented on issue #447: Import from a local json file
URL: 
https://github.com/apache/incubator-ponymail/issues/447#issuecomment-388775302
 
 
   I see, instead, would it be possible somehow to infer it from the existing 
code
   automagically? E.g. add an optional flag `--dump-json` to `import-mbox.py`.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] dimidd commented on issue #447: Import from a local json file

2018-05-14 Thread GitBox
dimidd commented on issue #447: Import from a local json file
URL: 
https://github.com/apache/incubator-ponymail/issues/447#issuecomment-388775302
 
 
   I see, would it be possible somehow to infer it from the existing code
   automagically? E.g. add an optional flag `--dump-json` to `import-mbox.py`.
   
   2018-05-14 13:43 GMT+03:00 sebbASF :
   
   > As I noted earlier, the JSON format depends on ES and the schema (and
   > possibly other aspects of how PonyMail uses ES). It's not guaranteed 
stable.
   >
   > I think it would be quite a lot of work to define a format that is
   > guaranteed not to change.
   >
   > —
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub
   > 
,
   > or mute the thread
   > 

   > .
   >
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] dimidd commented on issue #447: Import from a local json file

2018-05-14 Thread GitBox
dimidd commented on issue #447: Import from a local json file
URL: 
https://github.com/apache/incubator-ponymail/issues/447#issuecomment-388771950
 
 
   Nothing, I just don't know what should be the exact format of the JSON.
   E.g. how to set the list-id that the emails belong to.
   
   2018-05-14 13:22 GMT+03:00 Daniel Gruno :
   
   > What's preventing you from using the JSON format archiver.py pushes to ES?
   > You should be able to just push documents manually
   >
   > —
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub
   > 
,
   > or mute the thread
   > 

   > .
   >
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] dimidd commented on issue #447: Import from a local json file

2018-05-14 Thread GitBox
dimidd commented on issue #447: Import from a local json file
URL: 
https://github.com/apache/incubator-ponymail/issues/447#issuecomment-388768756
 
 
   In my use case, I load a PST file, convert to json, do some processing, and
   would love to have an option to load a json directly.
   
   2018-05-14 13:15 GMT+03:00 sebbASF :
   
   > ElasticSearch (ES) requires JSON for its API.
   > The JSON format is based on the requirements of ES and the database schema.
   > Both may change.
   >
   > import-mbox already supports various standard mailbox formats (mbox, IMAP
   > etc)
   >
   > Personally, I don't see a use case for defining another mail input format.
   >
   > —
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub
   > 
,
   > or mute the thread
   > 

   > .
   >
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services