yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] PhatUgly:
This mail app is getting better by the day! Your speed of implementing new features is really amazing, thank you for the continuous effort.

Have you by any chance already looked at integrating S/MIME encryption and see a chance for this feature on the horizon?
[Android Apps and Games] M66B:
Please see the FAQ about this.
[Android Apps and Games] Max.T:
As to the LED issue, still debugging and trying, but I have found several bugs? in Notification channels code.

Notifications are always sent to account's "personal" channels

String channelName = (account == 0 ? "notification" : EntityAccount.getNotificationChannelName(account));

but the personal channel are created only if (separate notify) account.notify is set.

if (account.notify)

account.createNotificationChannel(ServiceSynchronize.this);

else

account.deleteNotificationChannel(ServiceSynchronize.this);

The logic in Account setup is a bit strange too:

if (account.notify) {

// Add or update notification channel

account.deleteNotificationChannel(context);

account.createNotificationChannel(context);

} else if (!account.synchronize)

account.deleteNotificationChannel(context);

separate notify -> on -> create chanel

separate notify -> off -> keep it? (probably, to keep old user settings)

switch service (account.synchronize) -> kill em. all

delete account -> keep it
[Android Apps and Games] fitittome:
If I attach a 1.9Mb photo Fairemail seems to resize it. FAQ #63 say that there is an advanced option to disable automatically resizing of image attachments. In Advanced Option there is an option "Automatically resize images for displaying on screens" which I turned off but image attachments are still shrunk. Is there another option that I'm missing?
[Android Apps and Games] M66B:
If account notify isn't enable a common notification channel will be used, which is created elsewhere.

Edit: I will double check the logic later today.
[Android Apps and Games] M66B:
This option works for me. Note that inline images will always be resized, so maybe you want to attach the image instead.
[Android Apps and Games] Max.T:
Shoud be:

String channelName = (account == 0 || !account.notify ? "notification" : EntityAccount.getNotificationChannelName(account)) ;
[Android Apps and Games] M66B:
I think you are right. I will double check this later.
[Android Apps and Games] M66B:
Actually, the code is correct because the account is already set correctly here:

https://github.com/M66B/open-source...c/main/java/eu/faircode/email/Core.java#L1444

So, I doubt that the suggested change will make the notification light work.
[Android Apps and Games] Max.T:
As to LED:

There is a blinking LED in front of me and live is good again (uninstalling Android Studio and back to C and asm). Sorry for the false bug!

Unfortunately there is kind of a bug:

Notifications (O version with channels) are stored in "/data/system" folder as "notification_policy.xml" files and unexpectedly Google documentation is correct: As soon as notification channel is first created it is stored by id for the App lifetime (there is "no way" to remove/replace it) - it is replaced with the old cached version. All removed channels are shown at the bottom of Notif. Settings as (X removed...) to fight spamming.

In FairEmail case main channel is created as following:

NotificationChannel notification = new NotificationChannel( "notification",

getString(R.string.channel_notification),

NotificationManager.IMPORTANCE_HIGH);

notification.setLockscreenVisibility(Notification.VISIBILITY_PRIVATE);

nm.createNotificationChannel(notification);,

, and corresponding notification_policy.xml record is:

<channel id="notification" name="Notifications" importance="4" usage="5" content_type="4" flags="0" vibration_enabled="true" locked="48" show_badge="true" />

, you can add sound and vibration from the system settings, but there is no led setup, so it is permanently blocked!

If however the App is first installed with the following code:

notification.enableLights(true);

notification.setLightColor(Color.GREEN);

nm.createNotificationChannel(notification);

Permanent notification_policy.xml record is as following:

<channel id="notification" name="Notifications" importance="4" sound="content://settings/system/notification_sound" usage="5" content_type="4" flags="0" lights="true" light_color="-16711936" show_badge="true" />

setLights(...) is still in Android source, so it might be used to control the light for the new channels (have not cheked).

