fetchmail-friends
[Top] [All Lists]

[fetchmail]Feature request

2002-05-09 09:22:25
Hi guys,
first things first... congratulations for the good work!

Ok now a few days ago I had I problem I couldn't solve with fetchmail. I'm not much of a C programmer so I rewrote the whole thing in java. Using javamail things are really easy. here's the deal: I needed to fetch only some messages from my IMAP mailbox. AFAIK fetchmail do not implemements serch criteria does it?

Do you guys thing it may be a worth feature?

here's a sample of my conf file to give you an idea:

<source URL="[imap|pop3]://username:password(_at_)host/rootmailbox[.subfolder]] " recursion="[0-99999]" delete="[true|false]"/>
    <target URL="smtp://username[:password](_at_)host"/>

    <search>
        <or>
            <and>
                <sentdate comparison="GT" date="31.12.2001"/>
                <sentdate comparison="LT" date="31.01.2002"/>
            </and>
            <and>
                <flag name="FLAGGED" value="true"/>
                <flag name="DELETED" value="false"/>
            </and>
            <not>
                <flag name="SEEN" value="false"/>
            </not>
            <size comparison="GT" value="100K"/>
            <body pattern="Send this to 10 of your friends"/>
            <header name="Subject" patern="You won 10K$!"/>
        </or>
    </search>

Thoughts?

Federico



<Prev in Thread] Current Thread [Next in Thread>