RealRaven2000 / FiltaQuilla

Adds many new mail filter actions to Thunderbird
http://quickfilters.quickfolders.org/filtaquilla.html
GNU General Public License v3.0
88 stars 17 forks source link

Support printing the same email multiple times #165

Closed git-seb closed 2 years ago

git-seb commented 2 years ago

Using Thunderbird 91.10.0 with FiltaQuilla 3.4. Unable to print emails twice eventhough I've added two print filter jobs with same details. This was possible before but not anymore.

Expected result: When email comes in, gets printed twice.

Radiomyme commented 2 years ago

Same issue here. Like you, I've tried to set up multiple filters (up to 10), but still, one or two print maximum. I can see that the print was requested in the logs, but the dialog print window only shows once at maximum.

Is there a workaround ?

git-seb commented 2 years ago

@Radiomyme Have not found a workaround yet. Hopefully this gets picked up soon. An outside workaround could be letting those emails sent to your inbox twice. But that is just too unlogic.

Radiomyme commented 2 years ago

I’ve tried to send the specific email to 4 different email accounts liked to the same thunderbird and a similar filter settings (if email object is like then print). Even with that only one or two emails are print while more that 10 are requested almost at the same time…

RealRaven2000 commented 2 years ago

Can you try by installing the PrintingToolsNG Add-on and the option to use it?

image

Radiomyme commented 2 years ago

I’ve tried it, and the option is still active right now but nothing changed. I only get one print while I have 4 filters to get 4 prints… I don’t know if I have to activate something more with this add on.

git-seb commented 2 years ago

@RealRaven2000 Thanks for your reply. Actually using PrintingTools NG already for months together with your plugin. Printing multiple just stopped after some of the last major updates, not sure which one.

git-seb commented 2 years ago

Any news here or will there be looked at the issue?

RealRaven2000 commented 2 years ago

didn't get a chance yet sorry. I would need to write some test routine for better print queueing because I don't want to waste too much paper :) It's a bit of a mystery that the print queue of the OS cannot catch all the print jobs that are sent it's way. I wonder whether @cleidigh has any insights?

cleidigh commented 2 years ago

All Can I get info on the versions in use and an example setup? Reading above it's not clear to me if all of the issue cases are involving PTNG or if this problem occurs with FiltaQuila alone. @realraven and I need to understand to debug. @cleidigh

Radiomyme commented 2 years ago

Hello, please find enclosed all the information regarding FiltaQuilla (3.5) and PrintingToolsNG (2.1.4) and Thunderbird (91.11.0). The filter is set when a new email is received and the object is containing a string. The goal is to have 4 print (the same filter is set 4 times).

095EDCCA-EE81-4545-A07A-57A49CF95048 E1A161B3-A717-431E-91DC-656F89CC4FD6 F5902716-9C12-4340-8D78-0DC88AF05DE0 1491CB83-2D72-4E3E-851F-3D0631DACD12 8F58D5A5-5C1E-4663-BCC3-3E3AAAA8C145 09450F52-8FEB-4138-BC86-9DF23D9E8CC3 F085BCD5-32BB-4A7B-997A-97533B29A038

cleidigh commented 2 years ago

@Radiomyme @RealRaven2000 I have reproduced this issue on my system. From the debug you can see two incoming ext_print requests. I have two filter rules. The problem is that the second request has a null msg uri @realraven let me know how you want to proceed debugging... @cleidigh

2022-07-31-16-54-02
RealRaven2000 commented 2 years ago

@Radiomyme @RealRaven2000 I have reproduced this issue on my system. From the debug you can see two incoming ext_print requests. I have two filter rules. The problem is that the second request has a null msg uri @realraven let me know how you want to proceed debugging... @cleidigh

@cleidigh Can I configure PTNG so it generates files instead of printing to my printer in order to preserve paper? these are the global options available to me at the moment:

image

cleidigh commented 2 years ago

@RealRaven2000 yes set the default printer to a pdf and just cancel the print. You will get and process the print requests but not print or save. @cleidigh

cleidigh commented 2 years ago

@RealRaven2000 Any luck? @cleidigh

RealRaven2000 commented 2 years ago

@RealRaven2000 Any luck? @cleidigh

sorry I didn't have time to test that yet was quite busy with QuickFolders, lots of issues there ... I will get to this later this week!

RealRaven2000 commented 2 years ago

@RealRaven2000 yes set the default printer to a pdf and just cancel the print. You will get and process the print requests but not print or save. @cleidigh

how do I add "print to pdf" is this supported by the MS XPS Document Writer? Or do I need to install a special driver into Windows7? Here are the options I see:

image

RealRaven2000 commented 2 years ago

Here is a test version that should allow printing duplicates. but you have to set the about:config setting

extensions.filtaquilla.print.allowDuplicate = true

filtaquilla-3.5.1pre2.zip

cleidigh commented 2 years ago

@RealRaven2000 I guess you don't have any pdf drivers, the xps should do. Just cancel the print to file. I'll try your beta. @cleidigh

cleidigh commented 2 years ago

@RealRaven2000 I tried beta with the duplicate setting true, but the second request comes in with messageHdr null

@cleidigh

git-seb commented 2 years ago

@RealRaven2000 Any news? I konw you're busy so thanks for at least looking into it when you can. I can confirm the latest beta didn't fix it for me either. Same as @cleidigh

RealRaven2000 commented 2 years ago

New version below. I added a bunch of debug output and UI to allow duplicates:

image

filtaquilla-3.5.1pre13.zip

Restart Thunderbird after installation to remove the old action.

git-seb commented 2 years ago

@RealRaven2000 I can confirm it works now. Thanks a bunch!

Radiomyme commented 2 years ago

@RealRaven2000 it works for me as well ! Thank you so much

RealRaven2000 commented 2 years ago

Included in release 3.6, published on 17/10.

cleidigh commented 2 years ago

cool. when I get time we can look at the printer/page options @cleidigh