CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Automatic reply to email

 

First page Previous page 1 2 Next page Last page  View All


pstewart
Novice

Nov 27, 2014, 10:55 AM

Post #26 of 44 (10825 views)
Re: [zak100] Automatic reply to email [In reply to] Can't Post


In Reply To
Hi,
I cant do any thing if the installation doesnt work. I have one last option to try google's built in notification. I dont know where is that guy who advised me to download the modules & then compile using make file.

Right here...and what is your problem actually DOING what was suggested? And a better question is, why you're focusing on Gmail, rather than *THINKING* about things. You are trying to query an IMAP server...so, why can't you use any of the HIGHLY AVAILABLE IMAP modules to do a basic check? Again, you have been working on this for MORE THAN A YEAR, and have made no progress except for copy-and-pasting different code from other sources. Are you not able to write ANYTHING on your own?? Seems odd, especially for a 'teacher'....

Quote
Thanks for your concerns. I have even emailed the Active State Team. But they are very slow in replying.

They're probably wondering why you're having problems with something so clearly documented, with errors that are so plain to understand.


zak100
User

Nov 27, 2014, 8:17 PM

Post #27 of 44 (10813 views)
Re: [pstewart] Automatic reply to email [In reply to] Can't Post


Quote
You are trying to query an IMAP server...so, why can't you use any of the HIGHLY AVAILABLE IMAP modules to do a basic check?

Tell me when this digression would stop. First i was told to focus on coding whereas the problem was in installation. Then you came up from where, i dont know? and you told me to read the 'readme' of 'AnyEvent::GMail::Feed'. I did & used the 'cpan AnyEvent::GMail::Feed' command from that readme. But i got problems in installation which were quite evident to me even at Linux forum. After that you showed me another intelligence by asking me to download the perl modules. I did that but then i showed you the problems. You went back & came with another novel idea 'IMAP modules' and even tried to ask me to go for something else other than GMail. I will try to find it out but watch yourself also. Every body can make mistakes. Its not just the teachers to blame. That's the reason we have these forums. Otherwise there is no need for forums. there are many books whose code dont work. soaplit is an example. Even my several problems were not solved at Linux forums.



Zulfi.


pstewart
Novice

Nov 28, 2014, 7:41 AM

Post #28 of 44 (10765 views)
Re: [zak100] Automatic reply to email [In reply to] Can't Post


In Reply To

Quote
You are trying to query an IMAP server...so, why can't you use any of the HIGHLY AVAILABLE IMAP modules to do a basic check?

Tell me when this digression would stop.


When you actually start doing some work of your own, and stop going around like a beggar asking people to give you things.


In Reply To
First i was told to focus on coding whereas the problem was in installation. Then you came up from where, i dont know? and you told me to read the 'readme' of 'AnyEvent::GMail::Feed'. I did & used the 'cpan AnyEvent::GMail::Feed' command from that readme. But i got problems in installation which were quite evident to me even at Linux forum. After that you showed me another intelligence by asking me to download the perl modules. I did that but then i showed you the problems. You went back & came with another novel idea 'IMAP modules' and even tried to ask me to go for something else other than GMail.


Because common sense and a tiny bit of thought would tell you that gmail is using imap. Common sense goes on to tell you that you can then use any imap tools to query it, not just gmail tools.


In Reply To
I will try to find it out but watch yourself also. Every body can make mistakes. Its not just the teachers to blame. That's the reason we have these forums. Otherwise there is no need for forums. there are many books whose code dont work. soaplit is an example. Even my several problems were not solved at Linux forums.


You got no help because you are not doing any work of your own....you keep copy and pasing code from other places and just saying "I got a code...tell me how to make it work!", then get whiny when you dont get someone to fix it for you.

you have been working on this for MORE THAN A YEAR NOW...it would take a beginner about an hour or two to do this, if they read instrcutions and docs on the cpan modules. you're not a teacher, so quit saying you are. the books whose code 'don't work', is because YOU have to change it to MAKE IT WORK, and it's beyond you. you want someone to hand this to you, so you can pass it off as your own, and 'graduate' from whtaever class your in.


