On 04-11-13 19:54, Zforgetaboutit wrote: > Assuming I have 2 messages - one with '*Subject: x*' and the other with > '*Subject: y*' - I tried > > # test 1 # PASS > $ *rm -rfv /tmp/db1; dbmail-export -u db1 -m Inbox -s '1:* (header subject > y)' -b /tmp* > > > # test 2 # PASS > $ *rm -rfv /tmp/db1; dbmail-export -u db1 -m Inbox -s '1:* or (header > subject x) (header subject y)' -b /tmp* > > > # test 3 # HANGS > $ *rm -rfv /tmp/db1; dbmail-export -u db1 -m Inbox -s '1:* and (header > subject x) (header subject y)' -b /tmp* > > *removed directory: `/tmp/db1' > Exporting [1] mailboxes for [db1] > export mailbox INBOX -> /tmp/db1/INBOX.mbox > invalid search string* > > # My search is purposely invalid. Since *dbmail-export* knows about the > '*invalid search string*' I propose it can and must self-terminate rather > than hang.
The deadlock was fixed. I ran into the same yesterday. http://git.dbmail.eu/paul/dbmail/commit/?h=dbmail_3_1&id=0cc75c7fa56253b9934f7ab92b9ae6bac0ff259f The search string is invalid because of the embedded newline. Keep it on a single line: dbmail-export -u db1 -m Inbox \ -s '1:* and (header subject x) (header subject y)' \ -b /tmp I also don't understand why you're adding a '*' to the base-directory. Don't. -- ________________________________________________________________ Paul J Stevens pjstevns @ gmail, twitter, github, linkedin * Premium Hosting Services and Web Application Consultancy * www.nfg.nl/[email protected]/+31.85.877.99.97 ________________________________________________________________ _______________________________________________ DBmail mailing list [email protected] http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
