🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Matej Cepl Fri, 11 Aug 2006 05:31
reading list through INN
#74017
Author: Matej Cepl
Date: Fri, 11 Aug 2006 05:31
86 lines
4686 bytes
Hi,

when I had leafnode (with ML patch) I had all messages to email lists
converted in newsgroups. I have a filter in my MUA (KMail) to send all
those list-messages to news@localhost. There they would be filtered by
leafnode ML patch. I tried to reconstruct the same behavior with procmailrc
and rules like this:

:0
* ^List-Id:.*discuss.blu.org
| /usr/lib/news/bin/mailpost -d local local.mail.comp.boston

or

:0
* ^Mailing-List:.*(vcfc-random@yahoogroups.com \
        |vcfc-announce@yahoogroups.com)
| /usr/lib/news/bin/mailpost -d local local.mail.vcfc.random

Actually the results are quite chaotic -- for some groups (like this one for
example, everything seems to work), but it is kind of weird. This is output
of procmail for one message:

procmail: [26233] Thu Aug 10 23:33:01 2006
procmail: No match on "^List-Id:.*discuss.blu.org"
procmail: No match on "^List-Id:.*pkg-lyx-devel.lists.alioth.debian.org"
procmail: No match on "^List-Id:.*bblisa.bblisa.org"
procmail: No match on "^List-Id:.*surrey.mailman.lug.org.uk"
procmail: No match on "^List-Id:.*scottish.mailman.lug.org.uk"
procmail: No match on "^List-Id:.*northwales.mailman.lug.org.uk"
procmail: No match on "^List-Id:.*discuss.swlug.org"
procmail: No match on "^List-Id:.*oxlug.lists.oxlug.org"
procmail: No match on "^List-Id:.*clug.cambridge-lug.org"
procmail: No match on "^List-Id:.*czdebian-l.debian.cz"
procmail: Match on "^Mailing-List:.*(vcfc-random@yahoogroups.com\
        |vcfc-announce@yahoogroups.com)"
procmail: Executing " \
        /usr/lib/news/bin/mailpost,-d,local,local.mail.vcfc.random" \
        /bin/sh:  /usr/lib/news/bin/mailpost: No such file or directory
procmail: Error while writing to " /usr/lib/news/bin/mailpost"
procmail: Assigning "LASTFOLDER= /usr/lib/news/bin/mailpost -d local \
        local.mail.vcfc.random"
procmail: No match on "^List-Post:.*cebranik@pandora.cz"
procmail: No match on "^List-Post:.*goffman.mail.lsit.ucsb.edu"
procmail: No match on "^To:.*CONVERSATION@JISCMAIL.AC.UK"
procmail: No match on "^To:.*(@JISCMAIL.AC.UK|PILN@COLUMBIA.EDU \
        |UMD-LPBR-FULL@LISTSERV.UMD.EDU)"
procmail: No match on "^(To|Reply-To|Cc):.*@LIST.MSU.EDU"
procmail: No match on "^From:.*(googlealerts-noreply@google.com \
        |alerts@yahoo-inc.com|robot@radio.cz)"
procmail: Executing "/usr/sbin/sendmail,-oi,newsmaster@localhost"
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi \
        newsmaster@localhost"
procmail: Notified comsat: "news@:/usr/sbin/sendmail -oi \
        newsmaster@localhost"
>From news  Thu Aug 10 23:33:01 2006
 Subject: [Random] Urgent prayer request
  Folder: /usr/sbin/sendmail -oi newsmaster@localhost                     
5217

(obviously some lines needed to be broken for this message)

The biggest question I have is what that "No such file or directory" means.
Which file or directory? The other is kind of off-topic here -- why in the
world procmail thinks that sending of message to the program is
non-delivering rule?

Is there any more settled ways how to organize stuff like this -- seeding
local news groups from number of email lists being sent to the one local
user (I have currently 18 email lists which  I would like to process with
this way, and I don't think I would like to make new alias for all of
them)?

Thanks a lot for any reply,

Matěj

-- 
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
http://www.ceplovi.cz/matej/blog/, Jabber: ceplma@jabber.cz
23 Marion St. #3, (617) 876-1259, ICQ 132822213
 
The function of the expert is not to be more right than other
people, but to be wrong for more sophisticated reasons.
    -- Dr. David Butler, British psephologist
Re: reading list through INN
#74020
Author: Per Hedeland
Date: Fri, 11 Aug 2006 18:18
56 lines
3180 bytes
In article <uCUCg.62426$Qu4.22884@trnddc04> Matej Cepl <ceplm@seznam.cz>
writes:
>
>when I had leafnode (with ML patch) I had all messages to email lists
>converted in newsgroups. I have a filter in my MUA (KMail) to send all
>those list-messages to news@localhost. There they would be filtered by
>leafnode ML patch. I tried to reconstruct the same behavior with procmailrc
>and rules like this:
>
>:0
>* ^List-Id:.*discuss.blu.org
>| /usr/lib/news/bin/mailpost -d local local.mail.comp.boston
>
>or
>
>:0
>* ^Mailing-List:.*(vcfc-random@yahoogroups.com \
>        |vcfc-announce@yahoogroups.com)
>| /usr/lib/news/bin/mailpost -d local local.mail.vcfc.random

  ^ - It seems you have a "garbage" character here (octal 302, capital A
with circumflex in iso-8859/1...).

