|
-
Aug 24th, 2007, 10:40 AM
#4
Thread Starter
New Member
Re: Help With Pop3
Thanks for the tip. Code was converted as below, BUT it does not return the count as the C# code does !!!
http://labs.developerfusion.co.uk/co...arp-to-vb.aspx
Send("stat")
Dim returned As String = GetPop3String()
( returned =
+OK POP3 server ready (7.3.110.11) <[email protected]> )
' if values returned ...
If Regex.Match(returned, "^.*\+OK[ |" & Chr(9) & "]+([0-9]+)[ |" & Chr(9) & "]+.*$").Success Then
' get number of emails ...
count = Long.Parse(Regex.Replace(returned.Replace("" & Chr(13) & "" & Chr(10) & "", ""), "^.*\+OK[ |" & Chr(9) & "]+([0-9]+)[ |" & Chr(9) & "]+.*$", "$1"))
End If
Return (count)
Last edited by gobajo; Aug 24th, 2007 at 11:11 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|