perl.beginners
  Home FAQ Contact Sign in
perl.beginners only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
perl.beginners Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Count messages in a Imap-Mailfolder         


Author: Michelle Konzack
Date: May 31, 2008 16:17

************************************************************************
* Do not Cc: me, because I READ THIS LIST, if I write here *
* Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe *
************************************************************************

Hello,

since I live in a region where I have NO telephone line which mean no
Internet too I am connecting to the internet over GSM/GPRS. But there is
a big problem: I have several mail accounts and I am on MANY mailing-
lists...

Now, before downloading the messages I like to check from a small script
how many messages are in the Mailaccount and the size. OK, the number
of mesages is no problem but the total size.

Querying an account with 3500 messages daily cost 1700 kByte GSM/GPRS
traffic which is realy expensive.

Now since I am beginner in perl, I like to know, whether there is a
function to get the total size of a IMAP folder?

Note: I use the Debian package "libnet-imap-simple-perl"
if it is important for you to help.

My current script is:
Show full article (2.82Kb)
4 Comments
  WWW::Mechanize question         


Author: Richard Lee
Date: May 31, 2008 15:45

what is wrong w/ below?
I would think this would work but this is spitting out

use strict;
use warnings;

use WWW::Mechanize;
my $mech = WWW::Mechanize->new();
my $url = 'http://10.212.100.1';

#$mech->credentials('user1', 'passwd1');
my $page = $mech->get( $url );

print "$page\n";

when I run it, I get
-> HTTP::Response=HASH(0x9e64f8c)
1 Comment
  Getting Segmentation fault         


Author: Rajnikant
Date: May 31, 2008 02:59

Hello everyone,

I'm trying to call 'C' routine from perl script. I have static library
(libFile.a) where I can get object code of
this routine and I have linked it with my perl script. This perl script get
compile but after running it I'm getting
segmentation fault. See code below for reference:

=================== C Routine ==================
#include
#include

char * MyMethod(char *data)
{
strcpy(data,"My text from C Code ");
return data;
}
steps to get libFile.a:
cc -c libFile.o libFile.c
ar rcs libFile.a libFile.o
Show full article (2.02Kb)
no comments