printing-tools-ng icon indicating copy to clipboard operation
printing-tools-ng copied to clipboard

Add message date (not print date) token for headers and footers

Open radix82 opened this issue 1 year ago • 13 comments

Windows Version: 10 22H2 PrintingTools Version: 3.1.0 Client: Thunderbird 128.5.2esr (32-Bit)

Hello

Is it possible to put the date of receipt into the footer? At the moment, you can only insert today's date with &D.

I hope someone can help me or make it possible in the future.

Thanks a lot

radix82 avatar Dec 18 '24 22:12 radix82

@radix82 Currently PrintingTools allows setting both the header and footer with text and the predefined items such as &D for the print date. I think I can add a custom one &R for the receive date following the custum date format and substitute that up front. I have beta in progress that I can try this. @cleidigh

cleidigh avatar Dec 19 '24 18:12 cleidigh

Thank you very much So I'll wait and see...

radix82 avatar Dec 19 '24 21:12 radix82

@radix82 @kiki-ja I know how I can do this for v3.1.1. When I do I am wondering what other replacement tokens I might include? @kiki-ja anything you would like to see?

@cleidigh

cleidigh avatar Dec 19 '24 23:12 cleidigh

@cleidigh

anything you would like to see?

So far there is nothing I would like to see. I don't see the need to display the receive date in the footer since it is already available in the message header display settings.

PTNG-311b2-tab1-add-received-date

Test Message for PrintingTools NG

However, if there is a clear purpose for displaying the received date in the footer, I think it is worth considering.

@kiki-ja

kiki-ja avatar Dec 20 '24 14:12 kiki-ja

a pity

radix82 avatar Dec 22 '24 16:12 radix82

@radix82 Neither @kiki-ja nor I are saying this can't happen. I think @kiki-ja was just pointing out it's existence in the header The title appears in all pages by default. I could see a potential use case in the legal world where the print date is irrelevant, but the message date is.

Anyway I can't look more into this yet as I have a critical release for importexporttools. @cleidigh

cleidigh avatar Dec 30 '24 22:12 cleidigh

@radix82 I should have beta 3 with this shortly. As always, there was more to it than I originally thought. I do expect some help testing the beta... @cleidigh

cleidigh avatar Jan 03 '25 17:01 cleidigh

Hello, I would like to help with testing 😇

radix82 avatar Jan 03 '25 20:01 radix82

@radix82 @kiki-ja

Ok I have support for this in b3, grab here:

  • #276

Use &MD in any hdr or ftr to add the message date as opposed to &D, the print date. Note the format will follow the date format set for the message header.

I have tested most views including opening an eml. @cleidigh

cleidigh avatar Jan 03 '25 23:01 cleidigh

@cleidigh

PrintingTools NG 3.1.1-b3 Thunderbird 128.5.2esr 64bit Windows 10 Pro 22H2 64bit

Here are the results of my tests. It worked for all headers and footers.

PTNG 311b3 Fotters-0

Test Message for PrintingTools NG-2

@kiki-ja

kiki-ja avatar Jan 05 '25 06:01 kiki-ja

Good day. I can confirm the function. It works pretty good. Thank you for the implementation. <3 <3 <3

radix82 avatar Jan 05 '25 19:01 radix82

@kiki-ja @radix82 Thanks for testing. I think we are good to go with this after cleanup. @radix82 Reviews are always appreciated ;-} @cleidigh

cleidigh avatar Jan 06 '25 20:01 cleidigh

I am wondering what other replacement tokens I might include?

Hi @cleidigh :) For your consideration and for your decision as maintainer of PrintingTools NG, in addition to message date, I suggest adding an optional token for the Message-ID.

For those not familiar with the Message-ID, it is a globally unique identifier per email. For example: Message-ID: [email protected] Which is very useful to quickly and easily find either an email or find an email printed to a PDF file.

Details in these related tickets:

  • https://github.com/cleidigh/printing-tools-ng/issues/283
  • https://github.com/cleidigh/printing-tools-ng/issues/285

Francewhoa avatar Mar 19 '25 16:03 Francewhoa