亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? vbmime.cls

?? 簡單、實用、特別。 有很多不足之處
?? CLS
?? 第 1 頁 / 共 3 頁
字號:
VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "vbMime"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False

'
'--------------------------------------------------------------------------

Option Explicit
Option Base 0

'Base64
Private Const CHAR_EQUAL As Byte = 61
Private Const CHAR_CR As Byte = 13
Private Const CHAR_LF As Byte = 10

Private m_ReverseIndex1(0 To 255) As Byte
Private m_ReverseIndex2(0 To 255, 0 To 1) As Byte
Private m_ReverseIndex3(0 To 255, 0 To 1) As Byte
Private m_ReverseIndex4(0 To 255) As Byte

'Mime
Private m_strMessageText     As String
Private m_strMessageBody     As String
Private m_strHeaders         As String

'Pop3 Class
'Dim intMailSelected As Integer

Private Enum POP3States
    POP3_Connect
    POP3_USER
    POP3_PASS
    POP3_STAT
    Pop3_retr
    Pop3_dele
    POP3_QUIT
End Enum

Private m_State       As POP3States
Private m_strPop3Host As String
Private m_strUsername As String
Private m_strPassword As String
Private bolDelMail As Boolean
Private pbExitImmediately As Boolean
Private bRaiseTimeOutError As Boolean
Private pbConnected As Boolean

Private intMessages          As Integer
Private intCurrentMessage    As Integer
Private strBuffer            As String
Private DataPointer&
Private Const BlockSize = 2048
' Class Events
Private WithEvents Pop3sck As CSocket
Attribute Pop3sck.VB_VarHelpID = -1
Public Event ReceivedSuccesful()
Public Event MimeFailed(Explanation As String)
Public Event Pop3Status(Status As String)
Public Event Progress(PercentComplete As Long)
'For WaitUntilTrue()
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Dim vbBase64 As New base64



