| Author |  | 
      
        | cbatur Guest Group
 
  
 
 Joined: 10 November 2003
 Online Status: Online
 Posts: 262
 | 
          Hi,
           | Posted: 28 November 2004 at 1:31pm | IP Logged |   |  
           | 
 |  
 I'm having little bit of a problem with mail deleting, I'm sure it's very easy to fix but I can't figure it out and it's frustrating. Anyway...
 
 The delete meail method only works with message index and I'm having a hard time tracking the message index of messages, and I sometimes end up deleting messages that I don't want to. Is there any other method that deletes messages by UID ? or some other property ? I could not find that in the help documents.
 
 Thanks
 
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          You can use GetMessageNumberFromUID to obtain message number from UID and then pass this number to DeleteMessage method.
           | Posted: 28 November 2004 at 2:35pm | IP Logged |   |  
           | 
 |  
 n = POP3.GetMessageNumberFromUID(myUID)
 If n > 0 Then
 POP3.DeleteMessage n
 Else
 MsgBox "Invalid UID!"
 End If
 
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  |