LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-03-2009, 04:41 AM   #31
Terry56
Member
 
Registered: Oct 2009
Posts: 49

Original Poster
Rep: Reputation: 15

Hi,
Thank you.Yes when i send a voice mail to kashif@nethyderabad.com it goes to var/spool/mail/kashif and it stores like this

From basit_mahmood@netkarachi.com Tue Nov 3 16:36:12 2009
Return-Path: <basit_mahmood@netkarachi.com>
Received: from ns1.netkarachi.com (mail.netkarachi.com [38.105.84.66])
by ns9.nethyderabad.com (8.13.1/8.13.1) with ESMTP id nA3BZsYu013732
for <kashif@nethyderabad.com>; Tue, 3 Nov 2009 16:35:56 +0500
Received: from localhost ([127.0.0.1])
by ns1.netkarachi.com with esmtp (Exim 4.63)
(envelope-from <basit_mahmood@netkarachi.com>)
id 1N5ONa-00061t-5O
for kashif@nethyderabad.com; Tue, 03 Nov 2009 10:45:18 -0800
MIME-Version: 1.0
X-Mailer: AtMail PHP 5.06
Message-ID: <51270.1257273918@netkarachi.com>
To: <kashif@nethyderabad.com>
Reply-To: basit_mahmood@netkarachi.com
Content-Type: multipart/mixed;
boundary="=_c12ca769973607196df55ee925c1147d"
X-Origin: 116.71.44.176
Date: Tue, 3 Nov 2009 10:45:18 -0800
Subject: VoiceMail: test voice mail
From: <basit_mahmood@netkarachi.com>

--=_c12ca769973607196df55ee925c1147d
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="utf-8"

<HTML><table width=3D"100%" style=3D"border: 1px solid #215576;">
<tr>
<td style=3D"padding: 3px;" nowrap>
This Email has Voice maill attached : <br>
</td>
</tr>
</table>
<br>
<HTML>
This is a voice mail test<br>
<BR><hr>Msg sent via NetKarachi - http://www.netkarachi.com/</HTML>

</HTML>
--=_c12ca769973607196df55ee925c1147d
Content-Transfer-Encoding: base64
Content-Type: application/octet-stream;
name="Voicemail14803.wav";
Content-Disposition: attachment;
filename="Voicemail14803.wav";

UklGRlRvAQBXQVZFZm10IBAAAAABAAEAQB8AAEAfAAABAAgAZGF0YTBvAQCAf3+BgIGBgIGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGAgICAgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGAgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGB
--=_c12ca769973607196df55ee925c1147d--

any idea.

Thanks in advance
 
Old 11-03-2009, 06:15 AM   #32
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
As I told you, I cannot understand why procmail does not match the .wav extension.
If your voicemails contain "Voicemail" in the subject line, you can change the .procmailrc, to the following:
Code:
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/procmail.log
VERBOSE=on

:0:
* ^Subject:.*VoiceMail
|/usr/local/bin/attachment.pl
Hope that helps...
 
Old 11-03-2009, 11:46 PM   #33
Terry56
Member
 
Registered: Oct 2009
Posts: 49

Original Poster
Rep: Reputation: 15
Hi,
Thank you.I think this time it found the match but something wrong with the script. Now here's the log result

procmail: [20624] Wed Nov 4 16:32:06 2009
procmail: Match on "^Subject:.*VoiceMail"
procmail: Couldn't determine implicit lockfile from "/usr/local/bin/attachment.pl"
procmail: Locking ".lock"
procmail: Executing "/usr/local/bin/attachment.pl"
Can't locate MIME/Parser.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/local/bin/attachment.pl line 27.
BEGIN failed--compilation aborted at /usr/local/bin/attachment.pl line 27.
procmail: Error while writing to "/usr/local/bin/attachment.pl"
procmail: Non-zero exitcode (2) from "/usr/local/bin/attachment.pl"
procmail: Assigning "LASTFOLDER=/usr/local/bin/attachment.pl"
procmail: Unlocking ".lock"
procmail: Locking "/var/mail/kashif.lock"
procmail: Assigning "LASTFOLDER=/var/mail/kashif"
procmail: Opening "/var/mail/kashif"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/mail/kashif.lock"
procmail: Notified comsat: "kashif@0:/var/mail/kashif"
From basit_mahmood@netkarachi.com Wed Nov 4 16:32:06 2009
Subject: VoiceMail: test voice mail
Folder: /var/mail/kashif 70551

Any idea where things are going wrong .The line 27 contain this line in the attachment.pl

use MIME::Parser;

And here the previous lines before this line