Default NotificationChannel state seems to be different from device to device, but most common default led state seems to be off.
[Android Apps and Games] gregneal:
option to order emails by date sent (as Thubderbird does

Hi,

Sometimes my server is offline and emails are delayed.

I would like an option to order emails from the date sent, instead of the date received.

Thunderbird does this as default and i find it much more intuitive.

Thank you!
[Android Apps and Games] M66B:
The policy file represent the default settings, which the user can change, but not the app. Edit: this is not a bug and Google properly documented this. Also, enabling the notification light by default would make other people unhappy.
[Android Apps and Games] M66B:
The date sent field is optional, so this is not reliably possible. Moreover, the date sent field can be manipulated, but the date received field cannot. This is also the main reason that FairEmail doesn't show the date sent field at all.

You should fix that your server is offline sometimes or live with the consequences I guess. Maybe you can configure the server to use the date sent as date received, but beware of the things said in the previous paragraph.
[Android Apps and Games] M66B:
I have just released

beta

version 1.358

Changelog/download:

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

The most important change is that foreground operations/synchronization was changed to run the background synchronization service for one minute. This should solve the manual foreground sync not working on some devices and will result in less connections to the server(s) which seems to cause problems for some, like [MENTION=3138030]m0d[/MENTION].
[Android Apps and Games] ouzowtf:
Suppressing inbox folder name in unified inbox in compact mode

This little change is very nice too :D :svetius:
[Android Apps and Games] m0d:
I believe connections seems to be faster now with manual sync.

When forwarding messages, it ends up similar to reply where editing email formats message removing images inline.

Is there a way to have "Edit as new" as another reply option?

Pretty sure I have seen it before,, in thunderbird I believe.

For edit as new, the whole message will be in compose, without the reply bar formatting.

That way you can keep images and edit text as required.

Edit:

Another way would be when "Sharing" to fairemail somehow keep images? Is that possible?

As now, when user shares a mail to fairemail it does almost exactly the same thing as "edit as new", minus the attachments, (weirdly enough, sharing to fairemail, also adds the 2 new lines to end of mail)

Thank you.

---------- Post added at 01:41 PM ---------- Previous post was at 01:11 PM ----------

Another small thing,

When saving drafts, 2 new lines seem to be added always,

Is there a reason for this?

Message should have ended with the last '>', but after opening drafts 2 new blank lines are added.

It happens no matter the last character,

I add a k, and edit and now 2 new lines appear after 'k',

Also, whitespace seems to be formatted automatically when saving drafts.

If I have 4 blank lines and save it, it gets formatted to 1 blank line.

Is there a way to disable this formatting?
[Android Apps and Games] M66B:
Edit as new: this would require a rich text editor, but see here:

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

Empty lines: this is a limitation of the Android editor and therefore related.
[Android Apps and Games] m0d:
Ah, but drafts save fine with images, no? So there is no way to Save a mail as draft? Or when sharing to fairemail itself to have the images also in the draft composition?

Reply and forward both include images without rtf. It is just the additional reply bar formatting that is added, which do not allow you to edit the message.

Even when sharing to fairemail?

Currently, I believe a newline is added in the begining and 2 newlines at the end when sharing.

When saving a draft, whitespace gets formatted ( almost a la instagram, unfortunately), and 2 newlines are always added in the end of message.

---------- Post added at 02:53 PM ---------- Previous post was at 02:47 PM ----------

As for richtext formatting.

An interesting project, that is not abandoned, is markor - https://github.com/gsantner/markor

Maybe the code has interesting ideas, ( on how the dev deals with editing, example to use without importing any libraries).

The two text notepad editors I use are markor, above, and neutrinote - https://www.xda-developers.com/neutrinote-quick-markdown-notes/

But, unfortunately, neutrinote is closed source. (I prefer app layout of nN)

But, markor is great, too

It also has preview - ???
[Android Apps and Games] M66B:
Since there is no rich text editor and we want to send the original message when replying or forwarding, it is not possible to save a draft including the original message because this would result in reformatting the original message when opening the draft later to edit/send it. So, what happens is that the original text is appended when the message is being sent.

Markdown would be workable for me and you, but not for everybody, so I don't think it is a good idea to switch to markdown.

The new lines are due to the way how html paragraph are formatted.
[Android Apps and Games] bluegrass55:
Error messages & Notification Sound

I've been getting constant error messages for one Gmail account then DM3 bad user message.

http://support.google.com/mail/accounts/bin/answer.py?answer=78754 (Failure)

https://github.com/mscdex/node-imap/issues/689

I've a total of 5 Hotmail and 2 Gmail accounts setup.

I have followed the advice to fix the Gmail one but it keeps coming back. The app won't sync the effected account.I wonder if it is because Gmail can no longer identify the device.

Surprisingly the Notification sound & Vibration only work with error messages. I've yet to be notified for an incoming email.
[Android Apps and Games] M66B:
Authentication errors: check the username/password and if you selected an account select it again.

No sound/vibration: check the FairEmail "notification" channel, see the screenshots here for what I mean:

https://developer.android.com/training/notify-user/channels
[Android Apps and Games] bluegrass55:
The passwords are correct and I have set the Notifications.

I receive service notifications, error notifications but not the received emails. I have to check manually.
[Android Apps and Games] M66B:
Maybe you'll need to ask support from the provider to solve the authentication problem. Although FairEmail is often blamed for this :( I am pretty sure FairEmail is not causing this.

The channels and notifications are all constructed in a similar way, so my best guess there is a bug in your Android version. Maybe reinstalling FairEmail / rebooting your device will help.
[Android Apps and Games] M66B:
I have just released

stable

version 1.359

Changelog/download:

https://github.com/M66B/open-source-email/releases/
[Android Apps and Games] beeshyams:
Seven months... 360 builds.. Averaging 50 builds a month and 1.5 builds a day..

You need to add a word called "holiday" to your dictionary too... Saying this to selfishly ensure that you keep adding features and products

:good::good::good:
[Android Apps and Games] folusmile:
Respect to M66B
[Android Apps and Games] M66B:
[MENTION=4277759]bluegrass55[/MENTION] if you reproduce the problem and immediately thereafter send me the debug info, I will check what is exactly happening.
[Android Apps and Games] satosti:
I wanted to unlock the scheduling feature and received this error instead:
[Android Apps and Games] M66B:
Did you install from the Play store or from GitHub?
[Android Apps and Games] satosti:
From the google play store.
[Android Apps and Games] M66B:
I am pretty sure there is nothing wrong with the purchase flow, which is for the most part done outside of FairEmail. Maybe this is caused by a temporary Play store problem and maybe this FAQ can help you:

https://github.com/M66B/NetGuard/blob/master/FAQ.md#FAQ59

Alternatively, you can install the latest version from GitHub and get the pro features without Google stuff.
[Android Apps and Games] satosti:
I would like to have it linked to my google play Account. I've re-installed FairEmail and checked if other apps have working in-app purchases, which they seem to have:

Would you ask google whether they can identify the problem?
[Android Apps and Games] M66B:
Given there were some recent purchases I am pretty sure purchases still work. This is most likely a local, transient problem. I would like to give a solution, but I can't because the purchase flow is entirely provided by Google. What you can do, is try to start a purchase and immediately thereafter send me the debug info by long pressing 'Support'. I will check the log files for something unusual, maybe some Play store error code.

Asking Google is a waste of time because I never had any answer to any questions I have asked, even not on questions I was actively invited to ask. Google support is virtually non existent.
[Android Apps and Games] RBJ26:
This might not be the same issue, but on one of my gmail accounts I could not get the notifications working either.

I found that the problem was solved by selecting the account, long press inbox, select edit properties, and tick "notify new messages"

After that notifications for new emails worked.
[Android Apps and Games] satosti:
I've tried long pressing "Support" a few times with debug mode on and off. Is it sent silently in the background or should I have received some kind of feedback?

The FAQs do not explain the creation of a log file either...
[Android Apps and Games] M66B:
FairEmail should make a draft message which you can, but not need to, send. This is deliberately not in FAQ because this is for troubleshooting only. I do receive enough email already.

Edit: did you setup an account and an identity?
[Android Apps and Games] M66B:
Notify new messages should be enabled for all inboxes by default.
[Android Apps and Games] satosti:
I did not bother to setup the account again after the re-install. I have managed to send you the logfiles now. :)

