473,407 Members | 2,546 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,407 software developers and data experts.

POP3 -> Exchange and CDO?

I'm looking for an app that would allow me to
download mails from various POP3 accounts and
put them into my Exchange inbox on the server
side (rather than having to have outlook open
to do it all the time).

There are many products that do this, but
they're very expensive considering it's just
for me and just for tinkering.

So I decided I'd try to write my own. I've
found some decent POP3 classes/libraries,
but the problem is, how do I put those mails
into Exchange. I assume that CDO is the
way to go, but I'm not that familiar with it
and not even sure where to start. Every example
I've found shows how to READ from CDO, but not
to write. Perhaps it's not even possible.

I was hoping I could avoid having to rewrite
the headers and all that. Is there a quick
and easy way to just dump raw POP3 message
text into CDO and let Exchange Server/CDO figure
out how to translate it into a MAPI/CDO message
object for display in Outlook?

Thanks,
Chad
Nov 15 '05 #1
3 2855
Hi,

Why you don't get messages with pop3 client and send them with smtp client
exchange server.

Incoming messages are stored always to exchange server's Inbox.

This application can be done with some lines of code.

"Chad Myers" <cm****@N0.SP.AM.austin.rr.com> wrote in message
news:QA*******************@twister.austin.rr.com.. .
I'm looking for an app that would allow me to
download mails from various POP3 accounts and
put them into my Exchange inbox on the server
side (rather than having to have outlook open
to do it all the time).

There are many products that do this, but
they're very expensive considering it's just
for me and just for tinkering.

So I decided I'd try to write my own. I've
found some decent POP3 classes/libraries,
but the problem is, how do I put those mails
into Exchange. I assume that CDO is the
way to go, but I'm not that familiar with it
and not even sure where to start. Every example
I've found shows how to READ from CDO, but not
to write. Perhaps it's not even possible.

I was hoping I could avoid having to rewrite
the headers and all that. Is there a quick
and easy way to just dump raw POP3 message
text into CDO and let Exchange Server/CDO figure
out how to translate it into a MAPI/CDO message
object for display in Outlook?

Thanks,
Chad

Nov 15 '05 #2
I think that this won't work very well because the
headers will get tampered with. I think I know
how to do it now after having read a little more.

You basically open a session to the Inbox and then
do:
(pseudo-code)

Message msg = inbox.Messages.Add(....);

msg.Subject = popMessage.Subject;
msg.Sender = popMessage.Sender;
....

and then commit the message somehow.

My only concern would be attachments and things
like that. That's what I was hoping someone else
had done this before or had some free utilities
or code to do this.

-c

"Ivar" <iv**@lumisoft.ee> wrote in message
news:Oe*************@TK2MSFTNGP10.phx.gbl...
Hi,

Why you don't get messages with pop3 client and send them with smtp client exchange server.

Incoming messages are stored always to exchange server's Inbox.

This application can be done with some lines of code.

"Chad Myers" <cm****@N0.SP.AM.austin.rr.com> wrote in message
news:QA*******************@twister.austin.rr.com.. .
I'm looking for an app that would allow me to
download mails from various POP3 accounts and
put them into my Exchange inbox on the server
side (rather than having to have outlook open
to do it all the time).

There are many products that do this, but
they're very expensive considering it's just
for me and just for tinkering.

So I decided I'd try to write my own. I've
found some decent POP3 classes/libraries,
but the problem is, how do I put those mails
into Exchange. I assume that CDO is the
way to go, but I'm not that familiar with it
and not even sure where to start. Every example
I've found shows how to READ from CDO, but not
to write. Perhaps it's not even possible.

I was hoping I could avoid having to rewrite
the headers and all that. Is there a quick
and easy way to just dump raw POP3 message
text into CDO and let Exchange Server/CDO figure
out how to translate it into a MAPI/CDO message
object for display in Outlook?

Thanks,
Chad


Nov 15 '05 #3
I think that this won't work very well because the
headers will get tampered It will work, but if you don't like it ...

