yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Danmann:
Oreo 8.1.0

Aicp 13.1

Note 4 910F

Edit

I sent you the log files etc. I haven't checked it yet. Sry.
[Android Apps and Games] m0d:
Okay. [MENTION=2799345]M66B[/MENTION]

So there definately is an issue with on-demand sync after an error or exception occurs.

As I mentioned earlier, last night my internet connection stopped, which caused errors above.

I switched off on-demand synchronization, and magically all works fine again:

Still lagging for a second with connection error:

But, then connects and all folders working again,

So, it seems if an exception or error happens and account is set on-demand. Folder connections remain in error state.

I switched off on-demand and everything worked well.

A thing of beauty:
[Android Apps and Games] M66B:
On demand operations (sync) connects to the server in exactly the same way as background sync.

"connection failure" indicates there were too many connections to the server.

Which provider is this?
[Android Apps and Games] Danmann:
It would be great if you can add a hint about the log files. What everything will be included in these files.

Or a link about these information. Like a confirm button to send these log files. I guess you'll delete it anyway but it would be great to get this info straight away.

Maybe a pro feature to turn the info off as well.
[Android Apps and Games] m0d:
This was on the outlook account.

But, the issue is that all folder that did not have an error last night were connecting fine.

You can see in previous screenshots. Connection problems were only happening with folders which failed due to internet shortage last night.

All other folder were connecting fine in fairemail.

Also, once I switched off on'-demand almost immediately the connections problems disappeared.

The connection failure above only appeared briefly after switching off on-demand synchronization.

Almost immediately folder reconnected and issues Miraculously disappeared

---------- Post added at 06:12 AM ---------- Previous post was at 05:55 AM ----------

I switched on-demand sync back on and problems connecting has returned:
[Android Apps and Games] M66B:
The debug information is not sent automatically, but first stored in a draft message. This was deliberately done like this to give you the opportunity to inspect what is going to be sent. So, there is already a confirmation needed.

The logcat contains all kind of information, sometimes unrelated to FairEmail, so filtering is not really possible.

Rest assured that anything you sent me will be handled with care.
[Android Apps and Games] m0d:
I switched on-demand sync back on and problems connecting has returned:
[Android Apps and Games] M66B:
I don't see anything wrong in the source code, actually it is pretty straightforward: open connection, process operations, close connection.

Please reproduce the problem and immediately send me the debug info thereafter by long pressing 'Support'. Make sure you really reproduced the problem by making sure there was no error message shown before reproduction and please include the time of the problem, so I know where to look.
[Android Apps and Games] Danmann:
Per email - M66B

"Did you restrict 'Read notifications' for FairEmail with XPrivacyLua?"

That was my problem.

Edit:

Per email - M66B

"Background: FairEmail queries existing notifications to determine which ones should go. This was changed some versions ago to make on demand sync possible. On demand sync doesn't has a state, which is why this was changed."
[Android Apps and Games] M66B:
I have just released

beta

version 1.348

Changelog/download:

https://github.com/M66B/open-source-email/releases

[MENTION=3138030]m0d[/MENTION] caching connections for on demand operations might fix your problem
[Android Apps and Games] chantoine:
Sorry for this dumb question, how can i trigger sync on demand ? Pulling down has no effect...
[Android Apps and Games] M66B:
Pull-down should sync on demand, when on demand sync is enabled in the account settings (or when there is no account connection).
[Android Apps and Games] chantoine:
Thanks. That's what i tried.

I enabled it on each account, on my 2 devices, i only get the timer icon for some time.

My settings are :

- sync (receive messages) : check

- sync on demand : check

- read directly on server : check

and global sync is disabled.

(edit)

I was a few releases late and did'nt sync for several days.

I will enable global sync then disable it to see if it's better
[Android Apps and Games] M66B:
On demand sync is brand new, so please update to the latest version first.

If the hour glass icon appears and goes away, the sync is executed.
[Android Apps and Games] m0d:
After making sure all folders are connected, then switching to on-demand it seems to be working again.

Will see how things go the next few days, as I am using more and more fairEmail over other email clients.
[Android Apps and Games] chantoine:
[MENTION=2799345]M66B[/MENTION]

I was already up to date.

Manual sync seems to work for only 2 on my 4 accounts.

