| Author |  | 
      
        | JeanC Newbie
 
  
 
 Joined: 07 May 2010
 Location: Canada
 Online Status: Offline
 Posts: 2
 | 
          Hi,
           | Posted: 07 May 2010 at 6:32am | IP Logged |   |  
           | 
 |  
 I have an issue with the
 Imap.RenameFolder("OldFolderName","NewFolderNa
 me"); When I do this, all the attachment in
 all the email disapear. I check in the source
 code of the email and I couldnt see anymore
 the file in base-64
 
 Here my code:
 
 foreach (var myFolder in _folders)
 {
 if
 (imapFolderCollection.SingleOrDefault(p =>
 p.RawName == myFolder.FullName) != null)
 continue;
 var oldMatch =
 imapFolderCollection.SingleOrDefault(p =>
 p.RawName == myFolder.OldFullName);
 if (oldMatch != null)
 {
 
 _imapLoop.RenameFolder(oldMatch.RawName,
 myFolder.FullName);
 }
 else
 {
 
 CreateFolder(myFolder);
 }
 }
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          What makes you think that this is caused by renaming a folder? This method is just sending a command to IMAP server, nothing more. So this is either something else in your code, or a major issue of IMAP server itself.
           | Posted: 07 May 2010 at 6:54am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | JeanC Newbie
 
  
 
 Joined: 07 May 2010
 Location: Canada
 Online Status: Offline
 Posts: 2
 | 
          Hi Igor,
           | Posted: 10 May 2010 at 12:15pm | IP Logged |   |  
           | 
 |  
 You're right, I did a mistake in my code and I
 found that after I rename the folder, I upload
 all the email without theirs attachment. Sorry
 for this.
 
 Thanks
 
 | 
       
        | Back to Top |     | 
       
       
        |  |