>        /usr/lib/news/bin/mailpost,-d,local,local.mail.vcfc.random" \
>        /bin/sh:  /usr/lib/news/bin/mailpost: No such file or directory

>The biggest question I have is what that "No such file or directory" means.
>Which file or directory?

It means what it says, normally - i.e. the message would imply that
/usr/lib/news/bin/mailpost doesn't exist, but given the above, it
probably means that "Â /usr/lib/news/bin/mailpost" doesn't exist, just
that the  has been stripped out somewhere.

> The other is kind of off-topic here -- why in the
>world procmail thinks that sending of message to the program is
>non-delivering rule?

That's probably a consequence of the failure to execute the program - it
would be bad if procmail just ignored this failure, but I guess it could
return a fatal exit code instead, causing a bounce, rather than continue
to process the procmailrc. Check the procmail docs, maybe this is
specified there...

>Is there any more settled ways how to organize stuff like this -- seeding
>local news groups from number of email lists being sent to the one local
>user (I have currently 18 email lists which  I would like to process with
>this way, and I don't think I would like to make new alias for all of
>them)?

Hm? 18 isn't exactly a huge number of aliases, and aliases would seem to
be a far more reliable method than parsing arbitrary headers, subject to
change without notice, in a procmailrc.

--Per Hedeland
per@hedeland.org
Re: reading list through INN
#74021
Author: Erik Warmelink
Date: Fri, 11 Aug 2006 18:34
59 lines
3271 bytes
In article <uCUCg.62426$Qu4.22884@trnddc04>,
	Matej Cepl <ceplm@seznam.cz> writes:

No UTF-8 support in my newsreader, which is a blessing in disguise
this time.

> when I had leafnode (with ML patch) I had all messages to email lists
> converted in newsgroups. I have a filter in my MUA (KMail) to send all
> those list-messages to news@localhost. There they would be filtered by
> leafnode ML patch. I tried to reconstruct the same behavior with procmailrc
> and rules like this:
> 
>:0
> * ^List-Id:.*discuss.blu.org
>| /usr/lib/news/bin/mailpost -d local local.mail.comp.boston
  ^

This is a space.

> or
> 
>:0
> * ^Mailing-List:.*(vcfc-random@yahoogroups.com \
>        |vcfc-announce@yahoogroups.com)
>| usr/lib/news/bin/mailpost -d local local.mail.vcfc.random
  ^^

This isn't. In the raw article it was 302 240 octal, which means
U+00AO (NO-BREAK SPACE) IIRC. The "capital A with circumflex" starts
code for the 3rd quart of Latin-1.

> Actually the results are quite chaotic -- for some groups (like this one for
> example, everything seems to work), but it is kind of weird. This is output
> of procmail for one message:
> 
> procmail: [26233] Thu Aug 10 23:33:01 2006

[snip]

> procmail: Match on "^Mailing-List:.*(vcfc-random@yahoogroups.com\
>        |vcfc-announce@yahoogroups.com)"
> procmail: Executing " \
>         /usr/lib/news/bin/mailpost,-d,local,local.mail.vcfc.random" \
>         /bin/sh:  /usr/lib/news/bin/mailpost: No such file or directory
> procmail: Error while writing to " /usr/lib/news/bin/mailpost"
> procmail: Assigning "LASTFOLDER= /usr/lib/news/bin/mailpost -d local \
>         local.mail.vcfc.random"

[snip]

> The biggest question I have is what that "No such file or directory" means.
> Which file or directory?

If my interpretation is correct procmail the file
$NBSPACE/usr/lib/news/bin/mailpost where the value of NBSPACE would be
a string of length 1, whose single character is a non-breakable space.

-- 
erik@selwerd.nl
Re: reading list through INN
#74022
Author: Matej Cepl
Date: Fri, 11 Aug 2006 19:16
23 lines
1935 bytes
Erik Warmelink wrote:
> If my interpretation is correct procmail the file
> $NBSPACE/usr/lib/news/bin/mailpost where the value of NBSPACE would be
> a string of length 1, whose single character is a non-breakable space.

Thanks both of you this is correct. I will try fix the rest later.

Matěj

-- 
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
http://www.ceplovi.cz/matej/blog/, Jabber: ceplma@jabber.cz
23 Marion St. #3, (617) 876-1259, ICQ 132822213
 
Of all tyrannies, a tyranny exercised for the good of its
victims may be the most oppressive. It may be better to live
under robber barons than under omnipotent moral busybodies. The
robber baron's cruelty may sometimes sleep, his cupidity may at
some point be satiated; but those who torment us for our own
good will torment us without end, for they do so with the
approval of their consciences.
    -- C. S. Lewis
