473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Python COM Outlook Question


Say I want to open a shared email inbox (named "DailyGoodEmails") that
is different from my default Outlook inbox, how do I specify this?

Currently, I would do:

s = Dispatch("Outlook.Application")
space = s.GetNameSpace("MAPI")
inbox = space.GetDefaultFolder(6)
myFolder = inbox.Folders[9] #open the folder i want
I have no idea where the "6" comes from but I want to be able to
specify "DailyGoodEmails" somewhere
and be able to iterate over the emails.

Mar 21 '07 #1
1 1159
On Mar 21, 2:15 pm, "liam_herron" <liam_her...@hotmail.comwrote:
Say I want to open a shared email inbox (named "DailyGoodEmails") that
is different from my default Outlook inbox, how do I specify this?

Currently, I would do:

s = Dispatch("Outlook.Application")
space = s.GetNameSpace("MAPI")
inbox = space.GetDefaultFolder(6)
myFolder = inbox.Folders[9] #open the folder i want

I have no idea where the "6" comes from but I want to be able to
specify "DailyGoodEmails" somewhere
and be able to iterate over the emails.
I don't know how to do this, but I found you a couple websites that
should point you in the right direction:

http://www.boddie.org.uk/python/COM.html
http://webservices.xml.com/pub/a/ws/.../13/email.html

Hope that helps.

Mike

Mar 21 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Avi Kak | last post by:
Hello: Please forgive me if my question is too silly or just not well-formed. Wesley Chun in his book (Core Python Programming) says that **everything** in Python is an object. So I became...
9
by: Alex Martelli | last post by:
All my mailboxes have been filling up with files of about 130k to 150k, no doubt copies of some immensely popular virus. So, I've no doubt lost lots of real mail because of "mailbox full"...
3
by: Fernando Gabrieli | last post by:
I need to communicate with Outlook 2000 COM object using win32com in Python. I registered a new class and called win32com.server.register.UseCommandLine(OutlookAddin) using this for...
5
by: M. Laymon | last post by:
I just installed Python 2.3.3 under Windows XP professional. After I did, my wife tried to access her email using Outlook Express and got the error messages: Your server has unexpectedly...
40
by: ian | last post by:
Hi, I'm a newbie (oh no I can here you say.... another one...) How can I get Python to send emails using the default windows email client (eg outlook express)? I thought I could just do the...
3
by: Subir | last post by:
Hi, I am new to this group. I am trying to build an application to see all the contents of the outlook accounts (USING MAPI). Does anyone has any information regarding this ?
1
by: The Night Blogger | last post by:
Is there a way to pull & push data (Tasks, Notes, Calendar Items ...) into Microsoft Oulook from Python ?
8
by: kyosohma | last post by:
Hi, I've been googling all over and can't find any good answers about this problem. I would like to create some kind of MAPI interface with Python such that when I open Microsoft Word (or...
1
by: SPJ | last post by:
My previous post was not clear, hence resending this. ------------------------- Hi, I am trying to create new tickets in the ticketing system using python. When I receive new email from a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.