Re: [Fwd: Issue creating folders]
- From: Philip Van Hoof <spam pvanhoof be>
- To: tinymail-devel-list <tinymail-devel-list gnome org>
- Cc: Sergio <quiniela_rnasa yahoo es>
- Subject: Re: [Fwd: Issue creating folders]
- Date: Tue, 24 Apr 2007 20:34:46 +0200
On Tue, 2007-04-24 at 20:32 +0200, Philip Van Hoof wrote:
> ps. It looks like Sergio is right
>
> email message attachment, "Forwarded message - Issue creating folders"
> > -------- Forwarded Message --------
> > From: Sergio <quiniela_rnasa yahoo es>
> > To: tinymail-devel-list gnome org
> > Subject: Issue creating folders
> > Date: Tue, 24 Apr 2007 20:16:56 +0200
> >
> > Hi,
> >
> > I was trying to create a folder in an IMAP folder with the server
> > stopped. Then I got an abort(). Looking at the code the abort is located
> > in tny-camel-folder.c:2496.
> >
> > The problem is that the condition that the assert checks could happen in
> > this situation. Looking at the create_folder method of the IMAP provider
> > it returns NULL when the store is not online, so I think we should
> > manage this case in a better way.
>
Aha, but this also means that no folder will be created. So it's
basically an error situation that should trigger setting "ex" to
something that is a camel error.
if (!camel_disco_store_check_online (CAMEL_DISCO_STORE (store), ex))
return NULL;
Something like: you are offline, I can't create this folder.
I know offline moving messages around is possible. I don't think offline
creating folders is. I haven't in-depth checked this in Camel's provider
code though.
--
Philip Van Hoof, software developer
home: me at pvanhoof dot be
gnome: pvanhoof at gnome dot org
http://www.pvanhoof.be/blog
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]