Article View: comp.sys.acorn.networking
Article #205Re: Help needed with messages to Newsbase
From: David Croft
Date: Fri, 16 Aug 1996 00:00
Date: Fri, 16 Aug 1996 00:00
85 lines
3743 bytes
3743 bytes
In article <19960814.212957.41@mightoak.demon.co.uk>
bob@mightoak.demon.co.uk (Bob Latham) wrote:
> Can someone give me a little help with messages to Newsbase please.
>
> I have been using the messages system to send outgoing mail/news to
> Newsbase using command codes 300 + 310 with &FEED10. This worked fine
> with Newsbase 0.54n. Having had problems with TTFN I decided to try
> messenger. Trouble is, that insists on upgrading Newsbase and so I did
> to 0.55f and now my messages don't work.
>
> I've read the help text and altered the messages to:
>
> block +&10 =&83580 was &FEED10
> block +&14 =300 / 310
> block +&18 =0 (guess) flags
> block +&1C =0
> block +&20 path to file + file name then lots of zeros -
> end
>
>
> Still no joy, it ignores me quite nicely. Most other groups of commands
> have descritions of what the flags at &18 are for, but not the ones I
> wish to use - Dohh!!! :-)
Right. First of all you should be sending Newsbase_Startup and
Newsbase_Shutdown messages as a matter of principle. This registers
your client with Newsbase and is required for network operation
(think - forward compatibility).
But that isn't your problem. Your message is probably being refused
because you haven't sent a SetUser message. You need to SetUser
to a user who has mail and news posting access. If you don't do
this, it will assume the default user - which probably doesn't have
posting access.
It's a little tricky to decide what user to SetUser to here.
If the program is for personal use then you can just hardwire
the root user in here. If it's for distribution then you really ought
to ask the user what user name and password to use EACH TIME (Don't
save between sessions as this defeats the object of passwords).
Alternatively - and this is the solution I think MailList should
adopt - is to create a user for your program during installation. My
preferred method of doing this is as follows:
1 Send the AddUser command.
If this succeeds, all is well - go to step 6
If not, this command requires an Admin user; continue...
2 Open a window saying
Qedit needs to create the user "qedit" in order that you
may edit messages after they have been posted. Please sign
on as an administrator user:
User name: [root ]
Password: [ ]
[Help] [Cancel] [OK]
3 Do a SetUser to the details given
If this fails, complain and go back to 2
4 AddUser your program's user
5 ModifyUser to give your program necessary privileges.
6 SetUser to your new user.
> I have emailed Graham Allan about this but for some reason he does not
> reply and so any help would be much appreciated.
He's a very busy man at the moment!
BTW - Are you watching Newsbase_Reply messages and recording
what reason is given? This should give you a better clue as to
why your request has been refused.
--
|> /+\ \| | |> =4D=49=4D=45=3A=20=42=6F=6F=20=68=69=73=73=21
Technical Details
Message-ID:
<dba44efe46@infotrek.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114044,a282a40b44809e1a,start X-Google-Attributes: gid114044,public X-Google-Thread: 11173c,a282a40b44809e1a,start X-Google-Attributes: gid11173c,public From: David Croft <david@infotrek.demon.co.uk> Subject: Re: Help needed with messages to Newsbase Date: 1996/08/16 Message-ID: <dba44efe46@infotrek.demon.co.uk> X-Deja-AN: 174739175 x-nntp-posting-host: infotrek.demon.co.uk x-posting-agent: RISC OS Newsbase 0.55f followup-to: comp.sys.acorn.networking x-mail2news-path: infotrek.demon.co.uk organization: Infotrek Software Developments newsgroups: comp.sys.acorn.networking,demon.ip.support.archimedes