Page 1 of 1

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

Posted: Tue Aug 03, 2010 1:58 am
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

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

Posted: Tue Aug 03, 2010 2:35 am
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.

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

Posted: Tue Aug 03, 2010 2:41 am
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

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

Posted: Tue Aug 03, 2010 5:00 am
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!

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

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

Posted: Tue Aug 03, 2010 10:18 am
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

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

Posted: Thu Aug 05, 2010 9:33 am
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

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

Posted: Thu Aug 05, 2010 9:48 am
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

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

Posted: Fri Mar 23, 2012 9:40 am
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]

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

Posted: Fri Mar 23, 2012 12:48 pm
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.