moving messages on exchangeserver

This is a discussion on moving messages on exchangeserver within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Have either one of you tried to move a message between a user's Inbox on an Exchangeserver, to a ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-27-2004
Michel
 
Posts: n/a
Default moving messages on exchangeserver

Have either one of you tried to move a message between a user's Inbox on an
Exchangeserver, to a Public Folder on that same server, using
Imap_mail_move() ????

Could it be done? I am really getting the feeling it can't be done.
Here's the chunk:

<?php
set_time_limit(1800);
$mbox = imap_open("{exchange:143}", "filer", "test");
$thirdbox = imap_open("{exchange:143}/*EAME/Delft", "filer", "test");

echo "<p><h1>Mailboxes</h1>\n";
$folders = imap_listmailbox($mbox, "{exchange:143}", "*");

if ($folders == false) {
echo "Call failed<br />\n";
} else {
while (list ($key, $val) = each($folders)) {
echo $val . "<br />\n";
}
}

echo "<p><h1>Headers in INBOX</h1>\n";flush();
$headers = imap_headers($mbox);

if ($headers == false) {
echo "Call failed<br />\n";
} else {
while (list ($key, $val) = each ($headers)) {
echo $key . " " . $val . "<br />\n";
}
}

$movmsgid=1;
imap_mail_move($mbox,$movmsgid,'Public folders/*EAME/Delft');
$err=imap_errors();
print $err[0];

echo "<p><h1>Headers in Public Folders/*EAME/Delft</h1>\n";flush();
$headers = imap_headers($thirdbox);

if ($headers == false) {
echo "Call failed<br />\n";
} else {
while (list ($key, $val) = each ($headers)) {
echo $val . "<br />\n";
}
}

#imap_expunge($mbox);
imap_close($mbox);

?>

The error I get: There is no replica for that mailbox on this server.

While the first list clearly shows me the Public Folder is in fact there.

Suggestions?


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:34 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0