Hi All,
I want to delete the content of some files,which are specified through wild-card option,but i want to restore the file.
I.e I just want to delete the contents file parameters shouldn't be changed.
.
Please provide me the answer.
Thaning u all in advance
Athresh (4 Replies)
I'm just starting out in scripting (taking online classes) but I need to know how to clean out (delete) the content of a number of logs. All of the files end in 'trc'. Does anyone have a script or command (SED or AWK) I can use?
Julie (4 Replies)
Hi,
I was wondering if someone can tell me what the difference is exactly between maildir and mbox.
We have a few solaris 9 systems here and would like to get an imap server running on them. I have setup fetchmail so that it retrives remote pop3 mail into an account, and that mail is then... (3 Replies)
Hi Friends
I have a file called processLog.txt file
processLog.txt
---------------
echo "line starts "$LINE
suppCode=${LINE:0:3}
#gatewayArchive=`scp root@mrp-gateway:/usr/local/apache/data/PLAT/MIMUS/upload/PROD/archive/112042708173000.txt /home/krishnaveni/scripts/tempFolder`
#echo... (5 Replies)
Hi,
I am using "fetchmail" and "procmail" combination to trigger a job based on an input mail.Using fetchmail, incoming mail is downloaded from the mailserver to the local host.Once the mail is flushed,procmail starts execution and thereby triggers the application script.
In-between... (3 Replies)
Hi All,
Can any one explain the how mbox is working in IPC mechanisms. what are the system calls have to use mbox creation.:)
Advanced thanks
Bala (3 Replies)
I have following script to ping multiple ips but i want to delete ip.csv file content after running script .....but before deleting content i have ask user yes/No prompt depend on user input Yes/no ip.csv content will delete..
#!/bin/bash
for enodeb in `cat /tmp/ip.csv`
do
ping -c 2... (3 Replies)
Hello,
I have been trying to write a script where I could get awk to delete data before and after a matched pattern.
For eg
Raw data
Start
NAME = John
Age = 35
Occupation = Programmer
City = New York
Certification Completed = No
Salary = 80000
End
Start
NAME = Mary
Age = 25... (2 Replies)
Discussion started by: sidnow
2 Replies
LEARN ABOUT PHP
imap_delete
IMAP_DELETE(3) 1 IMAP_DELETE(3)imap_delete - Mark a message for deletion from current mailboxSYNOPSIS
bool imap_delete (resource $imap_stream, int $msg_number, [int $options])
DESCRIPTION
Marks messages listed in $msg_number for deletion. Messages marked for deletion will stay in the mailbox until either imap_expunge(3) is
called or imap_close(3) is called with the optional parameter CL_EXPUNGE.
PARAMETERS
o $
imap_stream -An IMAP stream returned by imap_open(3).
o $msg_number
- The message number
o $options
- You can set the FT_UID which tells the function to treat the $msg_number argument as an UID.
RETURN VALUES
Returns TRUE.
EXAMPLES
Example #1
imap_delete(3) example
<?php
$mbox = imap_open("{imap.example.org}INBOX", "username", "password")
or die("Can't connect: " . imap_last_error());
$check = imap_mailboxmsginfo($mbox);
echo "Messages before delete: " . $check->Nmsgs . "<br />
";
imap_delete($mbox, 1);
$check = imap_mailboxmsginfo($mbox);
echo "Messages after delete: " . $check->Nmsgs . "<br />
";
imap_expunge($mbox);
$check = imap_mailboxmsginfo($mbox);
echo "Messages after expunge: " . $check->Nmsgs . "<br />
";
imap_close($mbox);
?>
NOTES
Note
IMAP mailboxes may not have their message flags saved between connections, so imap_expunge(3) should be called during the same con-
nection in order to guarantee that messages marked for deletion will actually be purged.
SEE ALSO imap_undelete(3), imap_expunge(3), imap_close(3).
PHP Documentation Group IMAP_DELETE(3)