archie/release/scripts/mail_handler

8 lines
266 B
Plaintext
Raw Normal View History

2024-05-27 20:18:02 +02:00
#!/bin/sh
fbase=zzz$$
rm -f Info MailHeader
sed -e '/@Begin/,/@MailHeader/w Info' -e '/@MailHeader/,/@End/w MailHeader' \
-e '/@Begin/,/@End/d' | \
(ms_size=`sed -n 's/^MaxSplitSize: //p' < Info` ; cat Info ; echo $ms_size ; split_file -s $ms_size -f $fbase)