def parseSettingValue(messageLine, setting):
    """Parses and returns a setting value from the message line.
       The setting value is identified by setting="value"."""
    words = messageLine.strip().split('\t')

    settingString = setting + '="'
    for word in words:
        mark = word.find(settingString)
        if mark >= 0:
            value = word[len(settingString):].rstrip('"')
            return value

    return None