'==========
' Class_Initialize;
' initializes codec tables.
'==========
Private Sub Class_Initialize()

  'Initiate Winsock

    Set Pop3sck = New CSocket
    

    'initialize the base64 table
    Dim I As Long

    'Setup the encodeing and decoding lookup arrays.
    'Essentially we speed up the routine by pre-shifting
    'the data so it only needs combined with And and Or.
    
    m_ReverseIndex4(65) = 0 'Asc("A")
    m_ReverseIndex4(66) = 1 'Asc("B")
    m_ReverseIndex4(67) = 2 'Asc("C")
    m_ReverseIndex4(68) = 3 'Asc("D")
    m_ReverseIndex4(69) = 4 'Asc("E")
    m_ReverseIndex4(70) = 5 'Asc("F")
    m_ReverseIndex4(71) = 6 'Asc("G")
    m_ReverseIndex4(72) = 7 'Asc("H")
    m_ReverseIndex4(73) = 8 'Asc("I")
    m_ReverseIndex4(74) = 9 'Asc("J")
    m_ReverseIndex4(75) = 10 'Asc("K")
    m_ReverseIndex4(76) = 11 'Asc("L")
    m_ReverseIndex4(77) = 12 'Asc("M")
    m_ReverseIndex4(78) = 13 'Asc("N")
    m_ReverseIndex4(79) = 14 'Asc("O")
    m_ReverseIndex4(80) = 15 'Asc("P")
    m_ReverseIndex4(81) = 16 'Asc("Q")
    m_ReverseIndex4(82) = 17 'Asc("R")
    m_ReverseIndex4(83) = 18 'Asc("S")
    m_ReverseIndex4(84) = 19 'Asc("T")
    m_ReverseIndex4(85) = 20 'Asc("U")
    m_ReverseIndex4(86) = 21 'Asc("V")
    m_ReverseIndex4(87) = 22 'Asc("W")
    m_ReverseIndex4(88) = 23 'Asc("X")
    m_ReverseIndex4(89) = 24 'Asc("Y")
    m_ReverseIndex4(90) = 25 'Asc("Z")
    m_ReverseIndex4(97) = 26 'Asc("a")
    m_ReverseIndex4(98) = 27 'Asc("b")
    m_ReverseIndex4(99) = 28 'Asc("c")
    m_ReverseIndex4(100) = 29 'Asc("d")
    m_ReverseIndex4(101) = 30 'Asc("e")
    m_ReverseIndex4(102) = 31 'Asc("f")
    m_ReverseIndex4(103) = 32 'Asc("g")
    m_ReverseIndex4(104) = 33 'Asc("h")
    m_ReverseIndex4(105) = 34 'Asc("i")
    m_ReverseIndex4(106) = 35 'Asc("j")
    m_ReverseIndex4(107) = 36 'Asc("k")
    m_ReverseIndex4(108) = 37 'Asc("l")
    m_ReverseIndex4(109) = 38 'Asc("m")
    m_ReverseIndex4(110) = 39 'Asc("n")
    m_ReverseIndex4(111) = 40 'Asc("o")
    m_ReverseIndex4(112) = 41 'Asc("p")
    m_ReverseIndex4(113) = 42 'Asc("q")
    m_ReverseIndex4(114) = 43 'Asc("r")
    m_ReverseIndex4(115) = 44 'Asc("s")
    m_ReverseIndex4(116) = 45 'Asc("t")
    m_ReverseIndex4(117) = 46 'Asc("u")
    m_ReverseIndex4(118) = 47 'Asc("v")
    m_ReverseIndex4(119) = 48 'Asc("w")
    m_ReverseIndex4(120) = 49 'Asc("x")
    m_ReverseIndex4(121) = 50 'Asc("y")
    m_ReverseIndex4(122) = 51 'Asc("z")
    m_ReverseIndex4(48) = 52 'Asc("0")
    m_ReverseIndex4(49) = 53 'Asc("1")
    m_ReverseIndex4(50) = 54 'Asc("2")
    m_ReverseIndex4(51) = 55 'Asc("3")
    m_ReverseIndex4(52) = 56 'Asc("4")
    m_ReverseIndex4(53) = 57 'Asc("5")
    m_ReverseIndex4(54) = 58 'Asc("6")
    m_ReverseIndex4(55) = 59 'Asc("7")
    m_ReverseIndex4(56) = 60 'Asc("8")
    m_ReverseIndex4(57) = 61 'Asc("9")
    m_ReverseIndex4(43) = 62 'Asc("+")
    m_ReverseIndex4(47) = 63 'Asc("/")

    'Calculate the other arrays.
    For I = 0 To 255
        If m_ReverseIndex4(I) <> 0 Then
            m_ReverseIndex1(I) = m_ReverseIndex4(I) * 4

            m_ReverseIndex2(I, 0) = m_ReverseIndex4(I) \ 16
            m_ReverseIndex2(I, 1) = (m_ReverseIndex4(I) And &HF) * 16

            m_ReverseIndex3(I, 0) = m_ReverseIndex4(I) \ 4
            m_ReverseIndex3(I, 1) = (m_ReverseIndex4(I) And &H3) * 64
        End If
    Next I
    

End Sub

Private Sub Class_Terminate()

  ' make sure sckMail is closed

    If Pop3sck.State <> sckClosed Then
        Pop3sck.CloseSocket
    End If

    ' release memory
    Set Pop3sck = Nothing

End Sub

Public Sub GetMail(strUsername As String, strPassword As String, strHost As String, Optional intPort As Integer)

    m_strPop3Host = strHost
    m_strUsername = strUsername
    m_strPassword = strPassword

    'Change current state of session
    m_State = POP3_Connect
    '
    'Reset current state of socket
    Pop3sck.CloseSocket
    '
    'Reset local port value to prevent "Address in use" error
    Pop3sck.LocalPort = 0
    '
    'POP3 server software is listening for client connection
    'requests on 110 port, therefore we need connect to host
    'on 110 port
    If intPort = 0 Then
        intPort = 110
    End If
    RaiseEvent Pop3Status("Connecting to Pop3 Server...")
    
    Pop3sck.Connect m_strPop3Host, intPort
    
    Call WaitUntilTrue(pbConnected, 30, True)
End Sub

Private Sub Pop3sck_OnConnect()
    pbConnected = True
    RaiseEvent Pop3Status("")
End Sub

'Retrieves all waiting E-Mails and send the raw E-Mail to the
'ParseMail function

