rdfield,

The existing module can be used for system user verification and download the mail to client side.

I had modified commandPASS function to handle both cases. The system user verification is working properly and mail gets download to the client machine. In the other part (for DB authentication), verification has been done but mail downloading is not working ... i think it has to handle different structure and separate function for that.

The code i wrote in the commandPASS :

if ($uidok == 0) { #### Used for if ($fqdn eq "dev.com") { ### Starts Database connection ### Query for getting password if ($password1 eq $password2) ## $password1 is from client machine a +nd $password2 from database { #### INCOMPLETE PART ### ### Here i want to handle the mails (Path say : usr/domainname/useri +d/mailfolder/ ### mail folder contains file1,file2 etc (file1,file1 represents eac +h mail...) ### Read the mail from the user mail folder. Each mail is stored as +a single file. ### I would like to read each mail and download it to the client mac +hine } else { print "-ERR access denied $uid $arg $CRLF"; &TimeIsUp("Incorrect Password... :\($CRLF"); } } else { ### Used for System Users... #### WORKING PROPERLY.... ### The actual code from the module ## } }

Hope i explained my problem ... If not clear, i can post entire code here .... Lines of code is very large.

Thanks a lot for your comment
Waiting for your help


Edited: ~Mon Oct 21 17:08:31 2002 (GMT) by footpad: Added <CODE> and other HTML formatting tags, per Consideration


In reply to Re: Re: POP access using System users and DB authentication by Anonymous Monk
in thread POP access using System users and DB authentication by surps

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.