[nos-bbs] getting mail into the BBS

Torsten Harenberg harenberg at physik.uni-wuppertal.de
Wed Mar 15 04:53:03 EST 2006


Dear all,

I investigated this a bit further and I know now that the index files 
cannot be rewritten:

jnos> index dl1thm
Error writing index file for dl1thm 

jnos> 


I crawled a bit through the code and found, that I get a error code in 
index.c exactly here:

             /* Read the 'Received...' and 'ID... lines'
              * to get the msgid - WG7J
              */
             if(bgets(buf, sizeof(buf), fp) == NULL) {   /* "Received " 
line */
                 default_index("",&ind);
                 fclose(fp);
                 close(idx);
                 return ERROR;
             }


Files look like this:

apfel:~/jnos/spool/mail root# hexdump dl1thm.ind
0000000 0000 0001 0000 0000 0000 0000
000000c
apfel:~/jnos/spool/mail root# cat dl1thm.usr
dl1thm 0
apfel:~/jnos/spool/mail root# cat dl1thm.ind
apfel:~/jnos/spool/mail root# cat dl1thm.txt
 From dl1thm at dl1thm.ampr.org Wed Mar 15 10:44:05 2006
Received: from dl1thm.ampr.org by dl1thm.ampr.org (JNOS2.0d) with SMTP
         id AA35 ; Wed, 15 Mar 2006 10:44:05 CET
Date: Wed, 15 Mar 2006 10:43:57 CET
Message-Id: <33 at dl1thm.ampr.org>
From: dl1thm at dl1thm.ampr.org
To: dl1thm
Subject: testmail
X-BBS-Msg-Type: P
X-JNOS-User-Port: Telnet   (dl1thm @ 127.0.0.1)  ->   Sending message

Testmail

 From dl1thm at dl1thm.ampr.org Wed Mar 15 10:44:18 2006
Received: from dl1thm.ampr.org by dl1thm.ampr.org (JNOS2.0d) with SMTP
         id AA38 ; Wed, 15 Mar 2006 10:44:18 CET
Date: Wed, 15 Mar 2006 10:44:09 CET
Message-Id: <36 at dl1thm.ampr.org>
From: dl1thm at dl1thm.ampr.org
To: dl1thm at dl1thm
Subject: testmail2
X-BBS-Msg-Type: P
X-JNOS-User-Port: Telnet   (dl1thm @ 127.0.0.1)  ->   Sending message

testmail2
 


Any ideas?

Thanks and best regards,

  Torsten DL1THM



Torsten Harenberg wrote:
> Hi Robert,
> 
> Robert wrote:
>> Hi Torsten,
>>
>> Do you have following lines in your  jnos/spool/rewite  file:
>>
>> *!*  $2@$1  r
>> *@dl1thm.ampr.org  $1  r
>> *@dl1thm  $1
>>
>> On the other hand all mail receipents in JNOS supposed to loged in at 
>> least once
>> in order to receive mail (maybe it is a bug).
> 
> thanks for that hint! Mail is now internally delivered and leaves SMTP 
> queue.
> 
> Now I can see the mail being delivered to the appropriate files:
> 
> [20:03] harenber at Torsten-Harenbergs-PowerBook:~/jnos/spool/mail $ ls -l
> total 32
> -rw-------   1 root  staff    12 Mar 12 20:03 dl1thm.ind
> -rw-r--r--   1 root  staff  1967 Mar 12 20:03 dl1thm.txt
> -rw-r--r--   1 root  staff     9 Feb 18 18:39 dl1thm.usr
> 
> But when I log into the BBS, no mails are there (I have logged in 
> several times before the first mail, so the user account is there):
> 
> 
> JNOS (dl1thm.ampr.org)
> 
> login: dl1thm
> Password:
> [JNOS-2.0d-BFHIM$]
> You have 0 messages.
> Area: dl1thm (#1) >
> 
> Anybody knows what is missing?
> 
> Thanks,
> 
>   Torsten DL1THM
> 
> 

-- 
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<>                                                              <>
<> Torsten Harenberg         harenberg at physik.uni-wuppertal.de  <>
<> Bergische Universitaet                                       <>
<> FB C - Physik             Tel.: +49 (0)202 439-3521          <>
<> Gaussstr. 20              Fax : +49 (0)202 439-2811          <>
<> 42097 Wuppertal                                              <>
<>                                                              <>
<><><><><><><>< Of course it runs NetBSD http://www.netbsd.org ><>




More information about the nos-bbs mailing list