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

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

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

Postby mani_jeee » Tue Aug 03, 2010 1:58 am

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

Postby ewilen » Tue Aug 03, 2010 2:35 am

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

Postby y@w » Tue Aug 03, 2010 2:41 am

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

Postby mani_jeee » Tue Aug 03, 2010 5:00 am

@-- 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

Postby uxbod » Tue Aug 03, 2010 10:18 am

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

Postby mani_jeee » Thu Aug 05, 2010 9:33 am

[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: 26414
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

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

Postby phoenix » Thu Aug 05, 2010 9:48 am

[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

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
mramsey
Posts: 4
Joined: Sat Sep 13, 2014 2:31 am

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

Postby mramsey » Fri Mar 23, 2012 9:40 am

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

Postby ewilen » Fri Mar 23, 2012 12:48 pm

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.

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 11 guests