Move back to Inbox - Part II

"Pedro Costa" <[email protected]> Thu, 2 Sep 2004 09:51:46 -0300
Newsgroups gmane.mail.neomail.general
Message-ID <001c01c490eb$9b05f630$0f0a0a0a@pc>
Hi all,


Some users are pressuring to be able to save messages stored in neomail
folders locally, so I decided to change the code to allow it. I was able =
to
get the INBOX listed in the dropdown, but now I get a message saying
"Destination folder INBOX.folder doesn't exist!" When trying to move
messages there. All I did was=20
change in sub movemessage=20

from

  (($folder eq $destination) || ($destination eq 'INBOX'));
 =20
to

  ($folder eq $destination);


And changed twice=20
from=20

unless ( ($checkfolder eq 'INBOX') || ($checkfolder eq $folder) )

To=20

unless ($checkfolder eq $folder)=20


I read in another post
http://sourceforge.net/mailarchive/forum.php?forum_id=3D7155&max_rows=3D2=
5&style
=3Dflat&viewmonth=3D200203

" Then there was a section in the "movemessage" routine that was moving =
the
 mail to a folder called /var/neomail/users/INBOX instead of
 /var/mail/username  So I added a couple lines:
=20
 if ( $destination eq "INBOX" )
    { $filedir =3D "/var/mail"; $destination =3D $user "

But this part I was unable to figure out, as these variables seem =
strange to
me and I couldn't find them in the code.


I appreciate your comments

Pedro



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click