info_new_from_parser


Description:

[ CCode ( vfunc_name = "message_info_new_from_parser" ) ]
public virtual MessageInfo info_new_from_parser (MimeParser parser)

Create a new info record from a parser.

If the parser cannot determine a uid, then none will be assigned.

If indexing is enabled, and the parser cannot determine a new uid, then one is automatically assigned.

If indexing is enabled, then the content will be indexed based on this new uid. In this case, the message info MUST be added using CamelFolderSummary:add().

Once complete, the parser will be positioned at the end of the message.

Parameters:

this

a FolderSummary object

parser

a MimeParser object

Returns:

a newly created MessageInfo. Unref it with unref, when done with it.