(This post was edited by pstewart on Nov 28, 2014, 9:05 AM)


pstewart
Novice

Nov 28, 2014, 9:27 AM

Post #29 of 44 (10751 views)
Re: [zak100] Automatic reply to email [In reply to] Can't Post


In Reply To

Quote
You are trying to query an IMAP server...so, why can't you use any of the HIGHLY AVAILABLE IMAP modules to do a basic check?

Tell me when this digression would stop. First i was told to focus on coding whereas the problem was in installation. Then you came up from where, i dont know? and you told me to read the 'readme' of 'AnyEvent::GMail::Feed'. I did & used the 'cpan AnyEvent::GMail::Feed' command from that readme. But i got problems in installation which were quite evident to me even at Linux forum. After that you showed me another intelligence by asking me to download the perl modules. I did that but then i showed you the problems. You went back & came with another novel idea 'IMAP modules' and even tried to ask me to go for something else other than GMail. I will try to find it out but watch yourself also. Every body can make mistakes. Its not just the teachers to blame. That's the reason we have these forums. Otherwise there is no need for forums. there are many books whose code dont work. soaplit is an example. Even my several problems were not solved at Linux forums.


Since your too lazy or incompetent to do this job (after more than a YEAR of 'working' on it), I did a google search.

https://code.google.com/p/idlemailcheck/source/browse/trunk/idlemailcheck.pl
http://search.cpan.org/~aberndt/win32-snarl-1.01/lib/Win32/Snarl.pm

and look! a pre-written piece of code that checks gmail for new messages, and displays a notification! Wow!!! And, its been out there since 2010...and it works on windows! so feel free to download it and pass it off as your own. i'd feel confident that you will. and be sure to post back and complain about how it doesn't work, you can't install xxxx, etc, so we can tell you how to type in your user name..


zak100
User

Nov 28, 2014, 10:18 AM

Post #30 of 44 (10740 views)
Re: [pstewart] Automatic reply to email [In reply to] Can't Post

Hi,
Thanks for your googling but before considering you to be the champion of perl, kindly guide me what does it mean by:
i) my $use_icon = "C:\\cygwin\\home\\justin\\scripts\\stamp.png";

do i have to create this directory?
ii) I am again getting fatal error while installing win32::Snarl



Code
NMAKE : fatal error U1077: 'C:\PROGRA~2\MIB055~1\VC98\bin\nmake.exe' : return c 
de '0x2'
Stop.
KMX/Win32-GUI-1.11.tar.gz
C:\PROGRA~2\MIB055~1\VC98\bin\nmake.exe -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Running Build for A/AB/ABERNDT/Win32-Snarl/win32-snarl-1.01.tar.gz
Has already been unwrapped into directory C:\Perl64\cpan\build\Win32-Snarl-1T
6rc

CPAN.pm: Building A/AB/ABERNDT/Win32-Snarl/win32-snarl-1.01.tar.gz

Warning: Prerequisite 'Win32::GUI => 1.03' for 'ABERNDT/Win32-Snarl/win32-snarl
1.01.tar.gz' failed when processing 'KMX/Win32-GUI-1.11.tar.gz' with 'make => N
'. Continuing, but chances to succeed are limited.
Building Win32-Snarl
ABERNDT/Win32-Snarl/win32-snarl-1.01.tar.gz
C:\Perl64\bin\perl.exe ./Build -- OK
Running Build test
t\Win32-Snarl.t ..
# Failed test 'use Win32::Snarl;'
t\Win32-Snarl.t .. 1/6 # at t\Win32-Snarl.t line 9.
# Tried to use 'Win32::Snarl'.
# Error: Can't locate Win32/GUI.pm in @INC (@INC contains: C:\Perl64\cpan\
uild\Win32-Snarl-1Tk6rc\blib\lib C:\Perl64\cpan\build\Win32-Snarl-1Tk6rc\blib\a
ch C:/Perl64/site/lib C:/Perl64/lib .) at C:\Perl64\cpan\build\Win32-Snarl-1Tk6
c\blib\lib/Win32/Snarl.pm line 11.
# BEGIN failed--compilation aborted at C:\Perl64\cpan\build\Win32-Snarl-1Tk6rc\
lib\lib/Win32/Snarl.pm line 11.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
Undefined subroutine &Win32::Snarl::GetVersionEx called at t\Win32-Snarl.t line
16.
# Looks like you planned 6 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t\Win32-Snarl.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 6/6 subtests

Test Summary Report
-------------------
t\Win32-Snarl.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: Bad plan. You planned 6 tests but ran 1.
Files=1, Tests=1, 1 wallclock secs ( 0.00 usr + 0.08 sys = 0.08 CPU)
Result: FAIL
Failed 1/1 test programs. 1/1 subtests failed.
ABERNDT/Win32-Snarl/win32-snarl-1.01.tar.gz
one dependency not OK (Win32::GUI); additionally test harness failed
C:\Perl64\bin\perl.exe ./Build test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports ABERNDT/Win32-Snarl/win32-snarl-1.01.tar.gz
Running Build install
make test had returned bad status, won't install without force

C:\Users\HP>


Zulfi.


pstewart
Novice

Nov 28, 2014, 12:18 PM

Post #31 of 44 (10730 views)
Re: [zak100] Automatic reply to email [In reply to] Can't Post


In Reply To
Hi,
Thanks for your googling


..and thank you for being so VERY LAZY you couldn't do it, for more than a YEAR....


In Reply To
but before considering you to be the champion of perl, kindly guide me what does it mean by:
i) my $use_icon = "C:\\cygwin\\home\\justin\\scripts\\stamp.png";
do i have to create this directory?


...and like I predicted, you're back with an idiotically simple usage issue that you can't be bothered to even THINK about for two seconds, and your asking to be baby-sat again. The icon is VERY OBVIOUSLY a file somewhere on your win. system....so pick any icon you want. are you really this stupid? and I don't give a crap what you consider me to be...we can guide you to lots, but you dont listen or understnad what your told. its like trying to teach a cat to play the piano


In Reply To
ii) I am again getting fatal error while installing win32::Snarl

Code
  make test had returned bad status, won't install without force



and you are again asking people to solve EVERY SINGLE PROBLEM you have with no effort from you at all. did you not read the messages or did you not understand them? And your saying your a teacher? wow...did you try using the force flag? did you try ANYTHING execpt typing in one command, then comeing back here to be handed even more?

why can you not understand that noone is going to write your code for you, and that you (yes YOU) actaully have to some work for yourself? why, after many years, can you not even seem to grasp the very basics?


(This post was edited by Laurent_R on Nov 28, 2014, 1:33 PM)


Laurent_R
Veteran / Moderator

Nov 28, 2014, 1:39 PM

Post #32 of 44 (10718 views)
Re: [pstewart] Automatic reply to email [In reply to] Can't Post

To pstewart: I have taken the liberty of removing the last sentence of your post (and I don't usually do that) because I felt that this was getting too aggressive and insulting. You may be irritated by zak100's behavior or your own perception thereof, and you are free to develop you polemical arguments against him, but please refrain from being too agressive and on the verge of personal offence.


(This post was edited by Laurent_R on Nov 28, 2014, 1:41 PM)


BillKSmith
Veteran

Nov 28, 2014, 5:27 PM

Post #33 of 44 (10692 views)
Re: [Laurent_R] Automatic reply to email [In reply to] Can't Post

Thank you, Lurent.
Good Luck,
Bill


zak100
User

Nov 28, 2014, 9:46 PM

Post #34 of 44 (10671 views)
Re: [BillKSmith] Automatic reply to email [In reply to] Can't Post

Sorry pstewart. People dont like your comments. Plz go back to your linux forum.
Thanks for your time.
Zulfi.


(This post was edited by zak100 on Nov 28, 2014, 9:47 PM)


pstewart
Novice

Nov 29, 2014, 9:06 AM

Post #35 of 44 (10633 views)
Re: [zak100] Automatic reply to email [In reply to] Can't Post


In Reply To
Sorry pstewart. People dont like your comments. Plz go back to your linux forum. Thanks for your time.

People also don't like looking things up for someone who is too lazy to do it themselves, and shows no effort of their own. you have been working on this 'project' for MORE THAN A YEAR...12 FULL MONTHS....and you have NOTHING to show for your 'efforts', other than copying and pasting more code from around the internet into threads, and saying "help it doesnt work!".

when are you going to write ANYTHING on your own? You don't like it? too bad...look at your posting history, and look at many of the ocmments youve made about women programmers over the 5 years youve been trolling boards with your junk. you get bottle fed a link to working code, that only needs a few tweaks, and that is STILL more than you can manage.

and you claim to be TEACHING this course???? how long are your students supposed to wait for you to learn the subject, before they can graduate?


zak100
User

Nov 29, 2014, 10:15 AM

Post #36 of 44 (10624 views)
Re: [pstewart] Automatic reply to email [In reply to] Can't Post

I have tried all your suggestion & advices but they are not working. This is because you are not able to understand my problem like your friends @ linux forum. So please donot waste my & your time.
Also begging for knowledge is not a bad thing. I think you must also do the same.

Zulfi.


pstewart
Novice

Nov 29, 2014, 2:15 PM

Post #37 of 44 (10607 views)
Re: [zak100] Automatic reply to email [In reply to] Can't Post


In Reply To
I have tried all your suggestion & advices but they are not working. This is because you are not able to understand my problem like your friends @ linux forum. So please donot waste my & your time.

No, we ALL understand your problem...you just don't understand the answers. if you did, youd have written this a LONG time ago, but you can't. you cant even understand how to install modules, or what a variable is.

In Reply To
Also begging for knowledge is not a bad thing. I think you must also do the same.

No, because unlike you, I'm not a beggar...I look things up on my own, I read things and work through them, thats why it took me less than 30 minutes to write my OWN gmail notifier....this included having it alert on the Gnome system tray, with a popup window. you have been asking for handouts for FIVE YEARS, and cant manage a simple script.

everyone else may love to babysit you, but I sure dont. read fishmongers replies to you....they may not be as harsh as mine but they carry the same message. you are in WAY over your head, and have no idea what your doing.


(This post was edited by Laurent_R on Nov 30, 2014, 2:42 AM)


zak100
User

Nov 29, 2014, 9:50 PM

Post #38 of 44 (10520 views)
Re: [pstewart] Automatic reply to email [In reply to] Can't Post

You are a time waster. Your suggestions:
i) use AnyEvent::GMail:Feed
ii) read the readme
iii) compile the modules. This one was even disliked by FishMonger & he stopped me from doing this.
iv) IMAP solution
v) win32 solution

The above are all failures. You are not bound to help. Just you maybe trying to image of Linux Forum. That's the reason you are helping me.
But you are a ruined coin for me. Even the moderator of this forum doesnt like your comments. So please say goodbye to this forum or seek knowledge & educate yourself before helping. I am not an ordinary teacher. This is a genuine problem. That's why Linux forum cant solve my problem. Soon I would act on FishMonger's advice of using strawbery perl. This would solve the problem.

Now i would not reply you. I dont need your help. Thanks again for your time.

Zulfi.


Laurent_R
Veteran / Moderator

Nov 30, 2014, 2:55 AM

Post #39 of 44 (10479 views)
Re: [pstewart] Automatic reply to email [In reply to] Can't Post

