Skip to main content
100%

Gist 8407898

✓ Published0🌍 Public
PPhilippe Rivière
Last edited Jan 19, 2014
Created on Jan 13, 2014

This example demonstrates a PHP-based synchronization tool for exporting and importing Seenthis messages to and from disk, using SQL queries against a database. The code shows how message data is exported into `.eml` files, including headers like Message-Id, Date, and From, with an option to skip unchanged files via file modification times. It also parses imported `.eml` files, extracting fields such as UUIDs, reply parents, and authorship while creating missing user accounts. The implementation relies on SPIP’s database abstraction layer (`sql_query`, `sql_fetch`, `sql_insertq`) and PHP’s `DateTime` for date handling.

AI-generated description

Similar vizzes