piping message thru demime
Troy Piggins <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
I'm working on a macro to convert MIME messages not handled
correctly by slrn.
I'm using the perl script 'demime' if anyone knows it. When I have
the macro working I'll post it so others can use, along with demime
installation instructions etc.
The macro below works:
define pipe_thru_demime ()
{
pipe_article ("/usr/local/bin/demime - |
/usr/local/share/vim/vim64/macros/less.sh '+set ft=mail' -");
}
but it just pipes the message to 'less' - what I want is to use
slrn's 'replace_article' function instead, but can't get that
working.
Below is my what I was thinking about doing, but keep getting
"S-Lang Error: Type Mismatch: Unable to typecast Integer_Type to
String_Type" error.
define demime ()
{
replace_article (system (sprintf ("echo %s |
/usr/local/bin/demime -", article_as_string ())));
}
Any ideas or pointers in the right direction?
--
Troy Piggins
Ubuntu 5.10 pkgs : kernel 2.6.12-9-386, postfix 2.2.4, procmail 3.22
Compiled from src : slrn 0.9.8.1/rt (score_color patch), mutt 1.5.11i
vim 6.4
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642