Private Sub Pop3sck_OnDataArrival(ByVal lngBytesTotal As Long)

  Dim strData As String

    '  Static intMessages          As Integer
    '  Static intCurrentMessage    As Integer
    '  Static strBuffer            As String
    'Dim intSwap As Integer
    
   ' On Error GoTo error

    'Retrieve, received from server, data.
    Pop3sck.GetData strData

    If Left$(strData, 1) = "+" Or m_State = Pop3_retr Then
        'If first symbol of server response is "+"
        'server has accepted previous client command
        'and it is waiting for next actions.
        Select Case m_State
            'This should be tohe most realistic case
          Case Pop3_retr
            '
            'Accumulate message data in strBuffer static variable

            'Set initial condition
            If Len(strBuffer) = 0 Then DataPointer = 1
            'Test to see if new string will fit within current strBuffer
            If (DataPointer + Len(strData)) > Len(strBuffer) Then
                'If not, allocate more memory
                strBuffer = strBuffer & Space$(Len(strData) + BlockSize)
            End If

            'Assign the new data
            Mid$(strBuffer, DataPointer, Len(strData)) = strData
            'Move pointer to end of new data
            DataPointer = DataPointer + Len(strData)
            '
            'Until we have been found single dot symbol on a line.
            If InStr(1, strBuffer, vbLf & "." & vbCrLf) Then
                '
                'OK! We have received a message.
                '
                'Remove server response string
                strBuffer = Mid$(strBuffer, InStr(1, strBuffer, vbCrLf) + 2)
                '
                'Remove dot symbol that is at the end of a message
                strBuffer = Left$(strBuffer, Len(strBuffer) - 3)
                '
                RaiseEvent Pop3Status("Decode Mail..." & CStr(intCurrentMessage))

                ParseMail strBuffer, intCurrentMessage
                

        
                '
                'Clear buffer for next message
                strBuffer = ""
                '
                If intCurrentMessage = intMessages Then
                    '
                    'We have received all messages, and
                    'we need say QUIT
                    AttachmentCounter = 0
                    intCurrentMessage = 1
                    
                    If bolDelMail Then
                        m_State = Pop3_dele
                        RaiseEvent Pop3Status("All mails received!")
                        Pop3sck.SendData "DELE " & intCurrentMessage & vbCrLf
                    Else
                        m_State = POP3_QUIT
                        RaiseEvent Pop3Status("All mails received!")
                        Pop3sck.SendData "QUIT" & vbCrLf
                    End If
                    

                  Else
                    '
                    'We have messages to download
                    'Increase message counter
                    intCurrentMessage = intCurrentMessage + 1
                    '
                    'Change current state of session
                    m_State = Pop3_retr
                    '
                    'Send RETR command to download next message
                    RaiseEvent Pop3Status("Receive next mail...")
                    Pop3sck.SendData "RETR " & _
                                     CStr(intCurrentMessage) & vbCrLf

                End If
            End If

          Case POP3_Connect
            '
            'Reset message counter
            intMessages = 0
            intCurrentMessage = 0
            '
            'Change current state of session
            m_State = POP3_USER
            '
            'Send to server USER command to tell him
            'which mailbox we want check out
            RaiseEvent Pop3Status("Authenticate User...")
            Pop3sck.SendData "USER " & m_strUsername & vbCrLf

          Case POP3_USER
            '
            'Change current state of session
            m_State = POP3_PASS
            '
            'Send password with PASS command
            RaiseEvent Pop3Status("Send Password...")
            Pop3sck.SendData "PASS " & m_strPassword & vbCrLf

          Case POP3_PASS
            '
            'Change current state of session
            m_State = POP3_STAT
            '
            'Send STAT command to know how many
            'messages in the mailbox
            RaiseEvent Pop3Status("Get Number of E-Mails...")
            Pop3sck.SendData "STAT" & vbCrLf

          Case POP3_STAT
            '
            'Parse server response to get number
            'of messages in the mailbox
            intMessages = CInt(Mid$(strData, 5, _
                          InStr(5, strData, " ") - 5))

            If intMessages > 0 Then

                'Redim Buffer to download all Mails
                ReDim Mails(intMessages - 1)
                '
                'OK! We have one or more.
                'Change current state of session
                m_State = Pop3_retr
                '
                'Increase counter to know wich message
                'we will retrieving
                intCurrentMessage = intCurrentMessage + 1
                '
                'And send RETR command to download
                'first message
                Pop3sck.SendData "RETR 1" & vbCrLf

              Else
                '
                'We have not any message in the mailbox.
                'Send QUIT command and show to user a message
                'that she or he has not mail.
                m_State = POP3_QUIT
                Pop3sck.SendData "QUIT" & vbCrLf

                RaiseEvent Pop3Status("You have not mail!")
            End If
            
          Case Pop3_dele
            If intCurrentMessage = intMessages Then
                m_State = POP3_QUIT
                Pop3sck.SendData "QUIT" & vbCrLf
            Else
                m_State = Pop3_dele
                intCurrentMessage = intCurrentMessage + 1
                Pop3sck.SendData "DELE " & intCurrentMessage & vbCrLf
                
            End If
            
          Case POP3_QUIT
            AttachmentCounter = 0
            RaiseEvent Pop3Status("")
            RaiseEvent ReceivedSuccesful
            Pop3sck.CloseSocket

        End Select
      Else
