> I have a problem on my UNIX mail server where some NT Clients/'MS
> Outlook' users cannot open their large file on the server; therefore i
> need to parse it, that is
> chop it up into individual files and then spoonfeed it to MS Outlook
> I have a perl program to do this but Perl is not running on that server
> and i can't*around with it just at this moment; would someone
> help me
> with my awk syntax below please?
> [a] #!/usr/bin/awk -f (this i am using to pipe the file via stdout;
> but how can i capture the filename as a variable so that i can use it as
> a prefix? I do not
> want to use `awk -v
> awkVar="$shellVar" '...)
> [b] I have no problem matching the first line containing the String
> "from" and a "date"; am i correct in matching this line?
> /^[Ff]rom .* (Mon|Tue|Wed|Thu|Fri|Sat|Sun)/ (However, i would like to
> match this line only if it is followed by another match, the 'Received'
> line; then
> i can be fairly confident that this is a mail header. Can anyone advise
> best way to match both lines?)
> [c] Once matching the lines i need to feed the output to lines ideally
> prefixed with the original filename UNTIL reaching the next header; is
> there a way to
> do this without repeating [b] above?
> If someone can help, many thanks
> access to a news server; thanks!
> Disclaimer: opinions expressed my own and not representative of my employers
access to a news server; thanks!
Disclaimer: opinions expressed my own and not representative of my employers