On Fri, Jul 20, 2007, List Receiver <[EMAIL PROTECTED]> said: > I'm trying to use the dbmail-export feature from 2.2.5 to create an mbox file > from a mailbox that only has certain addresses in the To or From fields. I'm > unfamiliar with how to format that, and the man page and example from -h > hasn't been enough to get me going. I've tried this: > > dbmail-export -u user -m "my box" -s "1:* FROM [EMAIL PROTECTED]" > > That didn't work, however. It produced a 0 byte file and no error code. How > do I format an IMAP search string to select To and From? As well, is there a > way to do search strings for multiple To/From addresses? I guess I just need > to know how to do search strings in IMAP land. :^) >
Indeed! Check out RFC 3501: http://www.ietf.org/rfc/rfc3501.txt Section 6.4.4: SEARCH Command. I'll include a reference to it in the man page. (Might even be worth excerpting the entire section?) I believe what you're looking for is '-s "1:* HEADER From [EMAIL PROTECTED]". Plain FROM looks at the envelope sender (which might still produce some of the results that you want, or might not). Also check out the AND and OR commands. Aaron _______________________________________________ DBmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