error:
        'Hide Status
        RaiseEvent Pop3Status("")
        'Show Error
        RaiseEvent MimeFailed(strData)
        Pop3sck.CloseSocket
    End If

End Sub

Private Sub Pop3sck_OnError(ByVal intNumber As Integer, strDescription As String, ByVal lngScode As Long, ByVal strSource As String, ByVal strHelpFile As String, ByVal lngHelpContext As Long, fCancelDisplay As Boolean)

    RaiseEvent MimeFailed("Winsock Error: #" & intNumber & "Desc: " & strDescription)

End Sub

Public Sub ParseMail(strMessage As String, MailCounter As Integer)

  Dim intPosA         As Long
  Dim intPosB         As Long
  Dim intPos          As Long
  Dim intCount        As Long
  Dim intFrom         As Long
  Dim intTo           As Long
  Dim intTemp         As Long
  Dim EndBoundary     As Long
  'Dim Counter         As Long
  Dim Counter2        As Long
  Dim vHeaders        As Variant
  Dim strTemp         As String
  Dim BoundArray      As Variant
  Dim strHeader       As String
  Dim strHeaderName   As String
  Dim strHeaderValue  As String
  Dim TmpString       As String
  Dim Boundary        As String
  Dim BoundaryVal     As String
  Dim strFilename     As String
  Dim MimeHeaders()   As String


    intPosA = InStr(1, strMessage, vbCrLf & vbCrLf)

    'A little Error Check
    If Not intPosA > 0 Then
        Exit Sub
    End If

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av在线电影| 国产精品素人视频| 久久久久一区二区三区四区| 亚洲国产精品高清| 亚洲自拍偷拍av| 男人的j进女人的j一区| 国产电影一区在线| 日本精品一区二区三区高清| 日韩视频不卡中文| 国产精品乱人伦中文| 亚洲国产综合人成综合网站| 久久精品99久久久| 99re这里都是精品| 日韩一区二区三区电影| 欧美国产激情一区二区三区蜜月| 亚洲综合色自拍一区| 精品一区二区三区免费毛片爱| 91网站最新地址| 欧美白人最猛性xxxxx69交| 日韩毛片高清在线播放| 日韩国产欧美在线播放| 不卡的av电影| 91精品国产黑色紧身裤美女| 国产精品丝袜一区| 日韩福利电影在线| 色综合天天综合色综合av | 国产传媒欧美日韩成人| 婷婷综合另类小说色区| 久久精品72免费观看| 欧美午夜在线观看| 成人av在线一区二区| 久久免费的精品国产v∧| 自拍偷自拍亚洲精品播放| 另类人妖一区二区av| 精品视频免费看| 亚洲国产一区二区a毛片| av一区二区三区在线| 中文字幕日韩欧美一区二区三区| 青青草国产成人av片免费| 在线不卡一区二区| 日本中文字幕一区二区有限公司| 欧美亚洲高清一区二区三区不卡| 亚洲视频一区在线观看| 精品一区二区在线免费观看| 欧美三级电影一区| 日韩专区在线视频| 日韩欧美一区二区久久婷婷| 蜜臀99久久精品久久久久久软件| 欧美欧美欧美欧美首页| 亚洲成人免费视| 日韩一级精品视频在线观看| 久久99最新地址| 国产精品免费人成网站| 欧美中文字幕不卡| 日韩高清不卡一区二区| 7777精品伊人久久久大香线蕉 | 天堂在线一区二区| 欧美精品v国产精品v日韩精品| 日本女人一区二区三区| 久久无码av三级| 91黄视频在线观看| 麻豆精品在线看| 综合亚洲深深色噜噜狠狠网站| 欧美日韩mp4| 精品一区二区三区在线观看| 精品国精品国产尤物美女| 高清视频一区二区| 青娱乐精品视频| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 欧日韩精品视频| 久久精品国产精品亚洲红杏| 91精品啪在线观看国产60岁| 粉嫩av一区二区三区粉嫩| 香蕉加勒比综合久久| 国产精品国产三级国产专播品爱网| 91精品国产福利在线观看| 国产91清纯白嫩初高中在线观看 | 久久国产成人午夜av影院| 亚洲一区二区三区爽爽爽爽爽| 亚洲久草在线视频| 久久久久久久久岛国免费| 国产**成人网毛片九色| 香蕉乱码成人久久天堂爱免费| 欧美国产日韩精品免费观看| 欧美一卡2卡3卡4卡| 色系网站成人免费| 91蜜桃网址入口| www.在线成人| 国产91在线看| 久久精品99久久久| 青草国产精品久久久久久| 亚洲小说春色综合另类电影| 亚洲精品精品亚洲| 中文字幕中文在线不卡住| 欧美在线综合视频| 粉嫩久久99精品久久久久久夜| 国产伦精品一区二区三区免费| 另类人妖一区二区av| 另类小说综合欧美亚洲| 麻豆国产欧美日韩综合精品二区| 亚洲电影一区二区三区| 亚洲一区在线观看免费| 亚洲主播在线播放| 日韩激情一二三区| 久久66热re国产| 亚洲国产精品黑人久久久| 精品国产污网站| 国产日韩综合av| 夜夜嗨av一区二区三区四季av| 亚洲黄色小说网站| 日日夜夜精品视频天天综合网| 午夜在线成人av| 国产综合久久久久久鬼色 | 中文字幕精品在线不卡| 欧美欧美午夜aⅴ在线观看| 欧美午夜精品一区| 精品国产乱码久久久久久牛牛| 国产欧美精品日韩区二区麻豆天美| 中文字幕中文字幕在线一区| 日韩美女久久久| 午夜精品福利在线| 91视频.com| 国产精品国产三级国产a| 国产精品一二三四区| 日韩欧美黄色影院| 免费一级片91| 69堂精品视频| 三级在线观看一区二区| 蜜臀va亚洲va欧美va天堂| 91视频免费播放| 日韩亚洲国产中文字幕欧美| 最新欧美精品一区二区三区| 国产中文一区二区三区| 欧美剧情片在线观看| 一区二区中文字幕在线| 国产精品一区三区| 久久婷婷国产综合国色天香| 韩国女主播成人在线| 精品久久国产字幕高潮| 青青草97国产精品免费观看无弹窗版| 91精品国产综合久久香蕉的特点 | 国产一区二区三区电影在线观看 | 香蕉加勒比综合久久| 国产在线不卡视频| 91福利视频在线| 午夜精品福利视频网站| 精品对白一区国产伦| 国产jizzjizz一区二区| 国产精品女主播av| 色婷婷综合久久久中文一区二区| 亚洲蜜臀av乱码久久精品蜜桃| 免费看日韩精品| 欧美另类z0zxhd电影| 亚洲午夜精品17c| 色国产精品一区在线观看| 亚洲精品福利视频网站| 色综合久久88色综合天天免费| 国产精品伦理一区二区| www.欧美.com| 亚洲免费在线看| 在线精品视频免费观看| 日韩av电影免费观看高清完整版在线观看 | 一区二区在线观看免费视频播放| 美国十次综合导航| 国产精品视频第一区| heyzo一本久久综合| 午夜精品久久久久久久久| 欧美狂野另类xxxxoooo| 天天综合网 天天综合色| 欧美精品乱人伦久久久久久| 午夜电影一区二区| 欧美精品一区二区在线观看| 韩国成人在线视频| 亚洲福利视频一区| 欧美变态tickle挠乳网站| gogo大胆日本视频一区| 免费成人美女在线观看.| 国产精品看片你懂得 | 欧美电影免费观看完整版| 一本色道久久综合狠狠躁的推荐 | 一本色道a无线码一区v| 亚洲电影一级片| 久久婷婷一区二区三区| 精品婷婷伊人一区三区三| 韩国毛片一区二区三区| 午夜视频在线观看一区二区| 久久久综合视频| 欧美日韩一区二区三区四区| 国产**成人网毛片九色| 五月天丁香久久| 激情另类小说区图片区视频区| 欧美精品一区二区三区在线| 国产成人h网站| 国产成人在线视频网址| 精品一区二区三区免费观看| 日本va欧美va精品| 久久精品国产精品亚洲精品| 日本女优在线视频一区二区| 日韩精品亚洲专区| 久久精品999|