#!/usr/bin/perl
#
# Un-MIME regular message from stdin.
# Non-text version saved in directory ~/mail/MIME and proper indication is
# left in the dumped message. Text is otherwise dumped and deleted from there.
#
# Intended to be used with mailagent thanks to the following incantation rule:
#
# Mime-Version: /^\d/ { SAVE +mime; FEED ~/mail/unmime; RESYNC; REJECT };
#
# Options:
# -e: pass the quoted-printable decoder over the message and that's it.
# -x: translate chars not understood by some iso8859-1 fonts.
# -X: translate all accents to non-accentuated letters (plain ASCII).

($me = $0) =~ s|.*/(.*)|$1|;

require "getopts.pl";
Getopts('exX');

$opt_x++ if $opt_X; # -X implies -x

#$TMPDIR = "/var/spool/mail/MIME";
#$TMPDIR = "/var/spool/asterisk/voicemail/brights/220/INBOX";
$TMPDIR = "/home/kashif/Mail/voicemail";

use MIME::Parser;

Sorry first i created a file name voicemail but now i have deleted it and also i change the location means comment the

#$TMPDIR = "/home/kashif/Mail";

and uncomment the line

$TMPDIR = "/var/spool/asterisk/voicemail/brights/220/INBOX";

but it is still showing error at line 27

i think it's a dependency issue can you please tell me how can i solve it i am using centos 4.7

Thanks in advance

Last edited by Terry56; 11-04-2009 at 12:32 AM.
 
Old 11-04-2009, 02:05 AM   #34
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You have to install the MIME::Parser perl module.
Use your distro's package manager to do so, because there also some other dependencies that must be installed.
 
Old 11-04-2009, 07:41 AM   #35
Terry56
Member
 
Registered: Oct 2009
Posts: 49

Original Poster
Rep: Reputation: 15
Hi,
Thank you. I tried to install MIME::Parser but now it is showing message like

[root@ns9 tmp]# perl -e 'use MIME::Parser'
Can't locate IO/ScalarArray.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Parser.pm line 133.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Parser.pm line 133.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

First it wasn't used to find parser.pm and now ScalarArray.pm. While searching i came to know that perl-IO-stringy contain these files and i have already installed it.

[root@ns9 tmp]# ls
perl-Convert-BinHex-1.119-3.el4.pp.noarch.rpm
perl-IO-stringy-2.110-1.noarch.rpm
perl-MIME-tools-5.425-1.el4.test.noarch.rpm
[root@ns9 tmp]# rpm -q perl-Convert-BinHex
perl-Convert-BinHex-1.119-3.el4.pp
[root@ns9 tmp]# rpm -ivh perl-IO-stringy-2.110-1.noarch.rpm
warning: perl-IO-stringy-2.110-1.noarch.rpm: V3 DSA signature: NOKEY, key ID 41d6b379
Preparing... ########################################### [100%]
package perl-IO-stringy-2.110-1 is already installed
[root@ns9 tmp]# rpm -q perl-IO-stringy
perl-IO-stringy-2.110-1
[root@ns9 tmp]# rpm -q perl-MIME-tools
perl-MIME-tools-5.425-1.el4.rf
[root@ns9 tmp]# perl -e 'use MIME::Parser'
Can't locate IO/ScalarArray.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Parser.pm line 133.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Parser.pm line 133.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
[root@ns9 tmp]#

Any idea why it is showing this message even the error are reduces but it still shows some error.

Thanks in advance
 
Old 11-04-2009, 08:33 AM   #36
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The MIME::Parser dependencies are quite enough. You should have used yum or similar to resolve them automatically, because some of them are also have other dependencies in turn.
Anyway uninstall MIME::Parser, install all the dependencies first and then reinstall it and see if it works.
 
Old 11-06-2009, 07:48 AM   #37
Terry56
Member
 
Registered: Oct 2009
Posts: 49

Original Poster
Rep: Reputation: 15
Hi,
I have installed all perl packages, i will tell you how, in my next post so other can also took benefit from it but now the procmail show another error, can you please tell me now what it is saying . The logs are

procmail: [5734] Sat Nov 7 00:34:57 2009
procmail: Match on "^Subject:.*VoiceMail"
procmail: Couldn't determine implicit lockfile from "/usr/local/bin/attachment.pl"
procmail: Locking ".lock"
procmail: Executing "/usr/local/bin/attachment.pl"
Can't locate object method "seek" via package "File::Temp" at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Parser.pm line 816, <STDIN> line 40.
procmail: Error while writing to "/usr/local/bin/attachment.pl"
procmail: Non-zero exitcode (25) from "/usr/local/bin/attachment.pl"
procmail: Assigning "LASTFOLDER=/usr/local/bin/attachment.pl"
procmail: Unlocking ".lock"
procmail: Locking "/var/mail/kashif.lock"
procmail: Assigning "LASTFOLDER=/var/mail/kashif"
procmail: Opening "/var/mail/kashif"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/mail/kashif.lock"
procmail: Notified comsat: "kashif@0:/var/mail/kashif"
From basit_mahmood@netkarachi.com Sat Nov 7 00:34:57 2009
Subject: VoiceMail: test voice mail
Folder: /var/mail/kashif 150216

