Daniel, I put in your changes, nice code review and testing ;]
Ken
For the different output values:
>From the ChangeLog:
vpopmail-4.9.5 Oct 17th
- updated vuserinfo to print out gid flag values and what they
mean
- update vuserinfo to print out default domain name when no user
is found and you are searching the default domain,
for example: ./vuserinfo user
- update usage printouts in... vuserinfo...
Oct 6
- updated vuserinfo to have new output syntax, plus will output
all fields for a user if no options except email address is
given.
Leonardo Magallon wrote:
>
> My ~vpopmail/bin/vuserinfo does not display any of the stuff yours has
> Daniel.
> I have qmail/vpopmail-latest/nomysql.
>
> Daniel Augusto Fernandes wrote:
>
> > Hello,
> >
> > I think I've corrected a small bug in vmoduser. Look here:
> >
> > [daftm@catope vpopmail-4.9.5]$ ~vpopmail/bin/vuserinfo
> > [EMAIL PROTECTED]
> > name: daftm
> > passwd: #############
> > uid: 1
> > gid: 0
> > all services available
> > gecos: Daniel Augusto Fernandes
> > dir: /home/vpopmail/domains/epostal.com.br/G/daftm
> > quota: 5242880
> > [daftm@catope vpopmail-4.9.5]$ ~vpopmail/bin/vmoduser -p
> > [EMAIL PROTECTED]
> > [daftm@catope vpopmail-4.9.5]$ ~vpopmail/bin/vuserinfo
> > [EMAIL PROTECTED]
> > name: daftm
> > passwd: #############
> > uid: 1
> > gid: 2
> > pop access closed
> > gecos: Daniel Augusto Fernandes
> > dir: /home/vpopmail/domains/epostal.com.br/G/daftm
> > quota: 5242880
> > [daftm@catope vpopmail-4.9.5]$ ~vpopmail/bin/vmoduser -x
> > [EMAIL PROTECTED]
> > [daftm@catope vpopmail-4.9.5]$ ~vpopmail/bin/vuserinfo
> > [EMAIL PROTECTED]
> > name: daftm
> > passwd: #############
> > uid: 1
> > gid: 2
> > pop access closed
> > gecos: Daniel Augusto Fernandes
> > dir: /home/vpopmail/domains/epostal.com.br/G/daftm
> > quota: 5242880
> >
> > So, this is what I did:
> >
> > [daftm@catope vpopmail-4.9.5]$ diff vmoduser.c vmoduser.c.old
> > 130c130
> > < NoMakeIndex = 1;
> > ---
> > > NoMakeIndex = 0;
> > 133c133
> > < ClearFlags = 1;
> > ---
> > > ClearFlags = 0;
> >
> > The 'NoMakeIndex' is another thing I thought I should correct... :o)
> >
> > [daftm@catope vpopmail-4.9.5]$ ~vpopmail/bin/vuserinfo
> > [EMAIL PROTECTED]
> > name: daftm
> > passwd: #############
> > uid: 1
> > gid: 2
> > pop access closed
> > gecos: Daniel Augusto Fernandes
> > dir: /home/vpopmail/domains/epostal.com.br/G/daftm
> > quota: 5242880
> > [daftm@catope vpopmail-4.9.5]$ ~vpopmail/bin/vmoduser -x
> > [EMAIL PROTECTED]
> > [daftm@catope vpopmail-4.9.5]$ ~vpopmail/bin/vuserinfo
> > [EMAIL PROTECTED]
> > name: daftm
> > passwd: #############
> > uid: 1
> > gid: 0
> > all services available
> > gecos: Daniel Augusto Fernandes
> > dir: /home/vpopmail/domains/epostal.com.br/G/daftm
> > quota: 5242880
> >
> > I am trying to add some of these features (vuserinfo/vmoduser) in
> > qmailadmin!
> >
> > --------------------------------------------------------------------
> > Daniel Augusto Fernandes (DAF tm) [EMAIL PROTECTED]
> > GCSNet http://www.gcsnet.com.br/
> > --------------------------------------------------------------------
> > Se voc� n�o encontra
> > o sentido das coisas
> > � porque este n�o
> > se encontra, se cria.
> > Antoine Saint-Exup�ry