URGENT: EML file's Date header field

Bulk Rename Utility How-To's

URGENT: EML file's Date header field

Postby chrisjj » Sun Mar 30, 2025 1:46 am

How can I prefix the value of an EML file's Date email header field?

Help's "The Item Date is the primary date of interest for an item" is incorrect for EML. "Item Date" does not equal Date.

Thanks.
chrisjj
 
Posts: 14
Joined: Wed Mar 30, 2011 5:26 pm


Re: URGENT: EML file's Date header field

Postby chrisjj » Sun Mar 30, 2025 2:13 pm



Thanks.

(Warning to others; that code reads Received date not Date header field.)

The nearest to requirements is this comment:

Code: Select all
Many thanks for the code. I had some problem to bind date and the date format has not been correct(mm vs MM) so i changed the EMLDate to $EMLDate = Get-Date ($cdoEML.SentOn) -Format "yyyy-MM-dd-HH.mm" .. ReceivedTime year was 1899 at some files but the SentOn is correct for my files.


https://www.reddit.com/r/PowerShell/comments/qvypf7/comment/illbpg1/

but my web searches I have not succeeded so far in discovering whether that genuinely delivers Date field value. I have little experience in MS programming.

Ideas?
chrisjj
 
Posts: 14
Joined: Wed Mar 30, 2011 5:26 pm

Re: URGENT: EML file's Date header field

Postby chrisjj » Mon Mar 31, 2025 11:19 am

chrisjj wrote:
TheGhost78 wrote:
but my web searches I have not succeeded so far in discovering whether that genuinely delivers Date field value.

Ideas?


This suggests maybe

https://learn.microsoft.com/uk-ua/previous-versions/office/developer/exchange-server-2003/ms872687(v=exchg.65)

if timezone conversion can be avoided.
chrisjj
 
Posts: 14
Joined: Wed Mar 30, 2011 5:26 pm

Re: URGENT: EML file's Date header field

Postby Admin » Mon Mar 31, 2025 10:46 pm

What does the Windows File Property -> Details tab show for the EML file? Bulk Rename will match that.
Admin
Site Admin
 
Posts: 2883
Joined: Tue Mar 08, 2005 8:39 pm

Re: URGENT: EML file's Date header field

Postby chrisjj » Mon Mar 31, 2025 11:07 pm

Admin wrote:What does the Windows File Property -> Details tab show for the EML file? Bulk Rename will match that.


Thanks but no good. It is timezone-converted.
chrisjj
 
Posts: 14
Joined: Wed Mar 30, 2011 5:26 pm

Re: URGENT: EML file's Date header field

Postby Admin » Tue Apr 01, 2025 5:17 am

You can adapt the date with BRU javascript, can you send a sample file to support via e-mail? thanks
Admin
Site Admin
 
Posts: 2883
Joined: Tue Mar 08, 2005 8:39 pm

Re: URGENT: EML file's Date header field

Postby chrisjj » Tue Apr 01, 2025 9:20 am

Admin wrote:You can adapt the date with BRU javascript, can you send a sample file to support via e-mail? thanks

Done. Thanks.
chrisjj
 
Posts: 14
Joined: Wed Mar 30, 2011 5:26 pm


Return to How-To