[SOLVED] Is there a command to mark all messages as read

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
mani_jeee
Posts: 5
Joined: Sat Sep 13, 2014 1:22 am

[SOLVED] Is there a command to mark all messages as read

Post by mani_jeee »

I am a noob to Zimbra.
I've used imapsync to move mails from my old IMAP server to new Zimbra 6.0.

Used the following options for my users.
imapsync --nosyncacls --syncinternaldates

--host1 server1 --authmech1 PLAIN --user1 user1 --password1 password

--host2 server2 --authmech2 PLAIN --user2 user2 --password2 password
Now it has preserved the flags of Read/Unread which i am able to see on web client. But while using the POP3 client all messages are being downloaded again.
Can someone guide me

- Are POP3 and IMAP flags are distinguished separately?

- Is there a command to issue from shell, to mark all messages as Read for POP3 clients? (I can go by with that as server isn't live yet)
Appreciate your help!!!

Mani
ewilen
Elite member
Elite member
Posts: 1429
Joined: Fri Sep 12, 2014 11:34 pm

[SOLVED] Is there a command to mark all messages as read

Post by ewilen »

Note sure about your question but you might want to look at Preferences > Mail > "Access Mail from Other Mail Clients" in Zimbra Web Client.
y@w
Outstanding Member
Outstanding Member
Posts: 642
Joined: Fri Sep 12, 2014 11:17 pm

[SOLVED] Is there a command to mark all messages as read

Post by y@w »

POP3 doesn't really support a "read" status outside of what the client knows about. It just downloads the messages from the server deletes them (unless you've configured your clients to not delete, which is obviously the case).
You can mark all messages as read using zmmailbox and the mfr(markFolderRead) command.
Something like:

zmprov

sm user@domain.com

mfr /Inbox
mani_jeee
Posts: 5
Joined: Sat Sep 13, 2014 1:22 am

[SOLVED] Is there a command to mark all messages as read

Post by mani_jeee »

@-- ewilen
Though you didn't understand the question but you directed me to the right place to resolve my issue. A great quality of intuition you have.:)
Now is there a shell command to check this option for all the users? I'd like to use it on specific time when i'll make the server live.
Many many thanks.


=================================================

@-- Y@w.
I just learned a great method for marking all the messages as read. Thank You!

=================================================
uxbod
Ambassador
Ambassador
Posts: 7811
Joined: Fri Sep 12, 2014 10:21 pm

[SOLVED] Is there a command to mark all messages as read

Post by uxbod »

You could do something like (untested)su - zimbra

zmprov -l gaa | while read ACCOUNT

do

zmprov ma ${ACCOUNT} zimbraPrefPop3DownloadSince $(date "+%Y%m%d%H%M%S"Z)

done
mani_jeee
Posts: 5
Joined: Sat Sep 13, 2014 1:22 am

[SOLVED] Is there a command to mark all messages as read

Post by mani_jeee »

[quote user="uxbod"]You could do something like (untested)su - zimbra

zmprov -l gaa | while read ACCOUNT

do

zmprov ma ${ACCOUNT} zimbraPrefPop3DownloadSince $(date "+%Y%m%d%H%M%S"Z)

done[/QUOTE]

@-- uxbod

Thank you for the tip. I'll definitely try this tomorrow.

"zimbraPrefPop3DownloadSince" is the key i was looking for...

Can you guide me, if there is any document or tutorial which gives out such hints.. Just wanted to polish up my skills on that.
Thank you again.
Mani
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

[SOLVED] Is there a command to mark all messages as read

Post by phoenix »

[quote user="mani_jeee"]Can you guide me, if there is any document or tutorial which gives out such hints.. Just wanted to polish up my skills on that.[/QUOTE]Zmprov - Zimbra :: Wiki or try:



zmprov help commands
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
mramsey
Posts: 4
Joined: Sat Sep 13, 2014 2:31 am

[SOLVED] Is there a command to mark all messages as read

Post by mramsey »

Actually, I would hope that a message retrieved and left on the server by a POP3 client would in fact be Marked As Read on the server. That's the way systems (Scalix for example) in the past have worked. That way, when I access the inbox from a separate client (IMAP) I readily see which messages are truly New.


[quote user="y@w"]POP3 doesn't really support a "read" status outside of what the client knows about. It just downloads the messages from the server deletes them (unless you've configured your clients to not delete, which is obviously the case).
You can mark all messages as read using zmmailbox and the mfr(markFolderRead) command.
Something like:

zmprov

sm user@domain.com

mfr /Inbox[/QUOTE]
ewilen
Elite member
Elite member
Posts: 1429
Joined: Fri Sep 12, 2014 11:34 pm

[SOLVED] Is there a command to mark all messages as read

Post by ewilen »

As y@w wrote, that isn't part of the POP protocol (as far as I know). It seems to be an option on the servers with which you are familiar. You may want to submit this as an RFE via Bugzilla Main Page - Zimbra but really, managing read/unread status is a job for IMAP.
Post Reply