Hi Pavel!
As you requested, here is the output:
Also, as you can see, the only flag when fetching the mails for the very first time is: /Recent
![Image]()
I have this little example project with the issue can be seen:
Playing with imap
Made with VS2010 and .net 4.0 framework.
I must remark that I'm currently connecting to a Zimbra custom own server, so maybe that could be the reason, but anyway, if you could look into it if i'm doing something wrong, it will be really nice to know.
As you requested, here is the output:
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\andy\documents\visual studio 2010\Projects\JugandoConIMAP\JugandoConIMAP\bin\Debug\JugandoConIMAP.vshost.exe'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'
The thread 'vshost.NotifyLoad' (0x10d8) has exited with code 0 (0x0).
The thread '<No Name>' (0x1eb4) has exited with code 0 (0x0).
The thread 'vshost.LoadReference' (0x13c4) has exited with code 0 (0x0).
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\andy\documents\visual studio 2010\Projects\JugandoConIMAP\JugandoConIMAP\bin\Debug\JugandoConIMAP.exe', Symbols loaded.
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\andy\documents\visual studio 2010\Projects\JugandoConIMAP\JugandoConIMAP\bin\Debug\ImapX.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.resources\v4.0_4.0.0.0_es_b77a5c561934e089\System.resources.dll'
A first chance exception of type 'System.FormatException' occurred in System.dll
A first chance exception of type 'System.FormatException' occurred in System.dll
'JugandoConIMAP.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_es_b77a5c561934e089\mscorlib.resources.dll'
A first chance exception of type 'System.ArgumentNullException' occurred in mscorlib.dll
The thread '<No Name>' (0x1b00) has exited with code 0 (0x0).
The thread 'vshost.RunParkingWindow' (0x1d04) has exited with code 0 (0x0).
The thread '<No Name>' (0x1bd0) has exited with code 0 (0x0).
The program '[6892] JugandoConIMAP.vshost.exe: Program Trace' has exited with code 0 (0x0).
The program '[6892] JugandoConIMAP.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).
there is an exception :/Also, as you can see, the only flag when fetching the mails for the very first time is: /Recent

I have this little example project with the issue can be seen:
Playing with imap
Made with VS2010 and .net 4.0 framework.
I must remark that I'm currently connecting to a Zimbra custom own server, so maybe that could be the reason, but anyway, if you could look into it if i'm doing something wrong, it will be really nice to know.