Do they reveal the problem?
[Android Apps and Games] RBJ26:
I'm not sure why, but mine was not.
[Android Apps and Games] M66B:
It seems there is a problem with the Google billing service:

03-06 14:41:22.242 7511 7511 W ProxyBillingActivity: Activity finished with resultCode 0 and billing's responseCode: 4
03-06 14:41:22.274 7511 7511 W BillingHelper: Couldn't find purchase lists, trying to find single data.
03-06 14:41:22.274 7511 7511 W BillingHelper: Received a bad purchase data.
03-06 14:41:22.274 7511 7511 W BillingHelper: Couldn't find single purchase data as well.
03-06 14:41:22.274 7511 7511 I fairemail: IAB purchases updated response=ITEM_UNAVAILABLE

Did you already try to restart your device?
[Android Apps and Games] satosti:
Yes, to no avail. What I do not understand is why it only occurs in your app if it is a problem with the Google billing service.

I'll just try it some time in the future again.
[Android Apps and Games] M66B:
I have just checked, but I am just getting a list of purchasable items, so everything works as expected. The problem is that you don't get a list of purchasable items and therefore cannot purchase something (in the case of FairEmail there is just one purchasable item). This is more than likely a Google Play problem. Maybe your Google account its blocked/restricted or you are not allowed to purchase stuff in your country/region or something else, I don't know.
[Android Apps and Games] M66B:
I have just released

