M
Mike
I have thousands of .EMLX files from a client. I need to parse the To,
From, Subject, Date, and CC fields from the headers. I've got my code
running, and it works. I just can't help but think it isn't as efficient
as it could be.
I'm reading the files, which are plain text, and line-by-line looking for
the field names. The To and CC fields are particularly tricky because they
are multi-line (or can be). When I hit one of these fields, I start a sub
loop that captures the lines until it finds another field, which seems to
work okay.
I wrote versions of this code, which are practically identical, in VBA and
VBS to store this data in an access DB. Does anyone know a dll, COM object,
or .Net object that can do this more efficiently? I have no problem
re-writing my code if necessary. I'm going to be getting a hard drive full
of these soon, so I'd like to speed up my code as much as I can.
I also need to extract attachments. I have my Base64 decoder working using
MSXML2, but I'm having trouble identifying the begging and end of the
attachment.
From, Subject, Date, and CC fields from the headers. I've got my code
running, and it works. I just can't help but think it isn't as efficient
as it could be.
I'm reading the files, which are plain text, and line-by-line looking for
the field names. The To and CC fields are particularly tricky because they
are multi-line (or can be). When I hit one of these fields, I start a sub
loop that captures the lines until it finds another field, which seems to
work okay.
I wrote versions of this code, which are practically identical, in VBA and
VBS to store this data in an access DB. Does anyone know a dll, COM object,
or .Net object that can do this more efficiently? I have no problem
re-writing my code if necessary. I'm going to be getting a hard drive full
of these soon, so I'd like to speed up my code as much as I can.
I also need to extract attachments. I have my Base64 decoder working using
MSXML2, but I'm having trouble identifying the begging and end of the
attachment.