Thanks in advance
 
Old 11-06-2009, 08:07 AM   #38
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

It looks like you need a more recent version of File::Temp, because according to this the yum version has errors.
 
Old 11-06-2009, 02:57 PM   #39
Terry56
Member
 
Registered: Oct 2009
Posts: 49

Original Poster
Rep: Reputation: 15
Hi,
Thanks.So how do i get the newer version of File::Temp and how do i come to know that which version i want, I am using centos 4.7. Is it also a Perl module.

I mean to say of course I'll Google to find the new version but is there a specific version of this file i require or whatever the latest version is available i suppose to use it .


Thank you

Last edited by Terry56; 11-06-2009 at 03:04 PM.
 
Old 11-06-2009, 03:47 PM   #40
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I've tested the perl script successfully with the latest File-Temp-0.22, so I guess you can d/l and install this version from cpan.org. For instructions about installing a perl module from source, read this.

Regards
 
Old 11-10-2009, 01:11 AM   #41
Terry56
Member
 
Registered: Oct 2009
Posts: 49

Original Poster
Rep: Reputation: 15
Hi,
Thank you. I have downloaded the file File-Temp0.22 but now the logs are

procmail: [10270] Tue Nov 10 17:54:04 2009
procmail: Match on "^Subject:.*VoiceMail"
procmail: Couldn't determine implicit lockfile from "/usr/local/bin/attachment.pl"
procmail: Locking ".lock"
procmail: Executing "/usr/local/bin/attachment.pl"
MIME::Body::File->open /var/spool/asterisk/voicemail/brights/220/INBOX/msg-10271-1.html: Permission denied at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Body.pm line 435.
procmail: Error while writing to "/usr/local/bin/attachment.pl"
procmail: Non-zero exitcode (13) from "/usr/local/bin/attachment.pl"
procmail: Assigning "LASTFOLDER=/usr/local/bin/attachment.pl"
procmail: Unlocking ".lock"
procmail: Locking "/var/mail/kashif.lock"
procmail: Assigning "LASTFOLDER=/var/mail/kashif"
procmail: Opening "/var/mail/kashif"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/mail/kashif.lock"
procmail: Notified comsat: "kashif@0:/var/mail/kashif"
From basit_mahmood@netkarachi.com Tue Nov 10 17:54:04 2009
Subject: VoiceMail: another test voice mial
Folder: /var/mail/kashif 132020

This time it tried to open the folder i think that i described in the script but now what it is saying please can you explain it

This is how i download this file first i download this file in /tmp directory then untar it by tar -zxvf Filename.tar.gz, it created a new directory and after went to the newly created directory i type the following commands

[root@ns9 File-Temp-0.22]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for File::Temp
[root@ns9 File-Temp-0.22]# make
cp Temp.pm blib/lib/File/Temp.pm
Manifying blib/man3/File::Temp.3pm
[root@ns9 File-Temp-0.22]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/cmp.........ok
t/fork........ok
t/lock........skipped
all skipped: Do not seem to have O_EXLOCK
t/mktemp......ok
t/object......ok
t/posix.......ok
t/security....ok
3/13 skipped: Test inappropriate for root
t/seekable....ok
t/tempfile....ok
All tests successful, 1 test and 3 subtests skipped.
Files=9, Tests=102, 18 wallclock secs ( 1.21 cusr + 0.10 csys = 1.31 CPU)
[root@ns9 File-Temp-0.22]# make install
Installing /usr/lib/perl5/5.8.5/File/Temp.pm
Installing /usr/share/man/man3/File::Temp.3pm
Writing /usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/File/Temp/.packlist
Appending installation info to /usr/lib/perl5/5.8.5/i386-linux-thread-multi/perllocal.pod
[root@ns9 File-Temp-0.22]#


Any idea now what it is saying this time

Thanks in advance
 
