From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87872 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Huchler Newsgroups: gmane.emacs.gnus.general Subject: Reddit Backend Message Ids Date: Wed, 14 Feb 2018 00:08:46 +0100 Message-ID: <87d118ij29.fsf@mail.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1518565111 20132 195.159.176.226 (13 Feb 2018 23:38:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Feb 2018 23:38:31 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m36086@lists.math.uh.edu Wed Feb 14 00:38:27 2018 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048034.atla03.us.yomura.com ([107.189.48.34]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elk9R-0004OZ-Kc for ding-account@gmane.org; Wed, 14 Feb 2018 00:38:17 +0100 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048034.atla03.us.yomura.com (Halon) with ESMTPS id 40f23020-1117-11e8-83d2-b499baa2b07a; Tue, 13 Feb 2018 23:40:21 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.89) (envelope-from ) id 1elkAW-0003q0-AG; Tue, 13 Feb 2018 17:39:24 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eljhp-0003bK-6f for ding@lists.math.uh.edu; Tue, 13 Feb 2018 17:09:45 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.89) (envelope-from ) id 1eljhm-00058L-S0 for ding@lists.math.uh.edu; Tue, 13 Feb 2018 17:09:45 -0600 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1eljhj-0000MP-TO for ding@gnus.org; Wed, 14 Feb 2018 00:09:39 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eljfN-0003tf-Au for ding@gnus.org; Wed, 14 Feb 2018 00:07:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 45 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:mpC+jDvwHXB7nm61YsSAo8eArvQ= X-Spam-Score: 1.8 (+) X-Spam-Report: SpamAssassin (3.4.1 2015-04-28) analysis follows Bayesian score: 0.4688 Ham tokens: 0.000-155--5668h-0s--0d--H*M:fsf, 0.000-149--5447h-0s--0d--H*MI:fsf, 0.000-11--393h-0s--0d--ids, 0.000-7--240h-0s--0d--H*UA:Emacs, 0.000-7--236h-0s--0d--H*u:Emacs Spam tokens: 0.997-16872--325h-14105s--0d--HX-Envelope-From:sk:junkmas, 0.997-16872--325h-14105s--0d--Hx-spam-relays-internal:sk:junkmas, 0.997-16872--325h-14105s--0d--H*RT:sk:junkmas, 0.997-29332--571h-24526s--0d--H*r:quimby.gnus.org, 0.994-30264--953h-25604s--0d--HTo:D*gnus.org Autolearn status: no autolearn_force=no 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefan.huchler[at]mail.de) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4688] 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87872 Archived-At: 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.