Results 1 to 2 of 2

Thread: Remove "draft" Flag from message?

Hybrid View

  1. #1
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    12
    Rep Power
    3

    Default Remove "draft" Flag from message?

    Hello,

    during our migration to zimbra (with imap) some mails where erroneously flaged as "draft". Now this mails can't be forwared or replyed (only edited, which is not what our users want).

    So I have two problems to solve:

    * find all messages that are tagged as draft (I can check this with for one mail with "echo "sm <user> gm -v <zimbra-msg-number>" | zmprov | grep isDraft", but are there better ways?)

    * remove the draft flag from a message (can this be done with zmmailbox flagMessage?)

    thanks for any hint,
    Walter

  2. #2
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    12
    Rep Power
    3

    Default

    OK, fixed it by myself.

    I created a small python script which connected to a zimbra user account via IMAP, iterated over all folders, selected all mails with \Draft flag (imap.search (DRAFT)), fetched that mails, removed \Draft from flags, appended the mail again and deleted the original mail.

Similar Threads

  1. Any clue what spam flag "FB_NUMYO" is?
    By thunder04 in forum Administrators
    Replies: 3
    Last Post: 04-01-2010, 12:50 PM
  2. [SOLVED] Set Default Flag "Start Week On"
    By huracaniki in forum Users
    Replies: 2
    Last Post: 03-26-2008, 05:41 AM
  3. Replies: 0
    Last Post: 01-20-2008, 12:42 PM
  4. IMAP Migration - "Answered Flag"
    By jefft@iri.columbia.edu in forum Migration
    Replies: 3
    Last Post: 08-06-2007, 07:34 PM
  5. Replies: 3
    Last Post: 05-25-2006, 01:16 PM

Posting Permissions

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