Carlos,

Carlos García Gómez wrote:
> I need to store last authentication time for imap login.
> I use courier-imap with openldap ( I don´t use vpopmail !!! )
> I have thought I would do something like this:

>     char *tmpbuf;
>     FILE *fs;
> 
>     tmpbuf = (char *) malloc(300);
>     sprintf(tmpbuf, "%s/lastauth", user_maildir); // I would nee user_maildir 
>     if ( (fs = fopen(tmpbuf,"w+")) == NULL ) {
>         free(tmpbuf);
>         return -1;
>     }
> 
>     fprintf(fs, "%s", mbox);
>     fprintf(fs, "%s", "imap");
>     fclose(fs);
>     free(tmpbuf);
> 
> 
> but I don´t know where can I put it on.
> 
> Any Ideas?

You mean you need something more than your maillog provides, such as:

Jul  3 09:47:30 glacier imapd-ssl: LOGIN, [EMAIL PROTECTED],
   ip=[192.168.0.50], port=[2813], protocol=IMAP

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Courier-imap mailing list
Courier-imap@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to