Re: reading list through INN
#74025
Author: Matej Cepl
Date: Sat, 12 Aug 2006 12:34
71 lines
4079 bytes
Erik Warmelink wrote:
> If my interpretation is correct procmail the file
> $NBSPACE/usr/lib/news/bin/mailpost where the value of NBSPACE would be
> a string of length 1, whose single character is a non-breakable space.

OK, so this (and other things) are fixed, I have no articles send by inews
to innd and I can see them stored in the particular files in articles
directory, but still my newsreader doesn't see them (and it works perfectly
for other -- gmane.org and general Usenet -- groups on the same INN
server). When looking through news.debug I found lines like this:

Aug 12 07:33:03 chelcicky innd: SERVER descriptors 1024
Aug 12 07:33:03 chelcicky innd: SERVER outgoing 1011
Aug 12 07:33:04 chelcicky innd: SERVER ccsetup control:13
Aug 12 07:33:04 chelcicky innd: SERVER lcsetup localconn:15
Aug 12 07:33:04 chelcicky innd: SERVER rcsetup remconn:3
Aug 12 07:33:05 chelcicky innd: overview spawned overview:18:proc:22227
Aug 12 07:33:05 chelcicky innd: sunsite opened sunsite:17:file
Aug 12 07:33:05 chelcicky innd: gmane opened gmane:19:file
Aug 12 07:33:05 chelcicky innd: SERVER perl filter not defined
Aug 12 07:33:05 chelcicky innd: SERVER starting
Aug 12 07:34:05 chelcicky innd: s
Aug 12 07:34:32 chelcicky innd: localhost connected 20 streaming allowed
Aug 12 07:34:32 chelcicky innd: localhost:20 closed seconds 0 accepted 0
refused 0 rejected 0 duplicate 0 accepted size 0 duplicate size 0
Aug 12 07:34:32 chelcicky nnrpd[22294]: localhost.localdomain (127.0.0.1)
connect
Aug 12 07:34:32 chelcicky nnrpd[22294]: Reading access
from /etc/news/readers.conf
Aug 12 07:34:32 chelcicky nnrpd[22294]: localhost.localdomain res
<localhost>
Aug 12 07:34:32 chelcicky nnrpd[22294]: localhost.localdomain match_user
<localhost> <localhost>
Aug 12 07:34:33 chelcicky nnrpd[22294]: localhost.localdomain group
local.mail.comp.lyx-debian 0
Aug 12 07:34:33 chelcicky nnrpd[22294]: localhost.localdomain group
comp.arch.storage 0
Aug 12 07:34:33 chelcicky nnrpd[22294]: localhost.localdomain group
comp.dcom.xdsl 0
(... and many more lines like this ...)

However, there are some messages in local.mail.comp.lyx-debian NG:

matej@chelcicky:~$
ls -l /var/spool/news/articles/local/mail/comp/lyx-debian/
celkem 20
-rw-rw-r-- 1 news news 2803 2006-08-12 06:45 1
-rw-rw-r-- 1 news news 2255 2006-08-12 06:45 2
-rw-rw-r-- 1 news news 2321 2006-08-12 06:45 3
-rw-rw-r-- 1 news news 1877 2006-08-12 06:45 4
-rw-rw-r-- 1 news news 2715 2006-08-12 06:45 5
matej@chelcicky:~$

When looking at them with slrn, it shows numbers of articles in the groups
display, but when I click on the group, I get "No unread articles found".

Any idea, what's wrong?

Thanks,

Matěj

-- 
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
http://www.ceplovi.cz/matej/blog/, Jabber: ceplma@jabber.cz
23 Marion St. #3, (617) 876-1259, ICQ 132822213
 
He has never been known to use a word that might send a reader to
the dictionary.
      -- William Faulkner
         (about Ernest Hemingway)
Re: reading list through INN
#74026
Author: Iulius
Date: Sat, 12 Aug 2006 12:45
29 lines
2226 bytes
En réponse à Matej Cepl :
> matej@chelcicky:~$
> ls -l /var/spool/news/articles/local/mail/comp/lyx-debian/
> celkem 20
> -rw-rw-r-- 1 news news 2803 2006-08-12 06:45 1
> -rw-rw-r-- 1 news news 2255 2006-08-12 06:45 2
> -rw-rw-r-- 1 news news 2321 2006-08-12 06:45 3
> -rw-rw-r-- 1 news news 1877 2006-08-12 06:45 4
> -rw-rw-r-- 1 news news 2715 2006-08-12 06:45 5
> matej@chelcicky:~$
> 
> When looking at them with slrn, it shows numbers of articles in the groups
> display, but when I click on the group, I get "No unread articles found".
> 
> Any idea, what's wrong?

What if you delete the « .jnewsrc » file in order to reload the new
numbers of articles ?
I believe there is a line in it, saying :

local.mail.comp.lyx-debian! 1-n

where n is a number > 5.  All the articles whose numbers are < n are
considered as read by slrn.

-- 
Iulius

« La science consiste à passer d'un étonnement à l'autre. » (Aristote)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads