Hello,

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?



-------------------------------------------------------------------------
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