> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Aaron Stone > Sent: Friday, July 20, 2007 12:07 PM > To: DBMail mailinglist > Subject: Re: [Dbmail] Dbmail-export search options > > 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. >
Thanks much. The RFC is quite helpful...now if only I could get my query to produce the results it should be producing... :^) dbmail-export -u user -m "mailbox" -s "1:* HEADER From [EMAIL PROTECTED]" This command still produces a 0byte file with no error messages or warnings. If I exclude the search string from the command or change the search string to purely the date-based example in the -help, it outputs the expected file. What could be messed up with my system that it's not producing results? > Aaron > _______________________________________________ > DBmail mailing list > [email protected] > https://mailman.fastxs.nl/mailman/listinfo/dbmail _______________________________________________ DBmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