Old 11-10-2009, 02:10 AM   #42
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
MIME::Body::File->open /var/spool/asterisk/voicemail/brights/220/INBOX/msg-10271-1.html: Permission denied at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Body.pm line 435.
This is a permissions issue.
What gives:
Code:
ls -ld /var/spool/asterisk/voicemail/brights/220/INBOX
ls -la /var/spool/asterisk/voicemail/brights/220/INBOX/*
Note that the script runs by the user from who's directory it's invoked, so that user (kashif), must have rwx right on the destination folder.
Also since you're using Centos, make sure it's not a SELinux security problem.
 
Old 11-10-2009, 02:28 AM   #43
Terry56
Member
 
Registered: Oct 2009
Posts: 49

Original Poster
Rep: Reputation: 15
Hi,
Thank you.Now I have given permission to INBOX folder and the output is

[root@ns9 /]# ls -ld /var/spool/asterisk/voicemail/brights/220/INBOX
drwxrwxrwx 2 root root 4096 Nov 10 19:12 /var/spool/asterisk/voicemail/brights/220/INBOX

[root@ns9 /]# ls -la /var/spool/asterisk/voicemail/brights/220/INBOX/*
-rw------- 1 kashif kashif 281 Nov 10 19:12 /var/spool/asterisk/voicemail/brights/220/INBOX/msg-10288-1.html
-rw------- 1 kashif kashif 0 Nov 10 19:12 /var/spool/asterisk/voicemail/brights/220/INBOX/Voicemail21654.wav

[root@ns9 /]# ls -la /var/spool/asterisk/voicemail/brights/220/INBOX/
total 12
drwxrwxrwx 2 root root 4096 Nov 10 19:12 .
drwxr-xr-x 8 root root 4096 May 31 02:28 ..
-rw------- 1 kashif kashif 281 Nov 10 19:12 msg-10288-1.html
-rw------- 1 kashif kashif 0 Nov 10 19:12 Voicemail21654.wav
[root@ns9 /]#


But the logs are

procmail: [10287] Tue Nov 10 19:12:48 2009
procmail: Match on "^Subject:.*VoiceMail"
procmail: Couldn't determine implicit lockfile from "/usr/local/bin/attachment.pl"
procmail: Locking ".lock"
procmail: Executing "/usr/local/bin/attachment.pl"
Can't locate object method "binmode" via package "IO::File" at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Body.pm line 437.
procmail: Non-zero exitcode (25) from "/usr/local/bin/attachment.pl"
procmail: Assigning "LASTFOLDER=/usr/local/bin/attachment.pl"
procmail: Unlocking ".lock"
procmail: Locking "/var/mail/kashif.lock"
procmail: Assigning "LASTFOLDER=/var/mail/kashif"
procmail: Opening "/var/mail/kashif"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/mail/kashif.lock"
procmail: Notified comsat: "kashif@0:/var/mail/kashif"
From basit_mahmood@netkarachi.com Tue Nov 10 19:12:48 2009
Subject: VoiceMail: test voice mail
Folder: /var/mail/kashif 246800

Now which perl module is missing this time

Thanks in advance
 
Old 11-10-2009, 02:57 AM   #44
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Can't locate object method "binmode" via package "IO::File" at /usr/lib/perl5/vendor_perl/5.8.5/MIME/Body.pm line 437.
procmail: Non-zero exitcode (25) from "/usr/local/bin/attachment.pl"
That's a different error. I guess that happens because you have installed the latest File::Temp module, so you need to update also some other modules, like IO::File and maybe others.
Download and install IO::File and see how it goes.
 
Old 11-10-2009, 05:03 AM   #45
Terry56
Member
 
Registered: Oct 2009
Posts: 49

Original Poster
Rep: Reputation: 15
Hi;
Thank you very much.Now the logs are

procmail: [5183] Tue Nov 10 21:46:53 2009
procmail: Match on "^Subject:.*VoiceMail"
procmail: Couldn't determine implicit lockfile from "/usr/local/bin/attachment.pl"
procmail: Locking ".lock"
procmail: Executing "/usr/local/bin/attachment.pl"
can't unlink:
procmail: [5183] Tue Nov 10 21:46:55 2009
procmail: Assigning "LASTFOLDER=/usr/local/bin/attachment.pl"
procmail: Unlocking ".lock"
procmail: Notified comsat: "kashif@:/usr/local/bin/attachment.pl"
From basit_mahmood@netkarachi.com Tue Nov 10 21:46:53 2009
Subject: VoiceMail: test voice mail
Folder: /usr/local/bin/attachment.pl 86082

But good news is that now the mail is going to my desired folder . But can you please tell me what these line means

procmail: Couldn't determine implicit lockfile from "/usr/local/bin/attachment.pl"
procmail: Locking ".lock"
procmail: Executing "/usr/local/bin/attachment.pl"
can't unlink:

Another question that i want to ask, do you know about Asterisk. I mean to say what is Asterisk and how it works do you know?

Thanks in advance
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
stop incoming mail while quota exceed in openwebmail shan_nathan Linux - Server 1 10-07-2009 08:55 PM
outgoing mail server : timeout error bittus Linux - Newbie 94 11-19-2008 07:16 PM
dd retry on error? SDraconis Linux - General 4 06-12-2005 01:20 AM
increasing retry timeout with mgetty/sendfax? rj1 Linux - General 0 11-09-2004 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration