From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Mon, 12 Nov 2007 09:55:54 -0800 Subject: [sup-talk] [PATCH] Pipe message/attachement to shell command In-Reply-To: <1194622205-sup-2949@tomsk> References: <1194622205-sup-2949@tomsk> Message-ID: <1194889791-sup-3292@south> 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