VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Email Monitor"
   ClientHeight    =   6840
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   12360
   LinkTopic       =   "Form1"
   ScaleHeight     =   6840
   ScaleWidth      =   12360
   StartUpPosition =   1  'CenterOwner
   Begin VB.CommandButton Command1 
      Caption         =   "E&xit"
      Height          =   375
      Left            =   9000
      TabIndex        =   9
      Top             =   6360
      Width           =   1215
   End
   Begin VB.ListBox List4 
      Height          =   5910
      ItemData        =   "Form1.frx":0000
      Left            =   6960
      List            =   "Form1.frx":0002
      TabIndex        =   7
      TabStop         =   0   'False
      Top             =   360
      Width           =   5295
   End
   Begin VB.ListBox List3 
      Height          =   5910
      ItemData        =   "Form1.frx":0004
      Left            =   4680
      List            =   "Form1.frx":0006
      TabIndex        =   6
      TabStop         =   0   'False
      Top             =   360
      Width           =   2175
   End
   Begin VB.ListBox List2 
      Height          =   5910
      ItemData        =   "Form1.frx":0008
      Left            =   2400
      List            =   "Form1.frx":000A
      TabIndex        =   5
      TabStop         =   0   'False
      Top             =   360
      Width           =   2175
   End
   Begin VB.ListBox List1 
      Height          =   5910
      ItemData        =   "Form1.frx":000C
      Left            =   120
      List            =   "Form1.frx":000E
      TabIndex        =   4
      TabStop         =   0   'False
      Top             =   360
      Width           =   2175
   End
   Begin VB.Label Label4 
      Alignment       =   2  'Center
      Caption         =   "Subject:"
      Height          =   255
      Left            =   6960
      TabIndex        =   3
      Top             =   120
      Width           =   5295
   End
   Begin VB.Label Label3 
      Alignment       =   2  'Center
      Caption         =   "Sender Email Address:"
      Height          =   255
      Left            =   4680
      TabIndex        =   2
      Top             =   120
      Width           =   2175
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      Caption         =   "Sender Name:"
      Height          =   255
      Left            =   2400
      TabIndex        =   1
      Top             =   120
      Width           =   2175
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      Caption         =   "Sender:"
      Height          =   255
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   2175
   End
   Begin VB.Label Label5 
      BorderStyle     =   1  'Fixed Single
      Height          =   255
      Left            =   120
      TabIndex        =   8
      Top             =   6360
      Width           =   6735
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Public myEmailMonitor As Class1

Private Sub Command1_Click()
  Unload Me
End Sub

Public Sub Form_Initialize()
  Set myEmailMonitor = New Class1
End Sub

Private Sub Form_Load()
  Show
  
  'Dim myOutlookApplication As Outlook.Application
  'Dim myOutlookFolderName  As Outlook.MAPIFolder
  'Dim myOutlookObject      As Object
  
  'Set myOutlookApplication = New Outlook.Application
  'Set myOutlookFolderName = myOutlookApplication.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
  
  'For Each myOutlookObject In myOutlookFolderName.Items
  '  If myOutlookObject.Class = olMail Then
  '    Debug.Print myOutlookObject.Subject
  '    Debug.Print myOutlookObject.SenderEmailAddress
  '    List1.AddItem myOutlookObject.Subject
  '    List2.AddItem myOutlookObject.SenderEmailAddress
  '  End If
  'Next
  
  'Set myOutlookObject = Nothing
  'Set myOutlookFolderName = Nothing
  
  '''''''''myOutlookApplication.Quit
  
  'Set myOutlookApplication = Nothing
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  End
End Sub