And besides if exchange server has IMAP installed you can store message to
any folder.
IMAP protocol has APPEND command which allows to to store messages into
folders.
With IMAP you also can move,copy,delete in folders.

"Chad Myers" <cm****@N0.SP.AM.austin.rr.com> wrote in message
news:1i*******************@twister.austin.rr.com.. . I think that this won't work very well because the
headers will get tampered with. I think I know
how to do it now after having read a little more.

You basically open a session to the Inbox and then
do:
(pseudo-code)

Message msg = inbox.Messages.Add(....);

msg.Subject = popMessage.Subject;
msg.Sender = popMessage.Sender;
...

and then commit the message somehow.

My only concern would be attachments and things
like that. That's what I was hoping someone else
had done this before or had some free utilities
or code to do this.

-c

"Ivar" <iv**@lumisoft.ee> wrote in message
news:Oe*************@TK2MSFTNGP10.phx.gbl...
Hi,

Why you don't get messages with pop3 client and send them with smtp

client
exchange server.

Incoming messages are stored always to exchange server's Inbox.

This application can be done with some lines of code.

"Chad Myers" <cm****@N0.SP.AM.austin.rr.com> wrote in message
news:QA*******************@twister.austin.rr.com.. .
I'm looking for an app that would allow me to
download mails from various POP3 accounts and
put them into my Exchange inbox on the server
side (rather than having to have outlook open
to do it all the time).

There are many products that do this, but
they're very expensive considering it's just
for me and just for tinkering.

So I decided I'd try to write my own. I've
found some decent POP3 classes/libraries,
but the problem is, how do I put those mails
into Exchange. I assume that CDO is the
way to go, but I'm not that familiar with it
and not even sure where to start. Every example
I've found shows how to READ from CDO, but not
to write. Perhaps it's not even possible.

I was hoping I could avoid having to rewrite
the headers and all that. Is there a quick
and easy way to just dump raw POP3 message
text into CDO and let Exchange Server/CDO figure
out how to translate it into a MAPI/CDO message
object for display in Outlook?

Thanks,
Chad



Nov 15 '05 #4

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

Similar topics

1
by: Lev Altshuler | last post by:
Hi, I am trying to count email messages in the mailbox and read their headers. In case that there are some messages on the POP3 server and they haven't yet got to the Inbox, I get a number of...
4
by: Ron Vecchi | last post by:
I a runnning w2k3 pop3 mail server that came with iis6. I would like to write an application that progammtically creates the new mailboxes in an already established mail domain. Does anyone know...
2
by: Rui | last post by:
I need to write a proxy between pop3 client and pop3+ssl server. This proxy will receive pop3 commands from the client and will translate those commands for a pop3+ssl server, then it will receive...
2
by: Mike Brearley | last post by:
I need to write a script that will check a catch-all mailbox (pop3) and send a non delivery report back to the sender of the email. Background info: I have a domain hosted on a site that offers...
2
by: Shimon Sim | last post by:
Is there a way to get e-mails with attachments using .NET 2.0? If not does anybody knows a component that can do this? Thank you, Shimon.
1
by: bobano | last post by:
Hi everyone, I am writing a POP3 Client program in Perl. You connect to a POP3 Server and have a running conversation with the mail server using commands from the RFC 1939 Post Office Protocol....
4
by: =?Utf-8?B?QWxwYW5h?= | last post by:
I am making a thin email client and want to get emails from a pop3 server...Is there any built in support in C# to get emails from a pop3 server and parse the email to show up on the UI ?
0
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
Like many people, I normally use Yahoo! Mail via the web and like to keep all my emails stored on the Yahoo! server. However sometimes I can’t get access to a PC/the web and I download my emails...
11
by: mp- | last post by:
I want to be able to allow people to check their email from my PHP online application. Given only the users 1) email address, 2) username (if applicable) and 3) password - how can I auto detect...
5
by: Craig Buchanan | last post by:
I would like to monitor a POP3 mailbox with multiple clients. However, I want to ensure that each message is processed by only one client. In essence, I would like to treat a POP3 mailbox like a...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.