Re: [Evolution] Cannot Archive Messages Keep Showing Up

2020-04-16 Thread Patrick O'Callaghan
On Thu, 2020-04-16 at 09:41 -0600, Zan Lynx wrote:
> On 4/16/2020 6:00 AM, Patrick O'Callaghan wrote:
> > IMAP is not designed to handle immediate synchronisation between two
> > clients active on the same account. They will eventually synchronise,
> > but not immediately.
> 
> That does depend on your clients and IMAP server. My personal email 
> server running Cyrus IMAP updates instantly between Thunderbird and K9 
> Mail. That's because with an active connection and IDLE (where the 
> client passively waits for notification of changes) watched folders get 
> immediately updated.
> 
> I haven't tried this with Evolution lately, but I thought it did support 
> IDLE notification.

It does, but it's an option. And not all IMAP servers are the same.

poc

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Cannot Archive Messages Keep Showing Up

2020-04-16 Thread Zan Lynx

On 4/16/2020 6:00 AM, Patrick O'Callaghan wrote:

IMAP is not designed to handle immediate synchronisation between two
clients active on the same account. They will eventually synchronise,
but not immediately.


That does depend on your clients and IMAP server. My personal email 
server running Cyrus IMAP updates instantly between Thunderbird and K9 
Mail. That's because with an active connection and IDLE (where the 
client passively waits for notification of changes) watched folders get 
immediately updated.


I haven't tried this with Evolution lately, but I thought it did support 
IDLE notification.

--
Knowledge is Power -- Power Corrupts
Study Hard -- Be Evil
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Cannot Archive Messages Keep Showing Up

2020-04-16 Thread Patrick O'Callaghan
On Thu, 2020-04-16 at 13:09 +0200, Alexander Kerner via evolution-list
wrote:
> indeed there was another instance of Evolution running on another machine.
> I changed that and now it seems to work.
> I have no idea though why or how the other instance may sabotage my imap
> operations.

