[sup-talk] [PATCH] Pipe message/attachement to shell command

William Morgan wmorgan-sup at masanjin.net
Mon Nov 12 12:55:54 EST 2007

Excerpts from Marcus Williams's message of Fri Nov 09 07:33:35 -0800 2007:
> William, in the code it says that message.raw_message is slow but
> thats the only way I could do it without creating a string via
> each_raw_message_line. Is there a better way than this?

Hey, this is another reason to use open3 instead of Session. You need to
have access to use the stdin filehandle in order to use
#each_raw_message_line. (There's no speed difference for IMAP, but for
Maildir and mbox, it's quite large. Maildir could be sped up, but mbox
fundamentally not.)

BTW, that first argument to BufferManager#ask should ideally be a symbol
of some sort rather than nil. History is shared amongst all invocations
with the same symbol.

William <wmorgan-sup at masanjin.net>

More information about the sup-talk mailing list