| Author | 
         | 
         
      
        
         
         pitufo76 Newbie 
          
 
  Joined: 27 December 2011 Location: Uruguay
 Online Status: Offline Posts: 5
          | 
        
         
          
           | Posted: 27 December 2011 at 9:03am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hi, i'm Maximiliano, currently i have a problem, i need to get the full folder path from an id folder and id account.
 
 Can help me?
 
 Regards
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Igor AfterLogic Support 
          
 
  Joined: 24 June 2008 Location: United States
 Online Status: Offline Posts: 6168
          | 
        
         
          
           | Posted: 27 December 2011 at 9:14am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Check full_path field in awm_folders database table, use id_acct and id_folder for lookup.
 
 --
 Regards,
 Igor, AfterLogic Support
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         pitufo76 Newbie 
          
 
  Joined: 27 December 2011 Location: Uruguay
 Online Status: Offline Posts: 5
          | 
        
         
          
           | Posted: 28 December 2011 at 3:29am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hi, i try that, but no path there, there is awn_folder database table data.
 
  id_folder     id_acct     id_parent     type     name     full_path &n bsp;   sync_type     hide     fld_order     flags
   9     9     -1     1     Inbox#     Inbox#     4&n bsp;    0     0     
 10     9     -1     2     Sent Items#     Sent Items#     0     0     1     
  11     9     -1     3     Drafts#     Drafts#      0     0     2     
  12     9     -1     4     Trash#     Trash#     0& nbsp;    0     3     
  13     10     -1     1     Inbox#     Inbox#     4      0     0     
 14     10     -1     2     Sent Items#     Sent Items#     0     0     1     
  15     10     -1     3     Drafts#     Drafts#      ;0     0     2     
  16     10     -1     4     Trash#     Trash#     0      0     3     
  17     11     -1     1     Inbox#     Inbox#     5      0     0     
 18     11     -1     2     Sent Items#     Sent Items#     0     0     1     
  19     11     -1     3     Drafts#     Drafts#      ;0     0     2     
  20     11     -1     4     Trash#     Trash#     0      0     3     
  25     13     -1     1     Inbox#     Inbox#     4      0     0     
 26     13     -1     2     Sent Items#     Sent Items#     0     0     1     
  27     13     -1     3     Drafts#     Drafts#      ;0     0     2     
  28     13     -1     4     Trash#     Trash#     0      0     3     
 
 Regards,
 Maximiliano
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Igor AfterLogic Support 
          
 
  Joined: 24 June 2008 Location: United States
 Online Status: Offline Posts: 6168
          | 
        
         
          
           | Posted: 28 December 2011 at 3:34am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
The 6th column holds the proper full path on IMAP tree, "#" character is placed there for technical reason and should be removed. The path depends on IMAP server implementation, and in some cases that could be, say, "INBOX.Drafts" rather than "Drafts". 
 
 Note that this is IMAP folder path, not a filesystem path for example (that one cannot be retrieved via IMAP).
 
 --
 Regards,
 Igor, AfterLogic Support
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         pitufo76 Newbie 
          
 
  Joined: 27 December 2011 Location: Uruguay
 Online Status: Offline Posts: 5
          | 
        
         
          
           | Posted: 28 December 2011 at 3:49am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
maybe i didn't explain well.
 
 i need the folder path where mails are dowloads.
 like c:\www\root\app_data\s\samplemail@sampledomain.com.101\inbox
 
 all mails are POP3.
 
 i'm working in asp .net
 
 and need to, how to download an email from server from code behind having str_uid message or else fields, and server connection data.
 
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Igor AfterLogic Support 
          
 
  Joined: 24 June 2008 Location: United States
 Online Status: Offline Posts: 6168
          | 
        
         
          
           | Posted: 28 December 2011 at 4:40am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Quote: 
   
    
    
      
       | i need the folder path where mails are dowloads. | 
       
       | 
    
    | 
 
 
 
 See CreateFolderFullPath method in App_Code/FileSystem.cs file. Please note that it takes folder name as an argument.
 
 
Quote: 
   
    
    
      
       | and need to, how to download an email from server from code behind having str_uid message or else fields, and server connection data. | 
       
       | 
    
    | 
 
 
 
 Behind the scenes, WebMail Pro ASP.NET uses MailBee.NET Objects for email-related operations. The method used for downloading a single message is described in the documentation.
 
 --
 Regards,
 Igor, AfterLogic Support
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         pitufo76 Newbie 
          
 
  Joined: 27 December 2011 Location: Uruguay
 Online Status: Offline Posts: 5
          | 
        
         
          
           | Posted: 28 December 2011 at 6:29am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Thanks Igor, i do that and works.
 
 searching and testing the documentation link of MailBee.NET Objects i get a message by index on server. How can i do to get one message without server index. I have the message in database on awm_messages table. but i need to download again by my self for a copy of this if it not in download folder.
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Igor AfterLogic Support 
          
 
  Joined: 24 June 2008 Location: United States
 Online Status: Offline Posts: 6168
          | 
        
         
          
           | Posted: 28 December 2011 at 9:35pm | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Well, index is simply an ordinal number from 1 to number of messages. Of course, message order will change when you receive new messages or delete existing ones. Fortunately, each message also has UID assigned and there are methods to get message index based on server UID, or vice versa.
 
 If you take a look into App_Code/MailStoragePop3.cs you'll find LoadMessage there with the following action taken in the first place:
 
 
Code: 
   
    
    
      
       | int indexOnServer = _pop3Obj.GetMessageIndexFromUid(index.ToString()); | 
       
       | 
    
    | 
 
 
 
 Thus, you can take server UID stored in str_uid field, convert it into message index and then proceed with the download, assuming the message is still on POP3 server of course.
 
 --
 Regards,
 Igor, AfterLogic Support
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         pitufo76 Newbie 
          
 
  Joined: 27 December 2011 Location: Uruguay
 Online Status: Offline Posts: 5
          | 
        
         
          
           | Posted: 29 December 2011 at 4:12am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Ok, very thanks Igor.
 
 Have a happy new year
 
 Regards,
 Maximiliano
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |