#3 bmf says email is not email

v1.0 (example)
closed-fixed
nobody
5
2002-10-21
2002-10-12
Anonymous
No

I use imapd and maildir. I tested bmf on my spam directory and bmf
returned that each file I tried "./bmf: input does not look like email"
I have tried various command line options but always with -i

Sean

Discussion

  • Tom Marshall

    Tom Marshall - 2002-10-12

    Logged In: YES
    user_id=614531

    I am investigating this problem. It happens because bmf is expecting an
    email to begin with the envelope header "From ". This is true for email
    when it is delivered with sendmail and friends, and it is also true for mbox
    style folders. Apparently it is not true for maildir style folders.

    The following patch (to version 0.9.2) should fix the error message, but it
    will also remove the ability to process multiple emails per file (such as mbox
    folders). I will try to fix this issue within the next day or two.

    --- bmf.c Sat Oct 12 00:34:27 2002
    +++ bmf-nofrom.c Sat Oct 12 09:17:47 2002
    @@ -321,14 +321,7 @@
    }

    lex_nexttoken( &lex, &tok );
    - if( tok.tt != from )
    - {
    - fprintf( stderr, "%s: input does not look like email\n", argv[0] );
    - exit( 2 );
    - }

    - while( tok.tt == from )
    - {
    vec_create( &mlist );
    bvec_loadmsg( &mlist, &lex, &tok );

    @@ -406,7 +399,6 @@
    }

    vec_destroy( &mlist );
    - }

    lex_destroy( &lex );

     
  • Tom Marshall

    Tom Marshall - 2002-10-21

    Logged In: YES
    user_id=614531

    Claim fixed in 0.9.4. Please verify and close.

     
  • Tom Marshall

    Tom Marshall - 2002-10-21
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks