From: Stefan Huchler <stefan.huchler@mail.de>
To: ding@gnus.org
Subject: Reddit Backend Message Ids
Date: Wed, 14 Feb 2018 00:08:46 +0100 [thread overview]
Message-ID: <87d118ij29.fsf@mail.de> (raw)
Hello,
I try to make the mmreddit backend of gnus better, I want to make it
possible that gnus can track the viewed messaged so that I can see what
is new and where new posts and comments are:
https://github.com/paul-issartel/nnreddit/issues/6
But I am struggling with implementing it or find the parts I have to
edit. Because its abstracted away you need a good knowledge what is
expected.
As example does the backend need continious ids, or is it ok if its just
numbers and the numbers are unique?
I tried to edit the "nnreddit-make-header" function:
https://github.com/paul-issartel/nnreddit/blob/9843f99d01fd8f1eea2fc685965a7c7f4eeb187a/nnreddit.el#L331
by replacing:
#+begin_src emacs-lisp
(make-full-mail-header
id
clean-title
clean-author...)
#+end_src
with:
#+begin_src emacs-lisp
(make-full-mail-header
(nnreddit-id-to-numberreddit-id)
clean-title
clean-author
#+end_src
I think it then detected when a new message/post did happen in a
subreddit, but when I tried to open the group it says "no messages".
It's hard for me to get that figured out alone, I don't think that
should be that hard to fix, but again I hope somebody can assist me and
help me to understand the api of gnus a bit.
next reply other threads:[~2018-02-13 23:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-13 23:08 Stefan Huchler [this message]
2018-02-14 4:58 ` Jeffrey DeLeo
2018-02-14 11:07 ` Stefan Huchler
2018-02-14 19:27 ` Haider Rizvi
2018-02-15 15:42 ` Stefan Huchler
2018-02-15 16:25 ` Stefan Huchler
2018-02-24 3:50 ` Stefan Huchler
2018-04-12 19:44 ` Haider Rizvi
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=87d118ij29.fsf@mail.de \
--to=stefan.huchler@mail.de \
--cc=ding@gnus.org \
/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).