Document.getItemValue() doesn't work?

Discussion in 'Lotus Notes Administration' started by Frank Riley, Oct 25, 2003.

  1. Frank Riley

    Frank Riley Guest

    I have a java agent in which I'm trying to filter email based on the
    "Received" header. Here is the code I'm using:

    Vector receivedVec = doc.getItemValue("Received");
    Iterator iter = receivedVec.iterator();
    while (iter.hasNext())
    String val = (String);
    log.logAction("Received=" + val);
    if (val.toLowerCase().indexOf("[email protected]") != -1)
    move = true;

    The problem is getItemValue() is not returning all of the Received headers.
    When I look at the document properties after the doc has been delivered to
    my inbox, I can see there are two Received headers, and yet getItemValue()
    only returns a Vector of size 1, which contains only the first Received
    header. How can I get all of the Received headers?
    Frank Riley, Oct 25, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.