sandbox_csv.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Imapsync CSV online</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <!-- -->
  8. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="../S/style.css" type="text/css" />
  10. <link rel="license" href="https://imapsync.lamiral.info/NOLIMIT">
  11. <!-- -->
  12. </head>
  13. <body>
  14. <h1>Imapsync CSV online</h1>
  15. <p>
  16. This Imapsync CSV online service is a prototype, a working prototype.<br/>
  17. </p>
  18. Some explanations about this service:
  19. <ul>
  20. <li>The input textarea is multi-lines, each line describe a synchronization from the source account to the destination account.</li>
  21. <li>Blank lines are ignored. Blanks lines have only spaces or tabs or nothing but a CR</li>
  22. <li>Lines beginning with # are also ignored, use that for commenting.</li>
  23. <li>A basic line will sync all messages in all folders from the source account to the destination account.</li>
  24. <li>Each line has seven columns, six for the credentials, and one extra to add one or several parameters to the imapsync command.</li>
  25. <li>Each line has seven semi-colons characters ";", each one delimiting a column. The last column can be empty.</li>
  26. <li>Each line is processed serially, one synchronization at a time.</li>
  27. <li>At the end of the log, the lines that failed are listed.</li>
  28. <li>The input textarea is prefilled with values, as an example, replace them with yours or remove them.</li>
  29. <li></li>
  30. <li></li>
  31. <li></li>
  32. </ul>
  33. <form id="form" action="/cgi-bin/imapsync_csv_wrapper" method="post" autocomplete="on">
  34. <textarea id="csv_data" name="csv_data" rows="10" cols="120">
  35. # This example is a real one, ie, a truly working in the real world.
  36. test1.lamiral.info;test1;secret1;test2.lamiral.info;test2;secret2;;
  37. # The first again but this time with an authentication failure
  38. test1.lamiral.info;test1;secret1;test2.lamiral.info;test2;wrong_secret;;
  39. # The first again but this time with extra parameters
  40. test1.lamiral.info;test1;secret1;test2.lamiral.info;test2;secret2;--justfoldersizes --dry --minage 55 ;
  41. </textarea>
  42. <br/>
  43. </form>
  44. <p>
  45. <button id="bt-sync" type="button">
  46. Run imapsync on all csv data!
  47. </button>
  48. <button id="bt-abort" type="button">
  49. Abort the run!
  50. </button>
  51. </p>
  52. <p>
  53. <a href="#BOTTOM">Link to the bottom of this page (end of the log)</a>
  54. </p>
  55. <h2>Console of imapsync runs</h2>
  56. <pre id="console">
  57. </pre>
  58. <h2>Log of abort</h2>
  59. <pre id="abort">
  60. </pre>
  61. <h2>Log of all imapsync runs</h2>
  62. <pre id="output" >
  63. </pre>
  64. <h2>Links</h2>
  65. <div id="BOTTOM">
  66. <p >
  67. <a href="#TOP">Top of the page</a>
  68. </p>
  69. </div>
  70. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js">
  71. </script>
  72. <script src="sandbox_csv.js">
  73. </script>
  74. </body>
  75. </html>