| Author | 
         | 
         
      
        
         
         Mhd Newbie 
          
 
  Joined: 18 February 2008 Location: United Kingdom
 Online Status: Offline Posts: 38
          | 
        
         
          
           | Posted: 19 May 2008 at 9:00am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hi, Could you please tell me what is the first parameter for the function DeleteMessages mean? 
 I opened the documentation and found this sample:
 
 imp.DeleteMessages("1,5:7", False)
 
 What is "1,5:7"?
 
 Regards.
 
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Andrew AfterLogic Support 
          
 
  Joined: 28 April 2006 Location: United States
 Online Status: Offline Posts: 1189
          | 
        
         
          
           | Posted: 19 May 2008 at 10:30am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
This is an index set which means messages with indexes 1, 5, 6, 7. They'll be deleted from mail server.
 
 Best regards,
 Andrew
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Mhd Newbie 
          
 
  Joined: 18 February 2008 Location: United Kingdom
 Online Status: Offline Posts: 38
          | 
        
         
          
           | Posted: 19 May 2008 at 2:32pm | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Thank you for your reply but is it a zero based index?
 
  
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Andrew AfterLogic Support 
          
 
  Joined: 28 April 2006 Location: United States
 Online Status: Offline Posts: 1189
          | 
        
         
          
           | Posted: 20 May 2008 at 1:03am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
No, POP3 and IMAP standards declare 1-based indexes.
 
 Best regards,
 Andrew
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |