Re: How to use --searchset to filter resultant messages
Charles Cazabon <[email protected]> Wed, 26 Oct 2022 07:16:05 -0600
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
ttbil1 <[email protected]> wrote: > > I could not figure out how to use the --searchset/-s option to pass a search > key that would filter the resultant messages. I did not find the --help > explanation very clear and also the man page did not have anything about the > option at all. getmail does not have such an option, so of course the man page doesn't mention it. Where did you get the idea that it did? > For example let's say I want to retrieve all messages sent since 3rd of June > 2022 by the message's Date header. The IMAP filter keyword looks like this: > 'SENTSINCE 03-Jun-2022' I tried passing the option as such: -s 'SENTSINCE > 03-Jun-2022' and also: -s 'SENTSINCE=03-Jun-2022' but getmail would still > fetch all other messages (as by default). getmail should error out when you pass unknown options like that. Are you sure you're actually running getmail? > I could not find anything about this option in the lists' archives so > hopefully one of you can enlighten me as to how do that. Again, that option doesn't exist, so it won't be in the archives. Charles -- ----------------------------------------------------------------------- Charles Cazabon GPL'ed software available at: http://pyropus.ca/software/ -----------------------------------------------------------------------