[Please don't top-post]

IMAP is not designed to handle immediate synchronisation between two
clients active on the same account. They will eventually synchronise,
but not immediately.

poc

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Integration with syncevolution

2020-04-16 Thread Adam Tauno Williams
On Thu, 2020-04-16 at 08:34 +0430, h.nasajp...@pantherx.org wrote:
> Hi,
> > libsyncevolution can be used in simple applications without the
> dependency on any kind of IPC mechanism
> I want to integrate my C++ applications with syncevolution via
> `libsyncevolution` or `eds`?
> Is there any document about them? How to? Where? Example? 

I would start by looking at the Folks library/API - which is what GNOME
Contacts uses
https://wiki.gnome.org/Projects/Folks
https://wiki.gnome.org/Apps/Contacts

-- 
Adam Tauno Williams  GPG D95ED383
OpenGroupware Developer 
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Cannot Archive Messages Keep Showing Up

2020-04-16 Thread Alexander Kerner via evolution-list
Hi,
indeed there was another instance of Evolution running on another machine.
I changed that and now it seems to work.
I have no idea though why or how the other instance may sabotage my imap
operations.
Best,
Alex
 

On Thu, 2020-04-16 at 08:22 +0200, Milan Crha via evolution-list wrote:
> On Wed, 2020-04-15 at 21:01 +0200, Alexander Kerner via evolution-list
> wrote:
> > [imapx:A] I/O: 'A00340 UID MOVE 969 Archiv'
> > [imapx:A] I/O: '* OK [COPYUID 1451911991 969 21295] Moved UIDs.
> > * VANISHED 969
> > A00340 OK [HIGHESTMODSEQ 251] Move completed (0.006 + 0.000 + 0.005
> > secs).'
> 
>   Hi,
> the above means that the IMAPx told the server to move message with UID
> 969 to the Archiv folder and the server confirmed the move, telling
> that the added message in the Archiv folder has UID 21295 there.
> 
> > [imapx:A] I/O: '* 191 FETCH (UID 967 FLAGS (\Seen))
> > * 192 EXISTS
> > * 192 FETCH (UID 970 RFC822.SIZE 4320 FLAGS (\Seen) RFC822.HEADER
> > {1433}
> > {now the message is printed that I am trying to archive}
> 
> This is downloading message with UID 970, which means it's a new
> message (the previous was 969). I do not see anything in the log
> snippet what Evolution would do to move the message back (supposing you
> did not remove that part), thus it's something else returning the
> message back to the original folder. Could it be any (server side)
> filters do that? Or maybe filters from another client, in case you
> access the account from multiple clients.
> 
> If you cannot find anything, then I'd ask the server admins. They might
> be able to explain this. I do not see any faulty thing from the log
> snippet.
>   Bye,
>   Milan
> 
> ___
> evolution-list mailing list
> evolution-list@gnome.org
> To change your list options or unsubscribe, visit ...
> https://mail.gnome.org/mailman/listinfo/evolution-list

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Integration with syncevolution

2020-04-16 Thread Milan Crha via evolution-list
On Thu, 2020-04-16 at 12:52 +0430, Hamzeh Nasajpour wrote:
> 1. The `syncevolution` is two-way synchronizing tools?

Hi,
I suppose so, but I do not know for sure. I do not use syncevolution,
it is not managed here, it's a standalone project (
https://www.syncevolution.org).

> 2. As I said I have some C++ applications that should be able to
> working with the local store via APIs of `evolution-data-server`. In
> addition I should run some CLI commands for `configure`, `sync` and
> so on with `syncevolution` cli app. Is there any library for these
> acts that I can use them instead of running the CLI commands?

Again, it's a question for the syncevolution developers, not here.

As I said, the syncevolution is an unneeded overhead from my point of
view. You can configure most things directly in Evolution (or by using
evolution-data-server API) and use those ESource-s instead.
Bye,
Milan

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Integration with syncevolution

2020-04-16 Thread Hamzeh Nasajpour
> only it's "evolution-data-server", not "service", but it's just a typo

Yes, you're right. ;)

As the last questions: 
1. The `syncevolution` is two-way synchronizing tools? I mean always we 
synchronize two things with each other. Remote to Local and Local to Remote. I 
want to say if I change the local store (ex: Write to locale store contact), so 
these changes will be applied to the remote?
 
2. As I said I have some C++ applications that should be able to working with 
the local store via APIs of `evolution-data-server`. In addition I should run 
some CLI commands for `configure`, `sync` and so on with `syncevolution` cli 
app. Is there any library for these acts that I can use them instead of running 
the CLI commands?


Regards,
Hamzeh
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Integration with syncevolution

2020-04-16 Thread Milan Crha via evolution-list
Hi,

On Thu, 2020-04-16 at 12:21 +0430, Hamzeh Nasajpour wrote:
> As a result: 
> * I should install `syncevolution` and `evolution-data-service`.
> * set-up it for synchronization - my Online account and local store.
> * Access to the local store (Data: contact, calendar and ...) with
> APIs of `evolution-data-service` (`ECalClient`, `EBookClient`).
> 
> Right?

Right. :) (only it's "evolution-data-server", not "service", but it's
just a typo).

Bye,
Milan


___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Integration with syncevolution

2020-04-16 Thread Hamzeh Nasajpour


> being this about Google services, you can avoid all of that and use
> libgdata to access Google data directly.

Google was only an example, maybe fastmail or any other online provider.

> You can also avoid syncevolution (it's an unnecessary overhead in your
> case, from my point of view), simply configure Google account either
> directly in Evolution, or in GNOME Online Accounts (where you can
> select what data should be synchronized). 

Generally, I have some limitations that I don't want to use `Evolution` or 
`GOA`. 

As a result: 
* I should install `syncevolution` and `evolution-data-service`.
* set-up it for synchronization - my Online account and local store.
* Access to the local store (Data: contact, calendar and ...) with APIs of 
`evolution-data-service` (`ECalClient`, `EBookClient`).

Right?


___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Integration with syncevolution

2020-04-16 Thread Milan Crha via evolution-list
On Thu, 2020-04-16 at 11:11 +0430, Hamzeh Nasajpour wrote:
> In fact, I want to sync my online contacts (ex: Gmail contacts or
> ...) to local. Then I want to access to the local store for
> add/remove/edit/get contacts in local and again sync them. I need to
> do these acts (add/remove/edit/get) in my C++ applications.

Hi,
being this about Google services, you can avoid all of that and use
libgdata to access Google data directly.

You can also avoid syncevolution (it's an unnecessary overhead in your
case, from my point of view), simply configure Google account either
directly in Evolution, or in GNOME Online Accounts (where you can
select what data should be synchronized). With that you can access the
data using EBookClient, eventually ECalClient, as mentioned earlier,
because, in both cases, you'll see your calendars/books/... in anything
what accesses the data using evolution-data-server API.
Bye,
Milan

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Integration with syncevolution

2020-04-16 Thread Hamzeh Nasajpour
Hi Milan,

Thank you for your quick reply.

In fact, I want to sync my online contacts (ex: Gmail contacts or ...) to 
local. Then I want to access to the local store for add/remove/edit/get 
contacts in local and again sync them. I need to do these acts 
(add/remove/edit/get) in my C++ applications.

So my components:
* syncevolution for syncing the remote data to the local store
* A middle layer for access to the local store (ex: read/write contacts)
* C++ Applications: they have access via this middle layer. 

And now: what's the middle layer? evolution-data-service? `libsyncevolution`? 
or any other library for access to local store?

Regards.
Hamzeh


On Thu, Apr 16, 2020, at 11:00 AM, Milan Crha via evolution-list wrote:
> On Thu, 2020-04-16 at 08:34 +0430, h.nasajp...@pantherx.org wrote:
> > I want to integrate my C++ applications with syncevolution via
> > `libsyncevolution` or `eds`?
> 
>   Hi,
> what do you mean with 'integrate', please? That's important, because
> syncevolution synchronizes remote data to local store, which is way
> different from accessing the data it synchronized.
> 
> > Is there any document about them? How to? Where? Example? 
> 
> Again, it depends on your use case. What kind of data do you want to
> access? Being it calendar related or address book related? Apart of
> reading developer documentation for EBookClient and/or ECalClient, you
> may find these links eventually helpful too:
> 
> https://wiki.gnome.org/Apps/Evolution/#Reference_Manuals (not that
> fresh as the developer documentation generated from the sources)
> 
> https://gitlab.gnome.org/GNOME/evolution-data-server/-/tree/master/src%2Fexamples
> 
> https://gitlab.gnome.org/GNOME/evolution-data-server/-/tree/master/tests
> 
>   Bye,
>   Milan
> 
> ___
> evolution-list mailing list
> evolution-list@gnome.org
> To change your list options or unsubscribe, visit ...
> https://mail.gnome.org/mailman/listinfo/evolution-list
>
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Integration with syncevolution

