Re: [exim] Required... A snippit of code...

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: . kibble .
Ημερομηνία:  
Προς: david, exim-users
Υ/ο: 
Αντικείμενο: Re: [exim] Required... A snippit of code...

From: "David S. Madole" <david@???>
    int i = strcspn(emailaddr, "@");


    strncpy(lpart_domain->localpart, emailaddr, i);
    lpart_domain->localpart[i] = '\0';


    strcpy(lpart_domain->domain, emailaddr + i + 1);


---------------------------------------

Cheers, that's done the trick... [star*]

_________________________________________________________________
Want to block unwanted pop-ups? Download the free MSN Toolbar now!
http://toolbar.msn.co.uk/