And something strange, when i activate global sync, the notification says :

- synchronizong 0 account (usually the count goes to 1...2...3... and 4)

- and soon after, no more notification.
[Android Apps and Games] M66B:
If it works for 2 accounts, I don't see a reason why it shouldn't work for all accounts.

Check the account list in the setup for any errors.

Enabling on demand sync disables continuous sync, so this seems logical to me.
[Android Apps and Games] JJ111:
Hello [MENTION=2799345]M66B[/MENTION],

thanks for the search icon in newest version!

Everytime I update I see the banner of FairEmail in the YalpStore (Play Store) and it makes me feel uncomfortable seeing this crying person, the chains...

I understand it should show the negative and than suggest to use your great FairEmail App, but why this focus on negativ and not directly on what FairEmail offers: being OpenSource, private, secure, no Trackers included, small file size, batterysaving etc.

Also I don't like the imperative "Use FairEmail!" Let me choose by myself please. I think if people see what your great program can do, they will by themselves want to change.

Another thing is that the style of this 'crying banner' doesn't fit to your otherwise so clean, beautiful and simple look. So this banner is misguiding (my opinion). For instance when I saw the banner, I nearly didn't try your app, but since exodus showed me no tracker, I (luckily) tried it...

If you consider changing the banner: since I am no professional designer, I can't offer you a perfect banner alternative, maybe someone who also sees it like that could do it?! Otherwise I would just take your blue FairEmail color as background and add the qualities of FairEmail in white letters to it like OpenSource, Privacy friendly, Secure, Lightweight, Tracker free, Batterysaving, well maintained, fast...

Hope I don't make anyone sad by writing my opinion.

What do you think?

---edit---

I quickly did a sketch to show the direction of my idea... More talented friends can do it better ;)
[Android Apps and Games] chantoine:
Can't see any error.

One of the accounts working is gmail, and the other is on the same provider as the 2 "non working" accounts.

Yes and ... no :)

Say i don't like global sync and use it once a week... and use manual sync the rest of the time ?
[Android Apps and Games] M66B:
[MENTION=4958579]Primokorn[/MENTION] made the current banner expressing that you can free yourself of chains (close source, privacy violation, etc) and be happy (open source, privacy friendly, etc), so maybe you need to look at it differently. I guess it will be like with the user interface: different people will have different opinions about how it should look like. Nevertheless, I am open to suggestions for improvements.
[Android Apps and Games] M66B:
Do a manual sync which doesn't seem to work, take note of the exact time and send me immediately thereafter the debug info by long pressing 'Support' and I will take a look what is happening.

On demand sync will be used too when automatic sync is globally disabled, even without on demand sync being enabled in the account settings. I guess that is what you want.
[Android Apps and Games] M66B:
Maybe I am going to remove the on demand sync account setting because it complicates how FairEmail works (some accounts can be synced automatically, others on demand) and results in all kind of questions.

On demand sync will be used anyway if there is no account connection, for example when automatic sync was disabled globally.
[Android Apps and Games] M66B:
I have just released

beta

version 1.349

Changelog/download:

https://github.com/M66B/open-source-email/releases
[Android Apps and Games] chantoine:
My on demand sync problem is solved with the last release, thanks.
[Android Apps and Games] chantoine:
Marcel, your code seems much more efficient now, sync seems a lot faster !
[Android Apps and Games] Ænimal:
Thanx for yet another great app! Is it possible to directly show new/unread emails at the top of unified without having to scroll first? Anyway, keep up the great work!
[Android Apps and Games] M66B:
Please see this FAQ:

https://github.com/M66B/open-source-email/blob/master/FAQ.md#user-content-faq69
[Android Apps and Games] Ænimal:
That's exactly what I was referring to: I disabled auto-sync and whenever I refresh unified, my scrolling intention is to get to the very top in order to view new messages. I hope I'm making more sense now :)
[Android Apps and Games] M66B:
The FAQ explains why this is not desirable though.

Messages are received in the background, so there will be always a timing issue between the foreground (you) and the background (FairEmail) because receiving messages takes an undetermined amount of time.
[Android Apps and Games] Ænimal:
Ah ok, then our ideas of an intuitive interface are just diverging. Anyway, thanx again
[Android Apps and Games] JJ111:
Hm, I would also love this feature. Since when I manually refresh/sync I expect new emails to arrive and would be happy, if FairMail would show them directly to me.

