Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Move emails between folders
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Move emails between folders
Divers
Thread ID:
01453666
Message ID:
01453666
Vues:
111
Does anyone have any idea why this does not work

thanks
k
LOCAL loOutlook   AS Outlook.Application
LOCAL loNameSpace AS Outlook.NameSpace 
LOCAL loInBox     AS Object 
LOCAL loMSG      AS Outlook.MailItem 
LOCAL lnUnRead    AS Integer 

#DEFINE olFolderInBox      6
#DEFINE olFolderDone      3

loOutlook   = CREATEOBJECT('Outlook.Application') &&
loNameSpace = loOutlook.GetNamespace("MAPI")
loInBox     = loNameSpace.GetDefaultFolder(olFolderInBox)
lnUnRead    = 0

oloMSG = olNameSpace.GetDefaultFolder(olFolderInBox).Items
FOR EACH loMSG IN loInBox.Items
  
IF loMSG.UnRead 
wait window loMSG.Subject            
loMSG.Move(loNameSpace.Folders(6).Folders(3))    
Endif
Next
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform