Programming :: CAPA -STLS Does Not Delete Messages
Sep 6, 2010
I have designed a simple mail client to download messages/data to a file.
The server type is CAPA STLS which means can handle noncrypted and encrypted logins.
I have a problem which is that POP3 CAPA STLS mail server does not want to delete messages. It deletes the messages on the non STLS side.
For an STLS session, I receive the +Ok for a Deleted message.
Language C, Library openssl, IP4.
Compiler: gcc.
View 1 Replies
ADVERTISEMENT
Jul 13, 2011
I have a syslog-ng running and kernel build of 2.6.34.8 I use a syslog API in my program with facility LOG_LOCAL5 and and levels debug err and crit and info. when I ran on the older syslog facility I had everything logged fine as I intended. now I have written these rules into the syslog-ng.conf:
options {
flush_lines (0);
time_reopen (10);
log_fifo_size (1000);
[code]....
the last two rules show my program gnssapp. the result is all debug levels or crit or err levels I don't see any of them !
View 3 Replies
View Related
Jan 21, 2011
I recently started shell programming and my task now is to do a menu display.Currently i am stuck whereby user will input both title and author and it will delete it.
Do i have to use sed command?
View 4 Replies
View Related
Oct 2, 2010
For the following compilation warning message I need to create some sample program in C for self study. Also I am looking for some good web link where all the C warnings are described.
1. Warning #47: incompatible redefinition of macro "entity" . Undefine macro before
2. Warning #167: argument of type is incompatible with parameter of type
3. Warning #175: subscript out of range
[code]....
View 1 Replies
View Related
Mar 30, 2009
I want read the log messages to my 'c' application , i am using the fedora core 8 operating system , how to read the system log messages(syslog) through my application.
View 3 Replies
View Related
Dec 3, 2010
I'm facing a scenario in which i need to block messages from being passed onto a message queue when my code is running. how to proceed.
View 8 Replies
View Related
Dec 14, 2010
I am writing a client chat server program in java. The chat server is already written. I created the interface and I connected to the chat server. The server keeps sending protocol messages to whom ever is connected, also it keeps sending specific protocol every 10 sec to check if user is still online.My problem is when I connect from my interface to the chat server, the program gets stuck, I can not press any other button because after connection my program keeps receiving commands from server(I have a method to keep reading after connection). How can I keep track of messages sent from server and not get stuck i.e press other buttons or type in the interface?
View 2 Replies
View Related
Apr 25, 2009
I was wondering if you could recommend a simple way to achieve functionality where received email messages are automatically processed and used in SQL commands (depending on certain criteria, of course). For example, say I have made a PHP-based blog application and it's located at example.com and I'd like to give members the option of posting to their blogs by sending email to a special @example.com address. The email messages received there will be inserted into a database depending on the sender's address, with the body becoming the post and the subject line becoming the post's title, etc.
Another example could be how those trouble ticket systems let customers submit tickets via email, while the support agents operate via a database-driven Web application. Is this the type of thing one must code from scratch, or is there an open source solution out there which only needs to be configured accordingly?
View 4 Replies
View Related
Mar 10, 2010
According to RFC 1939: "POP3 is not intended to provide extensive manipulation operations of mail on the server; normally, mail is downloaded and then deleted." However most of the mail clients have that option "Leave messages on server" after they have been downloaded. How is it done?
I tried sniffing mail traffic with Wireshark, but the only POP3 provider I have is Gmail and its POP3 access is SSL secured, so I was unable to gather any info from this... I tried downloading sources of Thunderbird and Evolution and checked what are they doing with "leaving messages", but it seems my C++ skills are not enough - I was unable to understand what is happening when "leaving"...
Suggest me some POP3 provider, that is providing unsecured POP3 access, so I could try again reverse engineering with Wireshark?
View 8 Replies
View Related
Jul 3, 2010
Is there an online resource to lookup error messages generated when compiling C++ code?
View 5 Replies
View Related
Oct 25, 2010
My script looks really crap and messy, the logic isn't great and I'm not hugely happy with it. Also it echo's $i instead of an actual IP address (line 10). How to improve this. It basically searches through /var/log/messages for multiple FTP hits and when the hit count is higher than a specific number the IP is added to a config file and ftp is restarted. There are some obvious flaws in my script.
Code:
MAXHITS=0
TOPHITS=`grep "FTP session closed." /var/log/messages* | awk '{print $7}' | sed -e 's/^.*[//' -e 's/].*$//' | uniq -c | sort -nr`
HITNUMB=`echo $TOPHITS | awk '{print $1}'`
IPHIT=`echo $TOPHITS | awk '{print$2}'`
HIGHIP=`echo $TOPHITS | grep $HITNUMB | grep $IPHIT | awk '{print $2}'`
if [ $HITNUMB -gt $MAXHITS ]; then
for i in $HIGHIP;
do
echo $i
sed -i '78s/$/,$i/' /opt/etc/proftpd.conf
/root/ftp restart
done
else
echo "not greater than $MAXHITS"
fi
I'm not even sure what will happen if I get multiple responses for my $TOPHITS. It would be cool if it could search for IP's already blacklisted somehow, it might actually be easier to just create a file with a set of blacklisted IP's or something.
View 14 Replies
View Related
Jul 8, 2011
where the printk messages are stored when we call a insmod? I'm using Slackware, and I think my distro can store these messages on others place.
View 3 Replies
View Related
Jan 2, 2009
I'm trying implement a small server for a university work, my server is creating, binding and listening but it don't accept any connection, these are the files I'm using in server:
Code:
// Definition of the Socket class
#ifndef SOCKET_H
#define SOCKET_H
#include <sys/types.h>
code....
I've made a client just for test it, but no ones run well, the server is always returning -1 when accept is called!!
What should I do to send and receive messages in this server??
View 3 Replies
View Related
Feb 12, 2011
Does anyoe have any example c/c++ code that is used to parse type-length-value messages.
The only decent article I can find on the web is:
http://en.wikipedia.org/wiki/Type-length-value
Bur it does not give any examples of parsing etc..
View 1 Replies
View Related
Apr 19, 2010
I've got this line find . -type d -name 'elements' -exec rm -rf {} ; put together to find and delete all directories named elements and their contents.
It does work but whenever I run it I get the error/warning
Code: find: `./dir3/elements': No such file or directory
find: `./dir6/elements': No such file or directory
[code]....
View 4 Replies
View Related
Jul 1, 2010
I have the following string 1524)), I want to get rid of the parentheses. I have tried SED and AWK without success.
The last I tried was: echo "1526))" | sed 's/)).*$//'
View 4 Replies
View Related
Jan 6, 2010
I've modified a program to show * instead of letters when typing a password. I'm trying to make it so that when pressing backspace a * will be removed.Here's a rough example. The problem is that when trying to do this in the real program,' is not recognized as backspace.
View 6 Replies
View Related
Aug 27, 2010
These must a be a question you received a lot, but I couldn't find a similar thread! It's a simple question.
I need to delete a specific string from a file. For example the specific numbers "3456" from a file. I've tried with the tr comand, using
Code:
tr -d '3456' file,
but it also deleted whichever ocurrence of 3,4,5,6 from my file. Should I use a regular expression?
View 7 Replies
View Related
Dec 5, 2009
I'm using rmdir(), and everything goes ok if the directory is empty, ?how can I remove the entire tree when i have other files or directories in the folder that I want to delete?I've read about using "system(rm....)" but i REALLY want to do this without it, is it possible?
View 4 Replies
View Related
Apr 1, 2011
if the given pattern exists in the file with the very next line starting and endingwith the same pattern , delete the line that starts and ends with the given pattern.So upon running on this file
hai people<PATTERN> we had
<PATTERN>a lot of fun<PATTERN>
writing scripts
[code]....
View 6 Replies
View Related
May 15, 2011
My problem is like this I have to delete all lines between two pattern match example- suppose below is the content of the file then i have to delete all lines between text1 and text2
...
text1
abc
def
ghi
[Code]....
View 14 Replies
View Related
Aug 13, 2010
I have 50 files in the following format.
fileone.0001.txt
filetwo.0002.txt
filethree.0003.txt
[code]...
View 4 Replies
View Related
Oct 13, 2010
I want to delete lines which contain the word "Fehler" but for some reason my programm isn't working:
Code: BEGIN { FS="|"
OFS="|"
SUBSEP="|"
[code]...
View 6 Replies
View Related
Oct 17, 2010
A sed mishap prior to a database import left me with a table name with, eh, well, this: Code: mysql> show tables;
+-------------------+
| Tables_in_someday |
+-------------------+
| day20101016 |
| day20101017); |
+-------------------+
I've corrected the sed mishap and imported the database the way it was intended Code: mysql> show tables;
+-------------------+
| Tables_in_someday |
+-------------------+
| day20101016 |
| day20101017); |
| day20101017 |
+-------------------+
But I can't seem to drop the table day20101017); because no matter how I seem to escape it it errors.
View 1 Replies
View Related
Jan 3, 2011
I am new to unix, I am looking for a script to delete files older than 7 days but i also want to exclude certain directories (like arch,log .....) and also some files with extensions ike .ksh, .ch, ..............) in directories and sub directories
View 4 Replies
View Related
Apr 9, 2011
I would like to delete a single line from a file that contains many lines passing through the same values as the two parameters. Again, I would like to delete a single line and not all those that contain parameters. How can I make bash?
View 14 Replies
View Related
Aug 4, 2010
Delete this with maximum prejudice, mods.
View 1 Replies
View Related
Apr 6, 2010
How can I delete selected rows of a table in perl/CGI??
View 5 Replies
View Related
Dec 23, 2010
I am using Subversion version1.2 and need one favour. I have written code to delete particular revision from SVN Repository. Unfortunately, i couldn't delete particular version from repository. Any one can response me.. how to delete?
View 6 Replies
View Related
Apr 17, 2010
We have a problem at work that we are using Word Press And now for security we have to delete install.php in WP-Admin and rename upgrade.php and install_helper.php to *.bak
Im a noob in Script creating (Had a bit practice a couple of years ago but allready forgot T.T) So what i ask that is there a way to make a script
That:Finds wp-admin(if it exists) folder enters into it and there deletes install.php and renames upgrade.php and install_helper.php to *.bak and the makes the same process again untill theres no wp-admin folders left with these files, We have alot of web pages so manually it would take about a month to find em all (about 3000 pages :
View 5 Replies
View Related