2020-04-16 Thread Milan Crha via evolution-list
On Thu, 2020-04-16 at 08:34 +0430, h.nasajp...@pantherx.org wrote:
> I want to integrate my C++ applications with syncevolution via
> `libsyncevolution` or `eds`?

Hi,
what do you mean with 'integrate', please? That's important, because
syncevolution synchronizes remote data to local store, which is way
different from accessing the data it synchronized.

> Is there any document about them? How to? Where? Example? 

Again, it depends on your use case. What kind of data do you want to
access? Being it calendar related or address book related? Apart of
reading developer documentation for EBookClient and/or ECalClient, you
may find these links eventually helpful too:

https://wiki.gnome.org/Apps/Evolution/#Reference_Manuals (not that
fresh as the developer documentation generated from the sources)

https://gitlab.gnome.org/GNOME/evolution-data-server/-/tree/master/src%2Fexamples

https://gitlab.gnome.org/GNOME/evolution-data-server/-/tree/master/tests

Bye,
Milan

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Cannot Archive Messages Keep Showing Up

2020-04-16 Thread Milan Crha via evolution-list
On Wed, 2020-04-15 at 21:01 +0200, Alexander Kerner via evolution-list
wrote:
> [imapx:A] I/O: 'A00340 UID MOVE 969 Archiv'
> [imapx:A] I/O: '* OK [COPYUID 1451911991 969 21295] Moved UIDs.
> * VANISHED 969
> A00340 OK [HIGHESTMODSEQ 251] Move completed (0.006 + 0.000 + 0.005 secs).'

Hi,
the above means that the IMAPx told the server to move message with UID
969 to the Archiv folder and the server confirmed the move, telling
that the added message in the Archiv folder has UID 21295 there.

> [imapx:A] I/O: '* 191 FETCH (UID 967 FLAGS (\Seen))
> * 192 EXISTS
> * 192 FETCH (UID 970 RFC822.SIZE 4320 FLAGS (\Seen) RFC822.HEADER {1433}
> {now the message is printed that I am trying to archive}

This is downloading message with UID 970, which means it's a new
message (the previous was 969). I do not see anything in the log
snippet what Evolution would do to move the message back (supposing you
did not remove that part), thus it's something else returning the
message back to the original folder. Could it be any (server side)
filters do that? Or maybe filters from another client, in case you
access the account from multiple clients.

If you cannot find anything, then I'd ask the server admins. They might
be able to explain this. I do not see any faulty thing from the log
snippet.
Bye,
Milan

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list