|
NAMEgencancel - Generate cancel control messagesSYNOPSISgencancel [-adkLm] [-b body] [-c charset] [-f from] [-n newsgroups] [-s subject] message-idDESCRIPTIONgencancel provides the news administrator with a helpful tool to generate cancel control messages, writing them to standard output. The generated cancel article can then be injected by inews (see examples below).gencancel expects the Message-ID of the article to cancel; this message-id argument should properly be quoted for the shell and surrounded by angle brackets. gencancel will then try to read the original article in the news spool to determine the original newsgroups it was posted to, and re-use that information for the cancel control message. If you want to modify that, or if the information was not found, you'll have to set it with the -n flag. If INN was build with Cancel-Lock support, gencancel will generate the right Cancel-Key header field to use in order to authenticate cancels. If, for whatever reason, you need cancelling an article posted from your news server with a Cancel-Lock header field, the corresponding admin Cancel-Key hashes are needed to authenticate the withdrawal request. That information is computed with the canlockadmin parameter set in inn-secrets.conf. In case you only need the Cancel-Key hashes, you can use the -k flag. Only the body of the Cancel-Key header field will then be written to standard output. You can then re-use it for instance in a supersede request or from another script. OPTIONS
EXAMPLESTo only retrieve the Cancel-Key hashes associated to the given Message-ID:gencancel -k '<mid@news>' If you're using non-ASCII characters in headers, make sure you properly MIME-encode them. For instance, use the "Encode" Perl module: FROM=$(perl -e 'use Encode; print encode("MIME-Q", decode("UTF-8", "Julien ELIE"));') gencancel -f "$FROM <admin@news.server.com>" '<mid@news>' You'll then see in the output a properly MIME-encoded header field: From: =?UTF-8?Q?Julien_=C3=89LIE?= <admin@news.server.com> An example of call with a custom multi-line body: gencancel -b "$(echo -e "Multi\nLine\nBody.")" '<mid@news>' (Use -c to change the default Content-Type charset for the body.) You can then pipe the result into "inews -h -P -D" (meaning inews expects an article with headers, does not add a Sender header field, and writes the result to standard output instead of actually injecting it): gencancel '<mid@news>' | inews -h -P -D If it all looks good, then inject it into the news system (without giving "-D" to inews): gencancel '<mid@news>' | inews -h -P HISTORYWritten by Julien Elie for InterNetNews.SEE ALSOinews(1), inn-secrets.conf(5).
Visit the GSP FreeBSD Man Page Interface. |