Results 1 to 3 of 3

Thread: [SOLVED] Searching message headers?

Hybrid View

  1. #1
    Join Date
    May 2007
    Location
    San Diego
    Posts
    53
    Rep Power
    8

    Default [SOLVED] Searching message headers?

    Is there a way to have zimbra search message headers? Right now, we're having to resort to an IMAP client to do searches for specific header names/contents, as Zimbra doesn't have a "header:" keyword.

    I know, despite all the rest of the search flexibility, a number of our faculty are going to want to search for headers and header contents.

    Thanks,

    Gregory

  2. #2
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    I believe it was because zimbra currently only indexes a few mail headers.
    Bug 7384 - IMAP search on non-indexed header returns error

    Yes sometimes I want to search by ip address...unless someone else has another method? right now you'd have to search the mailstore on the server...

    ------
    But there are tons of other ways to search that I've become accustomed to (what I usually throw people in a new welcome email):

    One of the more overlooked features: The Main Search Bar!
    Some type of query is always applied to produce the view that you see in the Zimbra web client interface.
    • TIP: You can set your General Options to 'Always show search string' to see the current query in the Search toolbar. For example, when this option is set, clicking your Inbox folder shows the query string 'in:inbox'.
    • If you set the 'Initial mail search' to something besides in:inbox and upon login you will be taken to that folder/results first!
    Keyword Descriptions and Examples
    Using a combination of the below along with a search term makes it extremely easy to find what your looking for!

    So "in:folder wiu" would return all emails in the 'folder' with the word 'wiu' in them
    The possibilities and combinations are endless:

    content: Specifies text that the message must contain. For example, content:bananas finds all items containing the word "bananas".
    from: Specifies a sender name or email address that is in the From header. This can be text, as in "John Smith III", an email address such as "joe@acme.com", or a domain such as "@zimbra.com".
    to: Same as from: except that it specifies one of the people to whom the email was addressed in the To: header.
    cc: Same as from: except that it specifies a recipient in the Cc: header of the message.
    subject: Specifies text that must appear in the subject header of the message. An example might be subject:"new vacation policy". Use quotes to search for exact match.
    in: Specifies a folder. For example, in:sent would show all items in your 'Sent' folder.
    has: Specifies an attribute that the message must have. The types of object you can specify are "attachment", "phone", or "url". For example, has:attachment would find all messages which contain one or more attachments of any type.
    filename: Specifies an attachment file name. For example, filename:query.txt would find messages with a file attachment named "query.txt".
    type: Specifies a search within attachments of a specified type. The types of attachment you can specify are "text", "word", "excel", and "pdf". For example, type:word "hello" finds messages with attachments that are Microsoft Word documents and searches within those attachments for the word "hello".
    attachment: Specifies any item with a certain type of attachment. For example, attachment:word would find all messages with Word attachments.
    is: Searches for messages with a certain status. Allowable values are "unread", "read", "flagged", "unflagged", "sent", "draft", "received", "replied", "unreplied", "forwarded", unforwarded", "anywhere", "remote" (in a shared folder), "local", "sent". For example, is: unread will find all unread messages. (Comming in 5.0 [hopefully] is:solo to see all emails/conversations without a reply!
    date: Use this keyword to specify a date, using the format that is default for your browser's locale (for US English the format is mm/dd/yyyy). For example, date:2/1/2007 would find messages dated February 1, 2007. The greater than (>) or less than (<) symbols can be used instead of after or before. >= and <= are also allowed.
    after: Specifies mail sent after a certain date. For example, after:2/1/2007 specifies mail sent after February 1, 2007.
    before: Same as after: except specifies mail sent before the specified date.
    size: Specifies messages whose total size, including attachments, is a specified number of bytes, kilobytes, or megabytes For example, size:12 kb would find messages that are exactly 12K in size. The greater than (>) or less than (<) symbols can be used instead of bigger or smaller.
    larger: Similar to size: except specifies greater than the specified size.
    smaller: Similar to size: except specifies smaller than the specified size.
    tag: Finds messages which have been tagged with a specified tag. For example, tag:amber will find message that have a tag called "amber" applied.

    Search Language Structure
    Simple searches can be done by just entering a word into the search field. Bare words (words without a search operator) are interpreted to search in the 'content:' operator -- this matches any text in the message.
    More advanced searches can be done by specifying a search operator. A search operator is a special keyword followed by a colon, followed by some other parameter specific to that operator. For example:
    • in:inbox the operator is "in" and the parameter is "inbox" - this returns messages which are in the folder named "inbox"
    • from:someone the operator is "from" and the parameter is "someone" - this returns messages which have the word "someone" in their email address
    You can prefix any keyword with the word "not" to specify items that do not have that criterion, for example not in:inbox. Search is case insensitive, meaning that "in:inbox" is the same as "in:Inbox". The minus sign (-) is a synonym for NOT So: not in:inbox is the same as -in:inbox
    In most cases, it is not necessary to include punctuation-type characters in your search string, as these are ignored by the search code. There are certain times where this is not true (for example, searching for a time '9:30' in a message) and in those cases you should enclose the search parameter in quotation marks. For example: subject:"9:30" will return messages which have the string 9:30 in the subject.
    Allowable characters in the search parameter:
    • The following characters cannot be anywhere in a search parameter unless it is enclosed by quotes: ~ ' ! # $ % ^ & * ( ) _ ? / { }[ ] ; :
    • The following characters are allowed in a search parameter as long as they are not the first character: - + < >
    Multiple Search Terms
    If multiple search terms are entered (separated by spaces) they are ANDed together by default. in:inbox foo means "return me messages which are in the inbox AND which have the word foo in them". For searches using multiple criteria, you can either find items that match one of the specified criteria or all of them. You can perform both types of searches using the Advanced search builder in the UI.
    For all search panes other than the Basic search, the rules are:
    • Searching for messages that match any of the specified criteria is called an 'OR' search, because if the message contains either X or Y, then it is considered a match. For Advanced search panes with multiple check boxes, making multiple selections within a single pane creates an 'OR 'search for those items.
    • Searching for messages that contain both X and Y is called an 'AND' search, because the message must meet all the specified criteria in order to be considered a match. For Advanced server panes with check boxes, opening multiple instances of the same pane and making different check box selections in each one causes the criteria to be specified as an 'AND' search.
    Only "OR" appears in a query. If you selected as an option to show the search query in the Search bar as you make selections in the Advanced search, the Search text box updates to show the resulting query. With the 'AND' type of search, the word 'AND' does not appear.
    Tip: Using parenthesis with AND and OR. Words within parentheses are considered as a unit. For example from: (john thomas) is equivalent to from:john AND from:thomas. If you use OR in the parenthesis, fromjohn or smith), the search is for results from:john OR from:thomas.

    Using * as a wildcard in Search
    The asterisk (*) can be used as a wildcard in a search to find content that contains words that have similar spellings.
    Use the asterisk * as a wildcard after a prefix. For example, the search string do* returns items such as do, dog, door, etc.

  3. #3
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Quote Originally Posted by gkra View Post
    Is there a way to have zimbra search message headers? Right now, we're having to resort to an IMAP client to do searches for specific header names/contents, as Zimbra doesn't have a "header:" keyword.

    I know, despite all the rest of the search flexibility, a number of our faculty are going to want to search for headers and header contents.
    Know this is an old thread-but I was looking for something else in it-BTW you can now filter by headers...I use X-Spam-Level all the time for those who individually want a lower setting: options tab> filters tab> new filter-select headers > X-Spam-Level> contains ** (the number of stars desired)

    play with filtering by x-originating ip etc

Similar Threads

  1. Replies: 3
    Last Post: 07-19-2007, 03:00 AM
  2. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 08:46 PM
  3. Custom headers: indexing in IMAP, and searching
    By shaver in forum Administrators
    Replies: 1
    Last Post: 02-10-2007, 08:45 AM
  4. Replies: 4
    Last Post: 08-10-2006, 11:55 PM
  5. Migration from Exchange 2003
    By goetzi in forum Administrators
    Replies: 13
    Last Post: 11-22-2005, 10:50 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
  •