Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-02-2010, 11:58 PM
Junior Member
 
Posts: 5
Default [SOLVED] Is there a command to mark all messages as read

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
Reply With Quote
  #2 (permalink)  
Old 08-03-2010, 12:35 AM
Moderator
 
Posts: 1,432
Default

Note sure about your question but you might want to look at Preferences > Mail > "Access Mail from Other Mail Clients" in Zimbra Web Client.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #3 (permalink)  
Old 08-03-2010, 12:41 AM
y@w y@w is offline
Moderator
 
Posts: 658
Default

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:
Code:
zmprov
sm user@domain.com
mfr /Inbox
__________________
What a n00b!
Reply With Quote
  #4 (permalink)  
Old 08-03-2010, 03:00 AM
Junior Member
 
Posts: 5
Default

@-- 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!
=================================================
Reply With Quote
  #5 (permalink)  
Old 08-03-2010, 08:18 AM
Moderator
 
Posts: 7,928
Default

You could do something like (untested)
Code:
su - zimbra
zmprov -l gaa | while read ACCOUNT
do
  zmprov ma ${ACCOUNT} zimbraPrefPop3DownloadSince $(date "+%Y%m%d%H%M%S"Z)
done
__________________
Reply With Quote
  #6 (permalink)  
Old 08-05-2010, 07:33 AM
Junior Member
 
Posts: 5
Default

Quote:
Originally Posted by uxbod View Post
You could do something like (untested)
Code:
su - zimbra
zmprov -l gaa | while read ACCOUNT
do
  zmprov ma ${ACCOUNT} zimbraPrefPop3DownloadSince $(date "+%Y%m%d%H%M%S"Z)
done
@-- 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
Reply With Quote
  #7 (permalink)  
Old 08-05-2010, 07:48 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by mani_jeee View Post
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.
Zmprov - Zimbra :: Wiki or try:
Code:
zmprov help commands
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 03-23-2012, 07:40 AM
New Member
 
Posts: 4
Default Sure should

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:
Originally Posted by y@w View Post
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:
Code:
zmprov
sm user@domain.com
mfr /Inbox
Reply With Quote
  #9 (permalink)  
Old 03-23-2012, 10:48 AM
Moderator
 
Posts: 1,432
Default

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.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.