Article View: news.software.nntp
Article #52043Re: Canceling articles from within a newsreader
From: user_
Date: Thu, 26 Apr 2001 09:22
Date: Thu, 26 Apr 2001 09:22
207 lines
7657 bytes
7657 bytes
OE main menu "View" > "Current view" > "Hide read or ignored messages", then
edit your toolbar to include the "Mark read" button, this becomes your
"delete" button.
"BuZZard" <G�ꧧ@K�$$m��ZZ.fM�> wrote in message
news:KUVD6.33$aC5.45022@paloalto-snr1.gtei.net...
>
> "Mach" <mach@xganon.com> wrote in message
> news:200104200332.WAA31099@www.xganon.com...
> >
> > >> Mach:
> > >>
> > >> If you happen to run INND, you can use the program at the bottom of
> > >> this article to (locally) cancel articles from within a news
> > >> reader like Messenger.
> >
> >
> > My apologies Vampii. Newskill needs one more correction. :(
> >
> > My code contains a glaring error. It never reaches the second
> > for loop because it stays in the first for loop until it reaches
> > the end of the email. It only coincidentally worked because
> > the first for loop invoked inndctl cancel against every
> > Message-ID that it read.
> >
> > The first for loop detects the very first Message-ID that appears
> > in the email. Sendmail puts the first Message-ID into the email as
> > a reference. Invoking a "ctlinnd cancel" against sendmail's
> > MessageID accomplishes little, if anything. The program needs
> > to break out of the first for loop immediately after it spots
> > the very first MessageID.
> >
> > Once again, the corrected source, version 0.21, appears at the
> > bottom of this followup.
> >
> >
> > > not-a-real-address:
> > >
> > > cool. now everyone knows how to cancel articles on your server,
i.e.,
> > > no authenticate, and it's got a couple of spiffy holes just waiting
to
> > > let folks crack your newsadmin account.
> >
> >
> > Will you help me raise newskill's version above 0.21?
> >
> > Is it possible to use a cookie to authenticate email from Messenger?
> >
> > Can you use procmail to secure it?
> >
> > What security holes do you see?
> >
> >
> > > that's not to say that such a tool is a bad idea. it just needs
more
> > > work.
> >
> >
> > It attacks hip crime floods like nitric acid.
> >
> >
> > ________________________________cut_________________________________
> >
> > /* This is newskill V0.21 written by mach (c) 2000 *
> > * EMail: mach@nym.alias.net *
> > * Feel free to copy and redistribute in terms of the *
> > * GNU public license. */
> >
> > #ifndef lint
> > static char *const rcsid = "$Id: newskill.c,v 0.21 2000/07/28 20:34:05
> pb Exp $";
> > #endif /* lint */
> >
> > static char *const version = "newskill 0.21";
> >
> > #include <stdio.h>
> > #include <stdlib.h>
> > #include <syslog.h>
> >
> > #ifndef LOG_FACILITY
> > #define LOG_FACILITY LOG_LOCAL7
> > #endif /* LOG_FACILITY */
> >
> > #define DONTCARE -1
> > #define FALSE 0
> > #define TRUE 1
> >
> > #define MAXLINELEN 1024
> >
> > #define DEBUG
> >
> > #ifdef DEBUG
> > #include <assert.h>
> > #define MESSAGE(s) if (OptionDebug) syslog (LOG_NOTICE, (s))
> > #define MESSAGE_1(s,a) if (OptionDebug) syslog (LOG_NOTICE, (s), (a))
> > #define MESSAGE_2(s,a,b) if (OptionDebug) syslog
> (LOG_NOTICE,(s),(a),(b))
> > #define MESSAGE_3(s,a,b,c) if (OptionDebug) syslog
> (LOG_NOTICE,(s),(a),(b),(c))
> > #define MESSAGE_4(s,a,b,c,d) if (OptionDebug) syslog
> (LOG_NOTICE,(s),(a),(b),(c),(d))
> > #define MESSAGE_5(s,a,b,c,d,e) if (OptionDebug) syslog
> (LOG_NOTICE,(s),(a),(b),(c),(d),(e))
> > #else
> > #define MESSAGE(s)
> > #define MESSAGE_1(s,a)
> > #define MESSAGE_2(s,a,b)
> > #define MESSAGE_3(s,a,b,c)
> > #define MESSAGE_4(s,a,b,c,d)
> > #define MESSAGE_5(s,a,b,c,d,e)
> > #endif /* DEBUG */
> >
> > static char OptionAction = FALSE;
> > static char OptionDebug = FALSE;
> >
> > int main(int argc, char **argv) {
> > int c;
> > char cmdString[MAXLINELEN + 38];
> > char msgIDHeader[] = {"Message-ID: "};
> > char nl[MAXLINELEN];
> > int nlLen;
> > int returnVal;
> >
> > OptionAction = FALSE;
> > OptionDebug = FALSE;
> >
> > while ((c = getopt(argc, argv, "ad")) != EOF) {
> > switch (c) {
> > case 'a':
> > OptionAction = TRUE;
> > break;
> > case 'd':
> > #ifdef DEBUG
> > OptionDebug = TRUE;
> > #endif
> > break;
> > #endif
> > break;
> > }
> > }
> >
> > if (OptionAction) {
> > openlog ("newskill", LOG_NDELAY, LOG_LOCAL7);
> > } else {
> > openlog ("newskill", LOG_NDELAY, LOG_LOCAL7);
> > }
> >
> > /*
> > * find sendmail's Message-ID (the very first Message-ID)
> > * and ignore it
> > */
> > for (;;) {
> > if (fgets(nl, sizeof nl, stdin) == NULL) {
> > return -1;
> > }
> > if (strncmp(msgIDHeader, nl, sizeof msgIDHeader - 1) == 0) {
> > /* we found the first Message-ID, break out of the for loop */
> > break;
> > }
> > }
> >
> > /*
> > * invoke ctlinnd cancel against all of the remaining
> > * Message-IDs, attached to the email.
> > */
> > for (;;) {
> > if (fgets(nl, sizeof nl, stdin) == NULL) {
> > break;
> > }
> > if (strncmp(msgIDHeader, nl, sizeof msgIDHeader - 1) == 0) {
> > nlLen = strlen(nl);
> > if (nl[nlLen - 1] == '\n') { /* remove new line */
> > nl[nlLen - 1] = 0;
> > }
> > sprintf(cmdString, "/usr/local/news/bin/ctlinnd cancel '%s'",
> &(nl[sizeofmsgIDHeader - 1]));
> > MESSAGE(cmdString);
> > returnVal = system(cmdString);
> > if (returnVal == -1) {
> > syslog (LOG_ERR, "Problem invoking: %s", cmdString);
> > }
> > }
> > }
> >
> > return 0;
> > }
> >
>
> This cancels all messeges? I mean cancels them
> off USENET? It kicks ass!!!
>
> I was more interested in a simple "delete" button.
> one that doesn't cancel them from USENET, but just off your
> reader. Lets say you read AHM for hacking info...... But you
> got fuckheads like me that troll....Now you just want to delete
> them so the next time you come back into AHM you don't have
> to swim thru piles of old troll shizit to get back to a thread.
> Of course I am talking about the outhouse exprss reader.
> I do realize there are other readers out there, and psyko said Agent
> has a delete button. Maybe one day there will be a add-on or plug-in
> delete button for OE.
>
>
Technical Details
Message-ID:
<tefq8nog1h9ude@corp.supernews.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<ILAD6.44$8n2.28999@dfiatx1-snr1.gtei.net> <200104191703.MAA01793@www.xganon.com> <tdv6gcjos0g0f8@news.supernews.com> <200104200332.WAA31099@www.xganon.com> <KUVD6.33$aC5.45022@paloalto-snr1.gtei.net>Show Full Headers
Complete Article Headers
Message-ID: <tefq8nog1h9ude@corp.supernews.com> Subject: Re: Canceling articles from within a newsreader Date: Thu, 26 Apr 2001 02:22:58 -0700 From: "user_" <user_@domain.com> References: <ILAD6.44$8n2.28999@dfiatx1-snr1.gtei.net> <200104191703.MAA01793@www.xganon.com> <tdv6gcjos0g0f8@news.supernews.com> <200104200332.WAA31099@www.xganon.com> <KUVD6.33$aC5.45022@paloalto-snr1.gtei.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Newsgroups: alt.hackers.malicious,alt.sources,news.software.nntp Organization: Posted via Supernews, http://www.supernews.com X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Complaints-To: newsabuse@supernews.com Lines: 206