[Evolution] Integration with syncevolution

2020-04-15 Thread h . nasajpour
Hi,> libsyncevolution can be used in simple applications without the dependency on any kind of IPC mechanismI want to integrate my C++ applications with syncevolution via `libsyncevolution` or `eds`?Is there any document about them? How to? Where? Example? RegardsHamzeh___
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-15 Thread Alexander Kerner via evolution-list
Thanks for the detailed answer!

I did as you told.

* select message, click archive.
evolution tells me this:
> [imapx:A] I/O: ''
[imapx:A] I/O: 'DONE'
[imapx:A] I/O: ''
[imapx:A] I/O: 'A00339 OK Idle completed (0.001 + 6.609 + 6.609 secs).'
[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).'
[imapx:B] I/O: '* STATUS Archiv (MESSAGES 5026 UIDNEXT 21296 UNSEEN 0
HIGHESTMODSEQ 2633)
* STATUS INBOX.FoodAuthent (MESSAGES 191 UIDNEXT 970 UNSEEN 0 HIGHESTMODSEQ
251)'
[imapx:B] I/O: ''
[imapx:B] I/O: 'DONE'
[imapx:B] I/O: ''
[imapx:A] I/O: 'A00341 NOOP'
[imapx:A] I/O: '* STATUS Archiv (MESSAGES 5026 UIDNEXT 21296 UNSEEN 0
HIGHESTMODSEQ 2633)'
[imapx:A] I/O: 'A00341 OK NOOP completed (0.001 + 0.000 secs).'
[imapx:A] I/O: 'A00342 NOOP'
[imapx:B] I/O: 'B00336 OK Idle completed (0.001 + 75.192 + 75.200 secs).'
[imapx:A] I/O: 'A00342 OK NOOP completed (0.001 + 0.000 secs).'
[imapx:A] I/O: 'A00343 UID FETCH 968:* (UID FLAGS)'
[imapx:B] I/O: 'B00344 STATUS Archiv (MESSAGES UNSEEN UIDVALIDITY UIDNEXT
HIGHESTMODSEQ)'
[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}

Re-selecting the folder makes the message to show up again.

Best,
Alex

On Wed, 2020-04-15 at 19:21 +0200, Milan Crha via evolution-list wrote:
> On Wed, 2020-04-15 at 18:54 +0200, Alexander Kerner wrote:
> > * Version is 3.34.1-2.
> 
>   Hi,
> good, that's not that old version.
> 
> > * The archive folder and the source folder (subfolder of Inbox) are
> > both on the same IMAP server.
> 
> Fine. It means that the message is either copied & deleted or straight
> moved to the other folder, depending whether the server supports the
> MOVE extension.
> 
> Is the message stored both in the archive folder and in the source
> folder after it re-appears, or it's not in the archive folder at all?
> Some servers (notably Gmail) have pretty aggressive "de-duplication",
> based on the Message-ID header, not allowing to store the same message
> (well, not really the same, just two messages with the same Message-ID)
> in two folders, though I doubt it has any impact here.
> 
> You can see what is happening in the background when you run Evolution
> from a terminal like this:
> 
>$ CAMEL_DEBUG=imapx:io evolution
> 
> It'll print raw communication between the server and the client for all
> your IMAP accounts. It's not suitable to be shared in public, due to it
> containing a lot of private information, but you can check whether the
> message had been copied to the archive folder by searching for the
> archive folder name in the log (or for UID COPY/UID MOVE, which should
> mention the archive folder name). You can also add "UID" column into
> the message list [1] and check whether the UID of the message changed
> or not. You can search the captured log for the UID to see what had
> been done with it (if I recall correctly, multiple folders can have the
> same UID, thus it can be tricky). The log itself can be confusing, I
> just mention it as a way to see what is done in the background, between
> the Evolution and the server.
>   Bye,
>   Milan
> 
> [1] See "Sorting Mail with Column Headers" at
> 
> https://help.gnome.org/users/evolution/stable/mail-sorting-message-list.html.en
> 
> P.S.: by the way, Reply to List (Ctrl+L) works fine for me on this
> mailing 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

___
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-15 Thread Milan Crha via evolution-list
On Wed, 2020-04-15 at 18:54 +0200, Alexander Kerner wrote:
> * Version is 3.34.1-2.

Hi,
good, that's not that old version.

> * The archive folder and the source folder (subfolder of Inbox) are
> both on the same IMAP server.

Fine. It means that the message is either copied & deleted or straight
moved to the other folder, depending whether the server supports the
MOVE extension.

Is the message stored both in the archive folder and in the source
folder after it re-appears, or it's not in the archive folder at all?
Some servers (notably Gmail) have pretty aggressive "de-duplication",
based on the Message-ID header, not allowing to store the same message
(well, not really the same, just two messages with the same Message-ID)
in two folders, though I doubt it has any impact here.

You can see what is happening in the background when you run Evolution
from a terminal like this:

   $ CAMEL_DEBUG=imapx:io evolution

