Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#95 --input-file option broken

closed
nobody
None
5
2006-01-06
2006-01-02
Joel Rosdahl
No

The --input-file option doesn't work for me; neither the "--input-file=foo" nor the "--input-file foo" form. "-I foo" works, though.

Here are commandline examples of the problem:

% bogofilter --input-file=foo
Unknown option '--input-file=foo'.
% bogofilter --input-file foo
Can't read '(null)'

I have tested both version 0.95.2 (in Ubuntu 5.10) and version 1.0.0 (in Debian testing) with the same result.

Discussion

  • David Relson
    David Relson
    2006-01-02

    Logged In: YES
    user_id=30510

    Thanks for reporting the problem. The patch below fixes it
    for me. Let me know if it works for you.

    David

    --- longoptions.h 27 Dec 2005 15:38:12 -0000 1.20
    +++ longoptions.h 2 Jan 2006 18:56:20 -0000
    @@ -78,8 +78,8 @@
    { "config-file", R, 0, O_CONFIG_FILE }, \ { "no-config-file", N, 0, 'C' }, \ { "help", N, 0, 'h' }, \ - { "input-file", N, 0, 'I' }, \ - { "output-file", N, 0, 'O' }, \ + { "input-file", R, 0, 'I' }, \ + { "output-file", R, 0, 'O' }, \ UNICODE_OPTION \ { "version", N, 0, 'V' }, \ { "verbosity", N, 0, 'v' },

     
  • Joel Rosdahl
    Joel Rosdahl
    2006-01-06

    Logged In: YES
    user_id=58503

    Yes, it works fine. Thanks.

     
  • David Relson
    David Relson
    2006-01-06

    • status: open --> closed