string txt, ret, str, xtra;
txt = Process.popen("cat /srv/www/web/email-proc.txt | col");
ret = xtra = "";
foreach( txt / "\n", str ) {
if(str[0..0] == "*") {
ret += ("| | ");
ret += ("| " + str[1..] + " | ");
ret += ("| | ");
} else {
ret += ("");
ret += ("| ");
ret += (" " + (str / ":")[0] + " ");
ret += (" | ");
if( search(str, ":") > 0 ) {
ret += (" " + (str / ":")[1] + "");
}
ret += (" | ");
ret += (" | \n");
}
}
ret += ("| | ");
return(ret);
|