It'll print raw communication between the server and the client for all
your IMAP accounts. It's not suitable to be shared in public, due to it
containing a lot of private information, but you can check whether the
message had been copied to the archive folder by searching for the
archive folder name in the log (or for UID COPY/UID MOVE, which should
mention the archive folder name). You can also add "UID" column into
the message list [1] and check whether the UID of the message changed
or not. You can search the captured log for the UID to see what had
been done with it (if I recall correctly, multiple folders can have the
same UID, thus it can be tricky). The log itself can be confusing, I
just mention it as a way to see what is done in the background, between
the Evolution and the server.
Bye,
Milan

[1] See "Sorting Mail with Column Headers" at

https://help.gnome.org/users/evolution/stable/mail-sorting-message-list.html.en

P.S.: by the way, Reply to List (Ctrl+L) works fine for me on this mailing 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] Cannot Archive Messages Keep Showing Up

2020-04-15 Thread Alexander Kerner via evolution-list
Hi,
many thanks for the fast reply!

* Version is 3.34.1-2.
* Yes, I mean the "Archive" button, and I configured also a folder for
that. "normally/ mostly" it works well and messages are moved to the folder.
* The archive folder and the source folder (subfolder of Inbox) are both on
the same IMAP server.

I just ran evolution from the terminal and was able to reproduce the error
but no such messages printed to the terminal.

Best,
Alex


On Wed, 15 Apr 2020 at 18:49, Milan Crha via evolution-list <
evolution-list@gnome.org> wrote:

> On Wed, 2020-04-15 at 18:34 +0200, Alexander Kerner via evolution-list
> wrote:
> > I have a problem properly archiving messages. Some are "resistent" to
> > this operation and keep showing up.
> > At first, I thought this is related to the "group by thread" feature,
> > but also when I disable this, some messages fail to archive.
>
> Hi,
> let me start with some basic questions:
>
> What is your Evolution version, please?
>
> With Archive, I suppose you mean Message->Archive feature, right?
>
> I suppose you've set the messages to be moved to some folder.
>
> What is the account type you archive messages from?
>
> What is the account type you archive messages to?
>
> Could you try to run Evolution from a terminal, to see whether any
> error message is shown there, please? I guess there would not be much
> related shown, unless a big failure would happen.
>
> 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] Cannot Archive Messages Keep Showing Up

2020-04-15 Thread Milan Crha via evolution-list
On Wed, 2020-04-15 at 18:34 +0200, Alexander Kerner via evolution-list
wrote:
> I have a problem properly archiving messages. Some are "resistent" to
> this operation and keep showing up.
> At first, I thought this is related to the "group by thread" feature,
> but also when I disable this, some messages fail to archive.

Hi,
let me start with some basic questions:

What is your Evolution version, please?

With Archive, I suppose you mean Message->Archive feature, right?

I suppose you've set the messages to be moved to some folder.

What is the account type you archive messages from?

What is the account type you archive messages to?

Could you try to run Evolution from a terminal, to see whether any
error message is shown there, please? I guess there would not be much
related shown, unless a big failure would happen.

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] Cannot Archive Messages Keep Showing Up

2020-04-15 Thread Alexander Kerner via evolution-list
Hi all,

I have a problem properly archiving messages. Some are "resistent" to this
operation and keep showing up.
At first, I thought this is related to the "group by thread" feature, but
also when I disable this, some messages fail to archive.
Anyone can help?

Thanks!
Alex
___
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] Basically question

2020-04-15 Thread Adam Tauno Williams
On Wed, 2020-04-15 at 13:36 +0430, Hamzeh Nasajpour wrote:
> Hi guys,
> 
> I have a requirement like this:
> * There are some applications (developed by myself) that need to
> store/retrieve the contacts.
> * I need to sync these contacts with my online accounts, for example,
> Gmail or ...
> * I also should access to them locally as offline.
> So I think `syncevolution` is a good solution for me. I can set-up it
> on my system for syncing the local DB with Gmail. But I want to know
> how can I interact with local DB for read/write/modify the contacts
> on my device. In fact, my applications should have access to DB for
> read/write/modify. Should I use the `evolution-data-server` or
> `libsyncevolution`? Which is better? or any help on this issue. Is
> there any document about this issue?

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



-- 
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


[Evolution] Basically question

2020-04-15 Thread Hamzeh Nasajpour
Hi guys,

I have a requirement like this:
* There are some applications (developed by myself) that need to store/retrieve 
the contacts.
* I need to sync these contacts with my online accounts, for example, Gmail or 
...
* I also should access to them locally as offline.

So I think `syncevolution` is a good solution for me. I can set-up it on my 
system for syncing the local DB with Gmail. But I want to know how can I 
interact with local DB for read/write/modify the contacts on my device. In 
fact, my applications should have access to DB for read/write/modify. Should I 
use the `evolution-data-server` or `libsyncevolution`? Which is better? or any 
help on this issue. Is there any document about this issue?

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