Trying to use the code below to move a users mailbox but keep getting the
helpfull "Catastrophic error" message on the line
"objMailbox.MoveMailbox(sMDB)". Anyone have a clue what i am doing wrong?
Dim dsUser As New DirectoryEntry("LDAP://" & AppSettings("PDC") & "/" &
GetAttribute("DistinguishedName", "Samaccountname", m_samAccountName))
Dim sMDB As String
Try
Dim objMailbox As CDOEXM.IMailboxStore
objMailbox = dsUser.NativeObject
sMDB = "LDAP://" & AppSettings("PDC") & "/" &
getHomeMDBURL(sNewServer)
' sMDB = getHomeMDBURL(sNewServer)
' sMDB = "LDAP://" & getHomeMDBURL(sNewServer)
objMailbox.MoveMailbox(sMDB)
dsUser.CommitChanges() 6 2039
Did you ever get this figured out, I am geting the same error and I have full
permissions.
"HitSkiper" wrote: Trying to use the code below to move a users mailbox but keep getting the helpfull "Catastrophic error" message on the line "objMailbox.MoveMailbox(sMDB)". Anyone have a clue what i am doing wrong? Dim dsUser As New DirectoryEntry("LDAP://" & AppSettings("PDC") & "/" & GetAttribute("DistinguishedName", "Samaccountname", m_samAccountName))
Dim sMDB As String
Try
Dim objMailbox As CDOEXM.IMailboxStore
objMailbox = dsUser.NativeObject
sMDB = "LDAP://" & AppSettings("PDC") & "/" & getHomeMDBURL(sNewServer)
' sMDB = getHomeMDBURL(sNewServer)
' sMDB = "LDAP://" & getHomeMDBURL(sNewServer)
objMailbox.MoveMailbox(sMDB)
dsUser.CommitChanges()
Nope, I havent figured it but will have to work on it again shortly. Please
post if you find anything out and I will do the same.
"Jeremy" wrote: Did you ever get this figured out, I am geting the same error and I have full permissions.
"HitSkiper" wrote:
Trying to use the code below to move a users mailbox but keep getting the helpfull "Catastrophic error" message on the line "objMailbox.MoveMailbox(sMDB)". Anyone have a clue what i am doing wrong? Dim dsUser As New DirectoryEntry("LDAP://" & AppSettings("PDC") & "/" & GetAttribute("DistinguishedName", "Samaccountname", m_samAccountName))
Dim sMDB As String
Try
Dim objMailbox As CDOEXM.IMailboxStore
objMailbox = dsUser.NativeObject
sMDB = "LDAP://" & AppSettings("PDC") & "/" & getHomeMDBURL(sNewServer)
' sMDB = getHomeMDBURL(sNewServer)
' sMDB = "LDAP://" & getHomeMDBURL(sNewServer)
objMailbox.MoveMailbox(sMDB)
dsUser.CommitChanges()
I installed exchange sp3 (I have the mgmt tools installed on the web server")
and used the cdo not the cdoexm example from this page. http://msdn.microsoft.com/library/de...ovemailbox.asp
and it worked at least once.
"Jeremy" wrote: Did you ever get this figured out, I am geting the same error and I have full permissions.
"HitSkiper" wrote:
Trying to use the code below to move a users mailbox but keep getting the helpfull "Catastrophic error" message on the line "objMailbox.MoveMailbox(sMDB)". Anyone have a clue what i am doing wrong? Dim dsUser As New DirectoryEntry("LDAP://" & AppSettings("PDC") & "/" & GetAttribute("DistinguishedName", "Samaccountname", m_samAccountName))
Dim sMDB As String
Try
Dim objMailbox As CDOEXM.IMailboxStore
objMailbox = dsUser.NativeObject
sMDB = "LDAP://" & AppSettings("PDC") & "/" & getHomeMDBURL(sNewServer)
' sMDB = getHomeMDBURL(sNewServer)
' sMDB = "LDAP://" & getHomeMDBURL(sNewServer)
objMailbox.MoveMailbox(sMDB)
dsUser.CommitChanges()
I ended up doing it with DirectoryServices Invoke and it worked for me:
DirectoryEntry ent = new DirectoryEntry(path);
ent.Invoke("MoveMailbox",new object[]{homeMDB});
ent.CommitChanges();
ent.Close();
That doesnt make any sence to me since it should be doing exactly the same
thing.
Thanks.
"HitSkiper" wrote: I installed exchange sp3 (I have the mgmt tools installed on the web server") and used the cdo not the cdoexm example from this page.
http://msdn.microsoft.com/library/de...ovemailbox.asp
and it worked at least once. "Jeremy" wrote:
Did you ever get this figured out, I am geting the same error and I have full permissions.
"HitSkiper" wrote:
Trying to use the code below to move a users mailbox but keep getting the helpfull "Catastrophic error" message on the line "objMailbox.MoveMailbox(sMDB)". Anyone have a clue what i am doing wrong? Dim dsUser As New DirectoryEntry("LDAP://" & AppSettings("PDC") & "/" & GetAttribute("DistinguishedName", "Samaccountname", m_samAccountName))
Dim sMDB As String
Try
Dim objMailbox As CDOEXM.IMailboxStore
objMailbox = dsUser.NativeObject
sMDB = "LDAP://" & AppSettings("PDC") & "/" & getHomeMDBURL(sNewServer)
' sMDB = getHomeMDBURL(sNewServer)
' sMDB = "LDAP://" & getHomeMDBURL(sNewServer)
objMailbox.MoveMailbox(sMDB)
dsUser.CommitChanges() This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Alexander Franksmann |
last post by:
Hello,
I'm going to write a anti-spam-program based on a Whitelist.
"If the mail sender is found in the database, my program should move
the mail into another mailbox"
The mailserver fetched the mails from the clean pop3-account.
The problem is a problem because the function imap_move() can only
move mails from one folder in the mailbox into...
|
by: chuck amadi |
last post by:
Hi , Im trying to parse a specific users mailbox (testwwws) and output
the body of the messages to a file ,that file will then be loaded into a
PostGresql DB at some point .
I have read the email posts and been advised to use the email Module
and mailbox Module.
The blurb from a memeber of this list . Im not at work at the moment So
I...
|
by: David Stockwell |
last post by:
Hi,
After looking at http://docs.python.org/lib/module-mailbox.html I am a bit
confused.
The bottom of the page refers to some shortcut usage for getting a mail box
import email
import mailbox
mbox = mailbox.UnixMailbox(fp, email.message_from_file)
|
by: HitSkiper |
last post by:
Trying to use the code below to move a users mailbox but keep getting the
helpfull "Catastrophic error" message on the line
"objMailbox.MoveMailbox(sMDB)". Anyone have a clue what i am doing wrong?
Dim dsUser As New DirectoryEntry("LDAP://" & AppSettings("PDC") & "/" &
GetAttribute("DistinguishedName", "Samaccountname",...
|
by: Pieter |
last post by:
Hi,
On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes an
exception when moving (Move) a MailItem to an Outlook-Folder: The RPC server
is not available. (Exception from HRESULT: 0x800706BA). The client has all
the updates/service packs/ etc isntalled...
Does anybody has any idea why this happens? Any help our hints...
| |
by: Michael |
last post by:
Hello,
I've created an ASP web page where users in our organization can create
Active Directory computer accounts.
The web page is running on a Server 2003 SP1 IIS 6 installation. The
Exchange System Manager is running on the web server and Exchange SP2 has
been installed. The IIS site is configured with Basic Authentication and
users...
|
by: arjen1984 |
last post by:
I want to create a mailbox-enabled mailbox. First i have used the toturial from microsoft:
http://support.microsoft.com/kb/313114
Then my homeMDB string was incorrect. I saw an article , link:
http://forums.asp.net/thread/952974.aspx
This guy has the same problem as me. I still have that problem. Mine server is a local server, so i have nog...
|
by: jesse.k.rosenthal |
last post by:
Dear all,
I'm trying to figure out if mailbox will let me get the flags of a
Maildir message without running get_message on it, and reading the
whole message. It seems like it should work by doing this:
2102
But then,when I try to get_flags on msg, I get nothing
|
by: tinnews |
last post by:
I am trying to write a utility to remove empty maildir mailboxes. It
sounds like this should be very simple but it's proving really
difficult.
I'm doing this on a Fedora 7 system with python 2.5.
The first question is how to detect whether a directory is a maildir
mailbox. The following code snippet *never* says that a directory is
not...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |