Re: Feed Mails to SN internal group?
"Gabor Z. Papp" <[email protected]>
| Newsgroups | gmane.network.sn |
|---|---|
| Organization | Who, me? |
| Message-ID | <[email protected]> |
* Eric Wick <[email protected]>: | is it possible to feed mails via the procmailrc to an internal sn | newsgroup? I want mailinglist and systemmails sorted to my news. What | things do i need? I'm saving the mails in pure mbox format with names list.bla... Wrote a small script which is part of a big news bash script that process these files: cd $incoming_dir || fail for i in list.* do if test -f $i then counter="0" counter=`expr $counter + "1"` list=${i:14} listprefix="list." csplit -z -f "$counter-" -n 4 - /^"From "/ {*} <$i >/dev/null for j in `ls -1A $counter-????` do if cat $j | grep -v "^From " | /usr/lib/sn/snmail -cs $list $listprefix then rm $j else mail postmaster <$j && rm $j fi done rm $i fi done Bad part that we have to define $list and $listprefix to post to a newsgroup, and we can't simpley define a groupname like 'bla'.