Gnus development mailing list
 help / color / mirror / Atom feed
From: Lloyd Zusman <ljz@asfast.com>
Subject: Re: Marking as already read when using gcc-self?
Date: 05 Jan 1999 18:45:21 -0500	[thread overview]
Message-ID: <ltsodp5lny.fsf@asfast.com> (raw)
In-Reply-To: <kigiuelacga.fsf@jagor.srce.hr>

Hrvoje Niksic <hniksic@srce.hr> writes:

> Justin Sheehy <justin@linus.mitre.org> writes:
> 
> > Lloyd Zusman <ljz@asfast.com> writes:
> > 
> > > Then, when entering summary mode, some routine (which one? ... well,
> > > I'll dig around and find it if no one can make a suggestion) could
> > > then recognize this `X-Gnus-Gcc-Action' header and perform the
> > > specified action.
> > 
> > Hm.
> > 
> > So, one could send me mail with a X-Gnus-Gcc-Action: <something>
> > header and make Gnus do something for me when it processes that
> > mail?
> > 
> > I don't think I'd like that very much.
> 
> Why not?  I think it's be totally hip -- see the headers.  :-)

Sure ... why not!  Might as well allow any and all sexp's that appear
data portion of that header to be evaluated, instead of just
interpreting a few specific actions. :)

But yes, I agree with all of you who pointed out that even with a few
specific action keywords, the header is indeed a bad idea, given the
fact that anyone could send a message with that header already
defined.

Hmmm ... OK.  What about this idea:

Create a new group parameter, perhaps called `gcc-action'.  It can
take only a few specified values such as 'tick, 'mark-read, etc.

See to it that `gnus-inews-do-gcc' in `gnus-msg.el' has access to the
value of `gcc-action' for the given group (I have to look more closely
at the code to determine the details as to how to get that value into
`gnus-inews-do-gcc', but I'm certain that this can be done).  If this
`gcc-action' value is present, pass it as a new parameter to the
invocation of `gnus-request-accept-article' near the end of this
routine.

Then, add another optional argument called `action' to the function
`gnus-request-accept-article' in `gnus-int.el'.  If this optional
argument is `nil', then this function will behave as it currently
does.  However, if `action' is set to one of the possible values
of `gcc-action', then tick or mark the article accordingly after
the `funcall' at the end of `gnus-request-accept-article' returns
(the article number of the new article should be contained within
the return value of this funcall, and this plus the group name
should allow us to set the appropriate ticking or marking flags).

Any comments?


-- 
 Lloyd Zusman
 ljz@asfast.com


  reply	other threads:[~1999-01-05 23:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-03  5:07 Lloyd Zusman
1999-01-04  9:28 ` Kai.Grossjohann
1999-01-04 23:42   ` Lloyd Zusman
1999-01-05  1:56     ` Nelson Jose dos Santos Ferreira
1999-01-06  0:53       ` Lloyd Zusman
1999-01-05  9:37     ` Stefan Waldherr
1999-01-05 12:44       ` Hrvoje Niksic
1999-01-06  4:45       ` Matt Simmons
1999-01-05 16:00     ` Justin Sheehy
1999-01-05 16:53       ` Hrvoje Niksic
1999-01-05 23:45         ` Lloyd Zusman [this message]
1999-01-06  7:41       ` Stefan Waldherr
1999-01-05 22:14     ` Kai.Grossjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ltsodp5lny.fsf@asfast.com \
    --to=ljz@asfast.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).