How to get the IMAP Tools

Discussion in 'IMAP Tools' started by popowich, Oct 26, 2013.

  1. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,999
    Likes Received:
    120
    Hello,

    Are you looking for a great set of IMAP Tools to help support projects within your email environments?

    These IMAP scripts can be purchased here - Download IMAP Tools

    They are helpful for a variety of purposes including:

    • copying email for your accounts & domains from old to new hosting providers
    • keeping a backup of your email hosted on your own server
    • large email migration projects where you only have access to IMAP and not the storage of the source servers
    Also, if you find a problem or need a feature, the author is available to help with updating the scripts.

    Please post any questions about the IMAP Tools in our free IMAP Tools Support Forum
     


    Last edited: Apr 29, 2015
  2. rfs9999

    rfs9999 IMAP Tools

    Joined:
    Oct 27, 2013
    Messages:
    114
    Likes Received:
    6
    New IMAP Tool: imap_search

    Administrators sometimes have the need to learn whether a particular message has been delivered to a user or to get a list of messages from a certain sender (for example). imap_search makes it easy to do that. For example:

    imap_search.pl james@company.com from=james.smith

    Folder Date Subject
    =====================================================================
    Drafts 01 Dec 2013 09:12:13 Important news!
    INBOX 03 Dec 2013 10:20:33 Holiday party

    You can search on just about any field in the header or the body for that matter.

    List messages after December 1, 2013:
    imap_search.pl linda.smith sentsince=01-Dec-2013
    List Unseen messages
    imap_search.pl joe.jones Unseen
    Compound searches:
    imap_search.pl from=joe or from=jim

    imap_search.pl is used to search a user's mailbox for messages matching a set of search criteria. By default all folders are searched but you can limit the search to a single folder if desired.

    For example, let's say you want to find all messages sent by john.lombard:

    You can combine filter expressions as well:

    OR from=tom from=charles

    AND subject=test from=marie

    "subject=sales meeting" NOT from=linda

    from=Mary subject=notification

    subject=password NOT subject=new

    sentsince=10-Nov-2013

    sentbefore=1-Jan-2001

    on=5-Dec-2013

    "body=agenda for today"

    Note that the SEARCH command is not a very sophisticated command as specified by the IMAP RFCs so you will want to keep your searches fairly simple. If your search expression is not acceptable to IMAP you'll get a syntax error. After some testing you will find what works on your IMAP server (some fields aren't searchable on some servers while they work on others. It seems to be implementation-specific).

    In some cases you have to insert 'header' to tell the IMAP server to search the ENVELOPE rather than the content header: header Received=xxxxx.

    Administrator mode
    It is a pain having to supply a user's password with each search so imap_search supports admin mode where you can give the administrator's username and pwd instead. For example: host/user:admin_user/admin_password

    Configuration file
    Another way to simplify searching is by setting up an imap_search configuration file with the following lines:

    server: imap.myserver.com
    admin_user: administrator
    admin_pwd: secret

    You can put the config file in your local directory, /etc, /usr/bin, or /var/tmp and imap_search will find it. Then you just have to supply the username instead of host/user/password:

    ./imap_search.pl user from=somebody

    Much easier, isn't it?

    Single folder search
    By default imap_search searches all folders but you may want to narrow the search to save time, for example by searching just the inbox. To limit the search place the name of the folder at the end of the access string like this:

    host/user/password:Inbox

    Notes:

    o Searches are case-insensitive
    o Mailbox names are case-sensitive except for the inbox
    o Regular expressions are not permitted
    o Wildcards are implied, eg subject=test matches every subject which has the string "test" in it
    o Search values containing spaces must be quoted: suubject="this is the day"
    o "Body" searches take longer since the body of each message has to be searched
    o Dates must be in DD-MM-YYYY format without the timestamp or timezone
    o See the IMAP RFC for a listing of all IMAP SEARCH keywords or visit:

    Imap.Search Method (Boolean, String, String)

    -Rick
     

  3. David Morneau

    David Morneau New Email

    Joined:
    Mar 30, 2016
    Messages:
    7
    Likes Received:
    0
    Hello did not know where to put this, but I just purchased the tool from Copy My Mail - IMAP Copy service and I am not receiving confirmation email.

    Thank you for your time,

    David
     
  4. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,999
    Likes Received:
    120
    Hi David,

    @rfs9999 is aware you made the purchase and will be getting you access.

    Please be patient since I copied the tool over to this site since it wasn't online anymore and bits of it need to be set back up.

    :thanks:
     
  5. David Morneau

    David Morneau New Email

    Joined:
    Mar 30, 2016
    Messages:
    7
    Likes Received:
    0
    Perfect thank you.

    When do you think it will be ready?

    Thank you for your time,

    David
     
  6. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,999
    Likes Received:
    120
    Hi David,

    I see that Rick emailed you yesterday. Is the tool working OK for you now?
     

Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.
Loading...