I understand you, M66B, that when Auto-sync you don't want to annoy people by sudden new mails, which causes the old one to scroll down.

Is it possible to distinguish? Show new mails when manually refreshing and behavior like it is when background sync? Or a toggle, so users can decide for themself?!
[Android Apps and Games] M66B:
It is not about ideas diverging, but new messages are received asynchronous and scrolling up asynchronous on receiving new messages would be quite disturbing when you are browsing through existing messages. The alternative, blocking the user interface until the sync has completed, is also not nice. If you have an idea around this, please let me know.
[Android Apps and Games] M66B:
The only option would be to block the user interface until the sync is done.
[Android Apps and Games] Ænimal:
Since I don't know a thing about developing apps, in a scenario where I'm at the top of a list and want to know about the status quo (what is going on at the top in this very moment), I would prefer waiting for the sync, because we're not talking about a considerably long period of time for the sync to take place but merely seconds..

Edit: I suppose there are 'commands' such as "if...then..", so maybe something like "if auto-sync is disabled then scroll to top on refresh"..?
[Android Apps and Games] M66B:
The next version will scroll up after a manual sync has been completed.
[Android Apps and Games] M66B:
The changelog might not have been clear about this, but you can now create a rule for similar messages directly from the message view. Use the gray action bar 'more' menu and select 'create rule'. The sender and subject rule conditions will be pre filled with the sender and subject of the message. This makes it easy to automatically move unwanted messages to somewhere else, for example the spam folder.
[Android Apps and Games] beeshyams:
Cool. I hadn't noticed
[Android Apps and Games] m0d:
This applies to pull-to-refresh only?
[Android Apps and Games] fraschi51:
Hello, Marcel,

could it somehow be possible to customize the UI - as in some other programs? For example, I would like to have the command 'reply to all' instead of the reply-symbol directly in the actionbar from the more-part of the actionbar, because it makes more sense (for me) to always reply to all. Is that possible somehow?
[Android Apps and Games] M66B:
I don't think it is a good idea to allow this level of customization because it would make things more complex and would require more support.

How about a pop-up menu (reply to) 'sender', 'all' ?
[Android Apps and Games] fraschi51:
Yes, that's also a good idea (only to sender / reply to all).
[Android Apps and Games] m0d:
I hope it helps with the connection issue, after crash drafts started acting up:

And folders are not connecting, operations piling up,
[Android Apps and Games] M66B:
This is likely because there are too many simultaneous connections to the server.

