Re: [Dovecot] FTS Plugin design
On Thu, Apr 23, 2009 at 5:47 AM, tomas@tuxteam.de wrote:
Note that some formats might require to seek to some point in the file [1]
(typically the end), so reading from stdin is awkward (it would require
stdin to be seekable, so either the app or the caller would have to put
the whole file somewhere anyway).
[1] Notably PDF has some index tables at EOF - 1k if I remember
correctly.
I hadn't thought on that before but I think you are right. The only question here is writing data to memory or hd.
Thank you all, Rui Carneiro
-- Portugalmail, Comunicações S.A. www.portugalmail.net
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, Apr 23, 2009 at 12:27:47PM +0100, rui.carneiro@portugalmail.net wrote:
On Thu, Apr 23, 2009 at 5:47 AM, tomas@tuxteam.de wrote:
Note that some formats might require to seek to some point in the file [1]
[...]
I hadn't thought on that before but I think you are right. The only question here is writing data to memory or hd.
Taking into account what Steffen Kaiser noted in this thread, a good old temp file (and boxing the subprocess within robust ulimits!) seems to be adequate. I can well imagine some crappy converter running amok :-/
Regards
- -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFJ8H46Bcgs9XrR2kYRAgdDAJ9j8Q4ueGg07TAJLemB1Cbhd81VEgCeJq/2 esWd4Nh9l08o6fYMJVRqT7Q= =lMu4 -----END PGP SIGNATURE-----
participants (2)
-
rui.carneiro@portugalmail.net
-
tomas@tuxteam.de