[Dovecot] mailbox not acceced
Hugo Monteiro
hugo.monteiro at fct.unl.pt
Mon Feb 11 19:00:09 EET 2008
Osvaldo Alvarez Pozo wrote:
> i was looking your mail and as I have a data base i added a field to
> de data base I modified the script so it lokks like this.
>
> #!/bin/sh
> echo "update mailbox set last_log = now() WHERE username = '$USER'" |
> mysql postfix
> exec /usr/dovecot/libexec/dovecot/pop3
>
> but nothing gets written to the field.
> I think there is a problem with the value of variable $USER, as this
> is a shell script.
> Any Ideas?
>
>
You should be using $UID and not $USER.
Regards,
Hugo Monteiro.
--
ci.fct.unl.pt:~# cat .signature
Hugo Monteiro
Email : hugo.monteiro at fct.unl.pt
Telefone : +351 212948300 Ext.15307
Centro de Informática
Faculdade de Ciências e Tecnologia da
Universidade Nova de Lisboa
Quinta da Torre 2829-516 Caparica Portugal
Telefone: +351 212948596 Fax: +351 212948548
www.ci.fct.unl.pt apoio at fct.unl.pt
ci.fct.unl.pt:~# _
More information about the dovecot
mailing list