To pstewart: I have had to edit a second post of yours (removing again the last sentence), for the same reason. Argue as much as you want with zak100, refute or contradict what he says if so you wish, but please stop personal insults, ad hominem attacks and name calling.


pstewart
Novice

Nov 30, 2014, 9:00 AM

Post #40 of 44 (10459 views)
Re: [zak100] Automatic reply to email [In reply to] Can't Post


In Reply To
You are a time waster. Your suggestions:
i) use AnyEvent::GMail:Feed
ii) read the readme
iii) compile the modules. This one was even disliked by FishMonger & he stopped me from doing this.
iv) IMAP solution
v) win32 solution

The above are all failures.


and they failed because you could not figure out how to work with them. they will CONTINUE to fail, because you are in WAY over your head.


In Reply To
You are not bound to help. Just you maybe trying to image of Linux Forum. That's the reason you are helping me. But you are a ruined coin for me. Even the moderator of this forum doesnt like your comments.


SOME of them...please notice that they have commented on personal statments...not the fact that you arent understanding whats said, or about you begging.


In Reply To
So please say goodbye to this forum or seek knowledge & educate yourself before helping.


I am far more educated than you ever hope to be....this was a 30 minute program that worked the very first time. the difference is that I know what I'm doing.


In Reply To
I am not an ordinary teacher.


that is putting it mildly.


In Reply To
This is a genuine problem. That's why Linux forum cant solve my problem.


..and this perl forum can't solve your problem..and the OTHER forums your in cant solve your problems....and they havent been able to for years. the only thing in common with them ALL is YOU.


In Reply To
Soon I would act on FishMonger's advice of using strawbery perl. This would solve the problem.


so why don't you? what's stopping you? if you know the solution, why dont you execute it? or have you asked for handouts from others about how to install strawberry now, where you will then go to blame everyone else for not helping you be a great teacher.


In Reply To
Now i would not reply you. I dont need your help. Thanks again for your time.


you need lots of help...you just dont understand the answers you get. no one can help you, because your trying to do something your unable to do.


zak100
User

Dec 8, 2014, 10:08 AM

Post #41 of 44 (9887 views)
Re: [pstewart] Automatic reply to email [In reply to] Can't Post

One reason for this might be because you never studied in a school.
I am able to install Mail::IMAPClient on my PC & this helped me to run the following program which I got from perl monk site:

Code
#!C:/Perl64/bin/perl.exe 

use strict;
use warnings;
use Mail::IMAPClient;
use IO::Socket::SSL;

# Connect to the IMAP server via SSL
my $socket = IO::Socket::SSL->new(
PeerAddr => 'imap.gmail.com',
PeerPort => 993,
)
or die "socket(): $@";

# Build up a client attached to the SSL socket.
# Login is automatic as usual when we provide User and Password
my $client = Mail::IMAPClient->new(
Socket => $socket,
User => 'user@gmail.com',
Password => 'userpassword',
)
or die "new(): $@";

# Do something just to see that it's all ok
print "I'm authenticated\n" if $client->IsAuthenticated();
my @folders = $client->folders();
print join("\n* ", 'Folders:', @folders), "\n";

# Say bye
$client->logout();


I got following output:


Code
C:\Apache\cgi-bin>perl imap.pl 
*******************************************************************
Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client
is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER
together with SSL_ca_file|SSL_ca_path for verification.
If you really don't want to verify the certificate and keep the
connection open to Man-In-The-Middle attacks please set
SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application.
*******************************************************************
at imap.pl line 9.
I'm authenticated
Folders:
* INBOX
* Personal
* Receipts
* Travel
* Work
* [Gmail]
* [Gmail]/All Mail
* [Gmail]/Drafts
* [Gmail]/Important
* [Gmail]/Sent Mail
* [Gmail]/Spam
* [Gmail]/Starred
* [Gmail]/Trash

C:\Apache\cgi-bin>


Apply your common sense & you would accept him as a teacher.

Zulfi.


pstewart
Novice

Dec 9, 2014, 7:30 AM

Post #42 of 44 (9761 views)
Re: [zak100] Automatic reply to email [In reply to] Can't Post


In Reply To
One reason for this might be because you never studied in a school.

reason for WHAT, exactly? you claim to be a 'teacher' but you cant seem to understand how to do very basic research, or understand what people have been handing you for more than a year now, and several years on other sites.

In Reply To
I am able to install Mail::IMAPClient on my PC

wow....so the universal problem that no one can ever ever solve was fixed? im sure that you and the other 'teachers' at your school worked tirelessly to get it resolved, right?

In Reply To
& this helped me to run the following program which I got from perl monk site:

so even after several years, and getting shown the solution, you still have to steal someone elses code?

In Reply To
Apply your common sense & you would accept him as a teacher.

accept WHO as a teacher? not you, i know. i did what youve been trying to do in under 30 minutes and without having someone babysit me. you cant even manage to make a small change to code you copied.....


zak100
User

Dec 15, 2014, 9:41 AM

Post #43 of 44 (9153 views)
Re: [pstewart] Automatic reply to email [In reply to] Can't Post

Hi,
I have solved this problem as far as email notification is concerned. Notification is given with the help of a beep. It turns out to be the installation problem.

Code
 
#!C:/Perl64/bin/perl.exe

use Audio::Beep;

use strict;
use warnings;
use Mail::IMAPClient;
use IO::Socket::SSL;

my $msg_subject;
my $beeper;
my $music;

# Connect to the IMAP server via SSL
my $socket = IO::Socket::SSL->new(
PeerAddr => 'imap.gmail.com',
PeerPort => 993,
SSL_verify_mode => SSL_VERIFY_NONE
)
or die "socket(): $@";

# Build up a client attached to the SSL socket.
# Login is automatic as usual when we provide User and Password
my $client = Mail::IMAPClient->new(
Socket => $socket,
User => 'user@gmail.com',
Password => 'passwd',
)
or die "new(): $@";

# Do something just to see that it's all ok
print "I'm authenticated\n" if $client->IsAuthenticated();
my @folders = $client->folders();
print join("\n* ", 'Folders:', @folders), "\n";

#$client->select("INBOX");

#my @messages = $client->messages();
#print "There are " . scalar @messages . " messages waiting.\n";

#$client->Ignoresizeerrors(1);
#$client->select("INBOX") or die "Could not select: $@\n";
#my $string = $client->message_string(1) or die "could not message: $@\n";
#print $string;
# Say bye
#$client->logout();

my $msgcount = $client->message_count("INBOX");
print "Total messages in INBOX are $msgcount\n" ;
my $unseen = $client->unseen_count("INBOX");
print "Unread messages are $unseen";

my $prev = $unseen;
while (1) {
$unseen = $client->unseen_count ("INBOX");
if($unseen > $prev) {
$beeper = Audio::Beep->new();

# lilypond subset syntax accepted
# relative notation is the default
# (now correctly implemented)
$music = "g' f bes' c8 f d4 c8 f d4 bes c g f2";
# Pictures at an Exhibition by Modest Mussorgsky

$beeper->play( $music );;}
$prev = $unseen;
}


Zulfi.


pstewart
Novice

Dec 16, 2014, 7:02 AM

Post #44 of 44 (9112 views)
Re: [zak100] Automatic reply to email [In reply to] Can't Post


In Reply To
I have solved this problem as far as email notification is concerned. Notification is given with the help of a beep. It turns out to be the installation problem.

you just don't get it, do you?

your 'problem' was non-existent..you just didnt follow the instructions to get things intalled. and now you claim your 'unsolvable universal' problems are magically gone? you copied and pasted code...and it took you more than a year to do what you posted here. and you cant accept the fact that it was your fault for not reading or following instructions.

glad your 'problem' is solved....

First page Previous page 1 2 Next page Last page  View All
 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives