Re: How to modify getmail to use output from python-O365 format
Charles Cazabon <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
Ranjan Maitra <[email protected]> wrote: > > I need to (and am able to) access my accounts using python-o365 at: > https://github.com/O365/python-o365 > > I would like to process this output using getmail. I'm not sure what you mean by "process this output"; that sounds like you have a process which is retrieving the mail already? If so, and you just need to deliver into a Maildir or Mboxrd file, you can use the included getmail_maildir/getmail_mbox to do that. However, if you mean "make getmail retrieve mail using the Office 365 protocol instead of IMAP or POP", then that's a major undertaking. If you're already a competent Python programmer and are comfortable with that "O365" library, you should be able to implement a new retriever base class, or possibly just an init mixin class. Look in _retrieverbases.py. It would definitely be easier to just use IMAP to access the mail, if that's possible. Charles -- ----------------------------------------------------------------------- Charles Cazabon GPL'ed software available at: http://pyropus.ca/software/ -----------------------------------------------------------------------