The crash caused the previous connections not to be closed gracefully.
[Android Apps and Games] JJ111:
I was so happy, that there was no constant notification of FairEmail in the status bar anymore, everything was working fine, but now it is there again. Why / because of which change? Is it possible to toggle it/ show it only when active? If it is now shown again all the time, does it mean FairEmail also uses more battery?
[Android Apps and Games] M66B:
Just disable 'Synchronize' in the advanced options and make sure there is no schedule to enable it again.
[Android Apps and Games] fraschi51:
If you have selected a mail to 'send later' and this mail is now waiting in the outbox for the scheduled dispatch, can you still somehow determine the time to which you have scheduled this mail dispatch?
[Android Apps and Games] M66B:
Yes, there is a little 'snooze' icon. If you tap on it the time will be shown.
[Android Apps and Games] fraschi51:
Ah, thanks, very good, but the mail was not sent at the scheduled time ... :(
[Android Apps and Games] M66B:
An attempt will be made to send the message at the scheduled time.

Check the operations for any error messages.
[Android Apps and Games] JJ111:
Cool, thanks, works - no more constant notification ?

Sometimes things in life can be solved that easily ?
[Android Apps and Games] fraschi51:
Hmm, no errors and no open operations ...
[Android Apps and Games] M66B:
The only thing I can think of is to use forwarding. Most providers support this, but be warned that forwarded messages often end up in the spam folder.
[Android Apps and Games] M66B:
I have just released

beta

version 0.25

Changelog/download:

https://github.com/M66B/open-source-email/releases

https://play.google.com/apps/testing/eu.faircode.email

It may take a few hours until Google has made this release available everywhere.

This version fixes some bugs and improves some things.

Developing an app like this is a lot of work, so XDA thanks, purchases and donations are appreciated.
[Android Apps and Games] prodeif:
i cannot log me.... retry and retry but i dont know why not. :(
[Android Apps and Games] m0d:
Some users do not want to learn anything. They want to be spoonfed or just dont care how the magic happens.

So all they expect is a login screen, username / password. Having them select Provider is also a stretch, they could say - well you can get it from email address no?

So,

If you really want to cater to them you would need to move all "Advanced" stuff in a dropdown advanced section and have nothing but minimum at first:

So Login would look like,

When you click advanced the rest will show,

However, other users will be annoyed that all the important stuff are hidden in dropdown

So you can never win.

Above taking k9 as an example, they have Manual set-up, but drop down advanced section is better(they use it for certuficate only)

Should poll be accessible to all users or only users without IDLE support.

How does it affect people with IDLE?
[Android Apps and Games] M66B:
There is a link to instructions and there is an alert message ...

See this FAQ for a resolution:

https://github.com/M66B/open-source-email/blob/master/FAQ.md#FAQ6
[Android Apps and Games] M66B:
Thanks for the suggestions.

I have added link to your comment in this issue:

https://github.com/M66B/open-source-email/issues/52

The poll interval affects people with IDLE too because the connections needs to be kept alive by periodically sending 'NOOP' (no operation). The poll interval determines how often this will happen. The default of 9 minutes was carefully selected, so don't change it unless you know what you are doing.
[Android Apps and Games] prodeif:
I followed the instructions but still not working
[Android Apps and Games] M66B:
Please try the suggestions of step 2 here:

https://support.google.com/mail/accounts/answer/78754
[Android Apps and Games] geronimoge:
I'd like to donate - how can i do so and how does the pro version survive when switching the phone or flashing a new ROM?
[Android Apps and Games] M66B:
In the navigation menu you'll find "Pro features". In version 0.24 you'll either start a Play store purchase flow or a donation flow, depending on if you installed from the Play store or not. In version 0.25 or later you'll land on a pro features screen with a 'Purchase' button which does the same.

You'll need to reactivate after switching devices or after clean flashing a new ROM. Edit: if you don't want this, you can better purchase from the Play store.
[Android Apps and Games] M66B:
I have just released

beta

version 0.26

Changelog/download:

https://github.com/M66B/open-source-email/releases

https://play.google.com/apps/testing/eu.faircode.email

It may take a few hours until Google has made this release available everywhere.

This version adds a major feature: search on server. It always annoyed me that most, if not all, email apps can't get this right, but I have to admit, it is not easy to implement. Nevertheless, with the relatively new Android Architecture Components, which forms an important part of the foundation of this app, it appeared to be doable in one day. Messages are searched 'out of band' in real time and not stored in the database. To keep response times acceptable, attachments are not downloaded (and thus not shown). I can search in a archive of almost 100,000 messages in just a few seconds, which is amazingly fast. You can search on partial text in the sender, subject and message text.

And there is more: you can now synchronize a folder, even if it is not set to synchronize, by long pressing on the folder. If you do this on the outbox, an attempt will be made to send queued messages.

Search on server will be a pro feature in the next release. The price of the pro features will be adjusted with the addition of more pro features. This means that early buyers get things cheaper because a pro feature purchase includes all current and future pro features.

Developing an app like this is a lot of work, so XDA thanks, purchases and donations are appreciated.
[Android Apps and Games] Irish_Dude:
Hey this app looks great.

I'm sick of K9 mail and the 'syncing disabled' bug and am happy to pay for your app.

I see it supports posteo.de email but does it support posteo.de aliases?

Thanks :)
[Android Apps and Games] M66B:
See here about setting up multiple identities:

https://github.com/M66B/open-source-email/blob/master/FAQ.md#FAQ9

Edit: FairEmail will sync always (when there is internet connectivity, that is)
[Android Apps and Games] AgustinH:
Hey! I downloaded and it seems impossible to log on gmail...always get an error of allow on google unknown apps, and I don't know where is that option
[Android Apps and Games] M66B:
Please see this FAQ for solutions:

https://github.com/M66B/open-source-email/blob/master/FAQ.md#FAQ6

Edit: as a side note: this app is primarily being tested with a Google account because the Google IMAP server is hardly a standard IMAP server. This app can handle the Google archive folder pretty well, while most other email apps choke on this.
[Android Apps and Games] maxafe:
I love it, but i miss a Widget.
[Android Apps and Games] dorqus:
Getting an error about drafts folder missing, Gmail account.

Also got a notification about too many simultaneous connections. Not checking this account with any other apps or on my computer.

I'll running the latest version, 0.26
[Android Apps and Games] beeshyams:
[MENTION=2799345]M66B[/MENTION]

Can you consider "swipe to delete" option, which saves one step of opening mail to delete, whereas by reading the header of mail you know you want to delete

Excited about search on server - that's cool. :good: I have been creating sync for long periods just to have this functionality. Glad I went pro. Will it be possible to get the complete mail with attachment if need be

I am getting these error logs once a while, will send crash report too

'Gmail/[Gmail]/Sent Mail' failed

java.nio.charset.spi.CharsetProvider: Provider net.freeutils.charset.CharsetProvider not found net.freeutils.charset.CharsetProvider Didn't find class "net.freeutils.charset.CharsetProvider" on path: DexPathList[[zip file "/data/app/eu.faircode.email-hrhH_EljVKS0X_runnLsEw==/base.apk"],nativeLibraryDirectories=[/data/app/eu.faircode.email-hrhH_EljVKS0X_runnLsEw==/lib/arm64, /system/lib64, /system/vendor/lib64]]

2018-08-27 07:28:33

Edit : search feature works great but is case sensitive. Is it designed to be? I search for a friend "Ram" no result but "ram" yields many. Case sensitive isn't required I feel. Also this is not reproducible. Searching again for "ram" yields no results. It is a part of user name. searched on Gmail
[Android Apps and Games] M66B:
What use would you have for a widget?
[Android Apps and Games] M66B:
Looking at the screenhots, you are getting 'Drafts folder missing' when trying to send the debug info. This is being caused by either not having a primary account selected or the primary account not having a drafts folder. You can fix this by making an account the primary account and selecting a drafts folder for the primary account.

I need to see a log to see why you got 'too many simultaneous connections'. This can be caused by connectivity issue, but it could also be caused by a bug in FairEmail.
[Android Apps and Games] M66B:
No operations should mean the message was sent.
[Android Apps and Games] fraschi51:
Hmm, I'll try it again ... but I had no succes (no CC getting) at 09:00, 09:35 an 09:51 this morning ... :(
[Android Apps and Games] M66B:
Be sure to check your sent folder.
[Android Apps and Games] M66B:
[MENTION=7350063]fraschi51[/MENTION] it is not you, there is a bug, which will be fixed in the next release.
[Android Apps and Games] fraschi51:
In the Sent-Folder are no or only very old messeges - and the scheduled message is waiting in the outbox.

O.k., I'm waiting for the next release.
[Android Apps and Games] M66B:
I have just released

beta

version 1.350

Changelog/download:

https://github.com/M66B/open-source-email/releases
[Android Apps and Games] m0d:
I noticed something strange when reading an email, message view or Conversation view

(although I have threaded conversations disabled),

But that is Besides the point,

While I am reading the message, all of a sudden the view automatically scrolls to the top.

It seems to be happening randomly, sometimes more than once.

And user has to scroll back down to the place where we left off to continue reading email.

My thoughts are that the message is not completely downloaded, or loaded, and scrolls back to top when it is.

I might be mistaken, though.
[Android Apps and Games] M66B:
You were reading the message, so can I assume it was (down)loaded?
[Android Apps and Games] m0d:
The text was loaded, yes.

Could it be that attachments (some of the mails had inline image attachments), take longer to load and when it does causes scroll to top?
[Android Apps and Games] M66B:
That is possible and unfortunately hard to prevent.
[Android Apps and Games] M66B:
[MENTION=3138030]m0d[/MENTION] I have not been able to reproduce your scrolling issue with and without attachments.
[Android Apps and Games] M66B:
I have just released

beta

version 1.351 1.352

Changelog/download:

https://github.com/M66B/open-source-email/releases