In article <3.0.5.32.19990305104724.00f47980@mvmpc9>,
Karl-Heinz Weiss <khweis@MVMPC9.CIW.UNI-KARLSRUHE.DE> wrote
on Fri, 05 Mar 1999 10:47:24 +0100:
> The UKA_PPP mailclient doesn't handle multiple, comma delimited
> recipients on the To:, CC: or BCC: line. As a workaround you
> could write each address in a separate CC:, To: or BCC: line
> instead.
> Regards, Karl-Heinz
The following batch has worked thus far (with limited testing).
It uses strings.com v2.5 (Douglas Bolling), chop31.exe (Walter
Kennamer), and change.exe v8.06 (Bruce Guthrie). Prior to
uploading, my normal practice is to briefly review each message in
the local spool -- a convenient opportunity to apply this batch to
any message that needs it.
@echo off
strings fn=filename %1
::split file at each leading "Lines:", usually just one
chop31 %1 -n$0ALines: -c -w -h -z -t -q
::unfold all "folded" lines in first file fragment
change %fn%.1 /from ,\010\032 /to ,\032 >nul
::break comma-delimited addresses into separate fields
change %fn%.1 /from , /to \010Cc: /in Cc: /i >nul
change %fn%.1 /from , /to \010To: /in To: /i >nul
rem change %fn%.1 /from , /to \010Bcc: /in Bcc: /i >nul
::remove CR's added by change when "/in" switch is used
change %fn%.1 /from \013 /to null >nul
::recombine the two, or rarely more, file fragments
copy/b %fn%.1 +%fn%.2 +%fn%.3 +%fn%.4 %fn%.out >nul
del %fn%.?
:end
cheers, Larry