https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40934

--- Comment #10 from Marion Durand <[email protected]> ---
Thank you for your work :) Everything works well for me except for the point 7.

If I try to use both --code and --exclude-code, the order of the parameter
matters.

My message queue table contain 4 messages with status pending (restored between
each run of process_mesage_queue).
- PREDUE
- DUEDGST
- WELCOME
- CHECKOUT

a- If I use the command
```
./misc/cronjobs/process_message_queue.pl --code WELCOME --exclude-code DUEDGST
```
The WELCOME notice is processed and nothing else is processed (expected for
--code, the exclude-code is not needed as it will only process WELCOME notice)

b- If I use the command
```
./misc/cronjobs/process_message_queue.pl --exclude-code DUEDGST --code WELCOME
```
Everything is processed except DUEDGST (expected for --exclude-code, the --code
is not taken into account (only the WELCOME should be processed if it was))

So the script is not warning, but only the first one is taken into account.


To me, it makes no sens to use both argument --code and --exclude-code in the
same line. (either I send everything except a few (--excludecode) or I send
only those listed (--code)).
In other word (because I'm not sure if I'm clear)
The --code argument is used to send only a list of message (so no need to
exclude some other, just list what you need)
The --exclude-code argument is used to send everything except a list (so no
need to list what you want to send).

I think it should work the same as --category and --skip-category in cronjob
longoverdue.pl (they are incompatible with each other).

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to