beta

version 1.360

Changelog/download:

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

This release fixes some bugs and improves a few things and is good for the average number of releases per day.
[Android Apps and Games] bluegrass55:
SOLVED:good::good::good:

Thank you for the guide. I must have gone through that setting more than 20 times yet missed it. Now email notifications and sound are working for all accounts.
[Android Apps and Games] M66B:
Actually, this appeared to be a bug in the quick setup, which was fixed in the latest release, so blame me.
[Android Apps and Games] bluegrass55:
Your hard work more than makes up for bugs like this. I had a repeat of the Gmail error earlier today. Do I need to get the Log immediately after it happens or can I do it now?
[Android Apps and Games] M66B:
The manual sync will not work on a metered connection if you configured FairEmail to not use metered connections. On one hand you would expect it to work regardlessly, but on the other hand the setting to not use metered connections will be used by people with a tight or no data plan.

Another thing is that a manual sync will always be terminated after about one minute regardless if everything was synchronized or not. In practice synchronizing is much, faster than that, so this would result in problems on really slow connections only.

Manual sync includes executing operations, so don't be surprised if the sync service is started if you mark a message read, etc. The service is kept active for one minute to prevent reconnecting for each operation.
[Android Apps and Games] M66B:
Log files are recycled fast, which is why you need to capture the debug info immediately after the problem occurred.
[Android Apps and Games] bluegrass55:
Sorry if this is a noob question. What log method should I use to be most useful to you (save you going through a long list)?

For example I have Matlog Libre which can filter out only the misbehaving app.
[Android Apps and Games] M66B:
The debug info, long press 'Support', is designed to give me the info I most frequently need.
[Android Apps and Games] M66B:
The emails and the Play store comments I got today are not very motivating. Developing a decent email client is complicated and a lot of work, why are people so ungrateful?
[Android Apps and Games] ouzowtf:
Don't get demotivated from those guys! If they are too disrespectful, just ignore them until they get more polite.

