List Info

Thread: Restore status




Restore status
user name
2006-11-28 14:27:08
Thanks Paul


----- Original Message ----- 
From: "Paul J Stevens" <paulnfg.nl>
To: "DBMail mailinglist" <dbmaildbmail.org>
Sent: Tuesday, November 28, 2006 1:14 PM
Subject: Re: [Dbmail] Restore status


> 
> update dbmail_messages set status=2
> where status>2 and mailbox_idnr in
> (select mailbox_idnr from dbmail_mailboxes b
> join dbmail_users u on b.owner_idnr=u.user_idnr
> where u.userid='testuser1');
> 
> Jorge Bastos wrote:
>> Guys, sorry,
>> I know this has been asked several times but tell
me.
>> I have deleted and purged messages in imap, and i
want to restore those
>> purged messages to deleted only, and a certein user
only.
>> Who can give me a hand on this?
>>  
>> Jorge
>> 
>> 
>>
------------------------------------------------------------
------------
>> 
>> _______________________________________________
>> DBmail mailing list
>> DBmaildbmail.org
>> htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail
> 
> -- 
> 
____________________________________________________________
____
>  Paul Stevens                                      paul
at nfg.nl
>  NET FACILITIES GROUP                     GPG/PGP:
1024D/11F8CD31
>  The Netherlands________________________________http://www.nfg.nl
> _______________________________________________
> DBmail mailing list
> DBmaildbmail.org
> htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail
>
_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail
delete content of directory - unlink doesn't work as expected
user name
2006-11-28 14:21:27
Hi,

I try to delete the files in a directory. While the command

invisible(lapply( list.files( "DeleteThis" ),
function(x)
file.remove(paste("DeleteThis", x,
sep="/" )) ))

works, I keep thinking that there should be a more direct
command.

"unlink" looks like a good candidate but whith
this I only arrive to
either delete the whole directory or nothing happens at all.
Code:

file.exists( "DeleteThis" )        # TRUE: folder
is here

(unlink( "DeleteThis/*.*" ))             # 0,
content doesn't get deleted
(unlink( "DeleteThis/*" ))               # do.
(unlink( "DeleteThis/*.*", TRUE ))  # do.
(unlink( "DeleteThis/*", TRUE ))    # do.

unlink( "DeleteThis", TRUE )  # whole folder will
be deleted

According to the help placeholders are allowed so I don't
see where is an error.

Thanks for your help!

-- 
Regards,
Hans-Peter

______________________________________________
R-helpstat.math.ethz.ch mailing list
https://
stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://ww
w.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible
code.
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )