Just a correction to my answer !!!

After testing a beta of XMail Admin 0.22 (thanks to John Kielkopf) wich
correct the usage of empty user variables,
it seems the problem is only in ctrlclnt program, not xmail ctrl service nor
XmailAdmin (0.22 beta) (0.21 have still the same problem as ctrlclnt)

So the ctrlclnt tool need some corrections to handle empty strings ( "" ) on
its command line (detecting "" strings or usage of special sequences) and to
transmit correctly the "" empty string to the ctrl service.

Francis

-----Message d'origine-----
De : CLEMENT Francis [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 3 avril 2001 19:14
À : XMail List (E-mail)
Objet : RE: [Q] How to delete a user variable...


Hello, Shawn

You have the same problem i have with XmailAdministrator that don't like
empty user variables (and XMailAdministrator uses the same ctrl service that
ctrlclnt uses). In fact XmailAdministrator simply returns the error
generated by the ctrl service !! It is not a bug in XMailAdmin !!

I think it is because xmail ctrl service or crtlclnt don't accept null
strings (as ...[TAB][CRLF] or [TAB][TAB] will be transmitted to it and not
[TAB]""[CRLF] or [TAB]""[TAB]).

I don't yet where is the problem (ctrl service or ctrlclnt) !!

So actualy, the unique method to 'clear' a user variable via ctrlclnt is to
set it with an dummy char (eg - or . )
The variable will not be really cleared but will return just that char then
viewed.
I currenctly use this method (or manual clear the user.tab file :-( )

A solution will be to modify the ctrl service or ctrlclnt to accept a
special char or sequence (eg *CLEAR* or *CLEARALL*) to ask it to clear the
variable or all the variables, so a line like 
        ctrlclnt -s 127.0.0.1 -u root -p bogus uservarsset home.bogus
dlibenzi *CLEARALL*
will be accepted and the variables cleared and
        ctrlclnt -s 127.0.0.1 -u root -p bogus uservarsset home.bogus
dlibenzi RealName admin HomePage *CLEAR* Telephone 123
will just clear the HomePage variable

(if i have time, i will try to find the bug or patch xmail for this feature
!!)

Francis


-----Message d'origine-----
De : Shawn Anderson [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 3 avril 2001 02:48
À : XMail Mailing list
Objet : [Q] How to delete a user variable...


I thought that I could pass a blank string to delete a user variable.
For example:
        ctrclnt -s 127.0.0.1 -u root -p bogus uservarsset home.bogus
dlibenzi

or
        ctrclnt -s 127.0.0.1 -u root -p bogus uservarsset home.bogus
dlibenzi ""

but neither seem to work. I am currently doing this test on XMail v0.68. Can
anyone tell me what I am doing wrong?

Shawn

Reply via email to