Community Discussions and Support
PHP - IMAP MAIL MOVE Problem

Thanks Rolf.

Turns out to be me !
I was moving the mail into a draft folder, so It had no from address as it hadn't been sent !!
Sorted now.

Thanks

<p>Thanks Rolf.</p><p>Turns out to be me ! I was moving the mail into a draft folder, so It had no from address as it hadn't been sent !! Sorted now.</p><p>Thanks </p>

I'm writing a small script that moves selected emails from INBOX to

INBOX.User


Using imap_mail_move seems to work well, the message is moved. BUT:


When I view the moved message via squirrelmail, they have no FROM

address.

Actually SQ doesn't show the FROM, but it's in the header.


If I use SQ to move the messages back to INBOX, it shows the FROM

Address..


Is this an issue with SQ, imap_mail_move or Mercury32 ?


This is the move command I'm using:

Code:

$inbox = imap_open($hostname,$username,$password)
imap_mail_move($inbox,$msg_id,'INBOX.User');
imap_close($inbox);

Thanks
I'm writing a small script that moves selected <a href="http://phpbuilder.com/board/showthread.php?t=10373236#" id="KonaLink3" target="undefined" class="kLink" style="text-decoration: underline ! important; position: static;"><font style="color: blue ! important; position: static;" color="blue"><span class="kLink" style="color: blue ! important; position: relative;"></span></font></a>emails from INBOX to INBOX.User Using imap_mail_move seems to work well, the message is moved. BUT: When I view the moved message via squirrelmail, they have no FROM address. Actually SQ doesn't show the FROM, but it's in the header. If I use SQ to move the messages back to INBOX, it shows the FROM Address.. Is this an issue with SQ, imap_mail_move or Mercury32 ? This is the move command I'm using: <div style="margin: 5px 20px 20px;"> <div class="smallfont" style="margin-bottom: 2px;">Code:</div> <pre class="alt2" dir="ltr" style="margin: 0px; padding: 6px; border: 1px inset; width: 800px; height: 66px; text-align: left; overflow: auto;">$inbox = imap_open($hostname,$username,$password) imap_mail_move($inbox,$msg_id,'INBOX.User'); imap_close($inbox);</pre> </div>Thanks

According to numerous reports Squirrelmail should work fine together with Mercury, so my guess is that imap_mail_move isn't fully compatible. If you temporarily switch on session logging for MercuryI you should be able to see exactly what happens.

/Rolf

<p>According to numerous reports Squirrelmail should work fine together with Mercury, so my guess is that imap_mail_move isn't fully compatible. If you temporarily switch on session logging for MercuryI you should be able to see exactly what happens. </p><p>/Rolf </p>
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft