1

Topic: Programmatically mark emails as read?

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:  Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I imported several hundred thousand emails from my Outlook POP3 account/.pst into my new IMAP account.  Same email accounts, but it is now self-hosted.

My INBOX now shows several thousand unread emails.  Is there a way to globally mark them all as read?

Andrew

2

Re: Programmatically mark emails as read?

*) How about use the webmail directly?
*) Write a script to do this with IMAP protocol.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3

Re: Programmatically mark emails as read?

An IMAP script would work - except I have no ability to create one; I'll Google that solution.

From Webmail, I'm not sure that's possible to do efficiently.  By 'a few thousand', I understated the problem; my iPhone shows, across the accounts on it, 125,814 unread emails.  Webmail (SOGo and RoundCube) doesn't seem to have a 'mark all' feature.

Andrew

4

Re: Programmatically mark emails as read?

AndyInNYC wrote:

Webmail (SOGo and RoundCube) doesn't seem to have a 'mark all' feature.

Both have "Select All" feature.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

5

Re: Programmatically mark emails as read?

Can you point out in RoundCube where the 'Select All' is found?  I see the Mark as read, but not the select all.  I can find neither in SOGo

6

Re: Programmatically mark emails as read?

With Roundcube 1.2.x, you can find it here:

https://i.imgur.com/3Ky4xCF.png

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

7 (edited by AndyInNYC 2017-09-14 23:24:49)

Re: Programmatically mark emails as read?

I found it in SOGo by clicking on a 'person' icon which added new action icons including 'Select All'.

Thanks - my email should now just show 'new, new' as unread and be much easier to manage.

I just sent you some "Coffee".  Thanks for your help.

Andrew