Results 1 to 9 of 9

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

  1. #1
    mani_jeee is offline Junior Member
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    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

  2. #2
    ewilen's Avatar
    ewilen is offline Moderator
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    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.

  3. #3
    y@w's Avatar
    y@w
    y@w is offline Moderator
    Join Date
    Jan 2008
    Posts
    658
    Rep Power
    8

    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

  4. #4
    mani_jeee is offline Junior Member
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    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!
    =================================================

  5. #5
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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

  6. #6
    mani_jeee is offline Junior Member
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    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

  7. #7
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,499
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    mramsey is offline New Member
    Join Date
    Mar 2012
    Posts
    4
    Rep Power
    3

    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

  9. #9
    ewilen's Avatar
    ewilen is offline Moderator
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Re-creating the spam training e-mail account
    By richard-hdd in forum Administrators
    Replies: 21
    Last Post: 03-20-2012, 07:34 AM
  2. bayes db..
    By osiris in forum Administrators
    Replies: 9
    Last Post: 06-15-2011, 11:14 AM
  3. How can I mark messages as read?
    By PeterSteele in forum General Questions
    Replies: 3
    Last Post: 02-25-2009, 10:20 AM
  4. speed up the net
    By mcesari in forum Administrators
    Replies: 10
    Last Post: 04-25-2008, 11:24 AM
  5. Don't automatically mark message as read
    By bjquinn in forum Administrators
    Replies: 8
    Last Post: 10-23-2007, 08:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •