Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Missing Attachment when Rename a Folder Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
JeanC
Newbie
Newbie


Joined: 07 May 2010
Location: Canada
Online Status: Offline
Posts: 2
Posted: 07 May 2010 at 6:32am | IP Logged Quote JeanC

Hi,

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 View JeanC's Profile Search for other posts by JeanC
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 07 May 2010 at 6:54am | IP Logged Quote Igor

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.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
JeanC
Newbie
Newbie


Joined: 07 May 2010
Location: Canada
Online Status: Offline
Posts: 2
Posted: 10 May 2010 at 12:15pm | IP Logged Quote JeanC

Hi Igor,

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 View JeanC's Profile Search for other posts by JeanC
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide