RE: Move and copy messages
- From: <Dirk-Jan Binnema nokia com>
- To: <svillar igalia com>, <tinymail-devel-list gnome org>
- Subject: RE: Move and copy messages
- Date: Thu, 23 Nov 2006 19:54:01 +0200
Hi Sergio, Philip, all,
>-----Original Message-----
>From: tinymail-devel-list-bounces gnome org
>[mailto:tinymail-devel-list-bounces gnome org] On Behalf Of
>ext Sergio Villar Senin
>Sent: Friday, November 17, 2006 12:56
>To: tinymail-devel-list gnome org
>Subject: Re: Move and copy messages
>
>Philip Van Hoof wrote:
>> On Wed, 2006-11-15 at 18:36 +0100, Sergio Villar Senin wrote:
>>> What do you think about that? Will a patch with this be interesting?
>>
>> Looking forward to your patch
>
>Hi all,
>
>find attached the patch to allow tinymail to transfer messages
>between folders. With transfer I mean both copy and move. I've
>also included a new functional test to check if it works fine
>or not. The test transfers all the messages of the source
>folder to the destination one. A typical call would be:
>
>msg-transfer -f 10 -t children -o -m
>I'd like people to review it. Comments? Opinions?
Great work! Some comments though:
One issue here (also with creating folders I guess) is blocking; moving
messages, creating folders etc. could take quite some time when on
remote servers, esp. when you you are not connected yet, etc.
So, I guess it would be nice to make a non-blocking version which
takes a callback as a parameter, to report status later? Assuming that
is possible on the camel level?
Then, the patch:
- I would not use g_assert there; maybe g_return_if_fail would be
better?
- I would make a special case for src == dst, just like you make a
special case for list_length == 0
- iter must be unref'd I guess (in tny_camel_folder_transfer_msgs)?
That's all.
Best wishes,
Dirk.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]