You do a very good job!
[Android Apps and Games] M66B:
Apparently not a good enough job :(
[Android Apps and Games] beeshyams:
Like I said no one can please all.

BTW need your help in understanding this and how to fix

Some mails landed up in Trash (accidentally deleted) and some in Spam (not sure why but that's immaterial). When I restore them to inbox, they are greyed out and the menu is truncated.

What is the reason?

Also it takes forever for them to be read, sync spinning on good connections
[Android Apps and Games] beeshyams:
Greyed out
[Android Apps and Games] M66B:
I am already busy with fixing this problem.

If it bothers you, enable debug mode temporarily and delete the 'wait' operations in the operations list by long pressing the operations.
[Android Apps and Games] beeshyams:
No sweat:) will wait for fix

---------- Post added at 09:47 AM ---------- Previous post was at 09:28 AM ----------

@M66B

Sorry if you are aware of this and working on it

Mails aren't showing up in inbox as they normally do. They only show up in "edit:important ". I haven't changed any folder setting. Latest version
[Android Apps and Games] neolovich:
First: In my opinion they are simply unthankful, as you said it already. Maybe the dont have a real idea of a community, which works together at a (open source) project. And second: For me it is obvious that they simply dont have a clue about programming. Otherwise they would be grateful for your work.

Second Topic:

I'm not sure but i think i found a bug (or i haven't seen a option). When i go to the advanced options where i can manage the email accounts and there i deactivate the synchronisation for example of one email account the whole account disappears. The inbox at the overview of inboxes and also the whole account in the left column disappears. So i cant synchronisize manually because i havent access to the email account.

Maybe somebody can help me? Using Version 1.360. The problem came with one of the last updates.

If you need a log, i need a short explanation, how to do.

Thank you!
[Android Apps and Games] M66B:
This is likely caused by the same problem.
[Android Apps and Games] M66B:
Try disabling synchronization in the advanced options instead of for an account. Disabling synchronization is the same as disabling an account and will therefore not show the account anymore.
[Android Apps and Games] M66B:
I have just released

beta

version 1.361

Changelog/download:

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

This version should fix the hanging 'wait' operations.

Background: when moving a message FairEmail creates a temporary copy in the target folder (shown dimmed) that will be replaced by the real message after the move has been executed. The 'wait' operation is there to prevent operations on a message that not yet exists on the server. However, this 'wait' operation blocked synchronizing messages in some circumstances and was therefore never removed.
[Android Apps and Games] beeshyams:
Thanks for explaining

Fixed for me:good:
[Android Apps and Games] JJ111:
Thanks a lot, fixed it with me.

I can only agree with the others: you are doing an amazing job. You accomplished an amazing Email Program in just under a year all by yourself, who else can? And since programming a secure and privacy protective email program is so damn tricky, it is natural, that bugs occur / new ones happen, when you inprove/fix stuff or you add other features.

Its usually the lazy people, who never have done anything (or not much) for others, who complain!

Or people who are in their mind not grown up, because when you are boss of your own life, there is no complaining, since you just do, what you want and you are happy with it - or if not, than change it, but no need to complain!

All the best [MENTION=2799345]M66B[/MENTION]!

?
[Android Apps and Games] neolovich:
Yes, this works without problems (also with the quick settings tile in the android status bar). But i prefer to synchronisize only my main email account and not all accounts when activating and deactivating the synchronisation. At the moment this seems not possible (but as i mentioned, it was possible). So maybe it is a bug or you intended this change?
[Android Apps and Games] M66B:
A mix between manual and automatic sync does not only make FairEmail more complex, but has also practical problems like what to do on pull-down-to-refresh in the unified inbox when there are manually and automatically synchronized inboxes. Also, yesterday I have explained in a comment why the manual sync is implemented to run the (automatic) sync service for one minute.

tl;dr; you'll have to choose between global automatic or manual sync for all accounts.