Home > Software engineering >  Multiprocess iteration through, and storage, of message objects from a win32com Outlook inbox
Multiprocess iteration through, and storage, of message objects from a win32com Outlook inbox

Time:02-10

I have quite a large inbox that i’m accessing through win32com, where I am using a multiprocessing pool map where for each message, I am getting relevant info (sender, body, etc) appending it all into a list, and then appending that list onto a 2D list representing the inbox.

My question is, how can I work with the win32com objects if they can’t be used by pickle? What way can I multiprocess them? The only way I can think of is assigning each bit of info I need to a variable before the multiprocessing begins, but this would take a loop and defeats the whole purpose of the multiprocessing.

Let me know if you need more information, I hesitate pasting code since it seems so far from working now.

Thanks

CodePudding user response:

  •  Tags:  
  • Related