Open eshafik opened 1 year ago
Seems really an important control and necessary configuration.
This is very useful feature. We had to need this control for our project also.
Very helpful feature to have, would be very productive for the projects I'm currently working on.
I'm very curious to hear if anybody genuinely would find something like this useful -- I don't understand what the use case is for this and would like some insight.
That being said: I have to say that it's more than a little suspicious that the three :heart:s/comments that this PR received were not only the only :heart:s/comments that it has ever received, but that they were all posted within one hour of one another, and just a couple hours after the PR was posted. So: I'm at this point assuming that the :heart:/commenters are just members of your social network, @eshafik, and I'm inclined to assume their comments are not genuine.
This PR:
Added named argument [optional] to read one or multiple mailbox from getmail command. Example:
python manage.py getmail -mb mailbox1 mailbox2
orpython manage.py getmail --mailboxes mailbox1 mailbox2
Added named argument [optional] to read maximum number of emails from mailbox. It can be used from getmail management command - Example:
python manage.py getmail -mr 10
orpython manage.py getmail --max_read 10
Updated docs/topics/polling.rst file to guide the users for this changes.
This changes have been used in one of our live project which handles thousands of email per day. It might be helpful to other also.