hellkvist.org Forum Index hellkvist.org
Discussions about the free software on hellkvist.org
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

e-mail feature

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    hellkvist.org Forum Index -> Peffisaur
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sun Apr 18, 2004 7:10 pm    Post subject: e-mail feature Reply with quote

ive added a "peffisaur" user

ive sent an e-mail with a picture in from my phone,

i waited a few seconds and "recmail.log" appears in /tmp

recmail.log contains the following

Code:
/home/peffisaur/recmail.pl: use: command not found
/home/peffisaur/recmail.pl: =mysql: command not found
/home/peffisaur/recmail.pl: =: command not found
/home/peffisaur/recmail.pl: =: command not found
/home/peffisaur/recmail.pl: =: command not found
/home/peffisaur/recmail.pl: =: command not found
/home/peffisaur/recmail.pl: =: command not found
/home/peffisaur/recmail.pl: line 12: syntax error near unexpected token `0'
/home/peffisaur/recmail.pl: line 12: `umask( 0 );'
procmail: Error while writing to "/home/peffisaur/recmail.pl"
From +44783434xxxx@mediamessaging.o2.co.uk  Sun Apr 18 18:06:45 2004
 Subject: Multimedia Message
  Folder: /var/mail/peffisaur                                             41328


any idea why it's doing this? any help would be greatly appreciated

ty! Smile
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Sun Apr 18, 2004 10:21 pm    Post subject: Reply with quote

That looks...ehm...bad Smile

It almost seems like the script is not parsed by perl at all but instead by some other command line interpreter. It actually looks very much like the script is parsed by sh instead of perl. I tried running it with "sh recmail.pl" and the output is similar (but not exactly like it) to yours. Are you running this on a windows machine? Or is there not a perl binary at /usr/bin/perl ?

If you log on the server and type "/home/peffisaur/recmail.pl", do you then get the same error message?

What system are you running on? What perl version do you have at /usr/bin/perl? (type "/usr/bin/perl -v" to find out).

My guess is that there is something broken with your perl. At least it seems like the script is parsed by sh or some other shell instead of perl which is very strange.

/S
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Sun Apr 18, 2004 10:49 pm    Post subject: Reply with quote

ooh.

i chmodded the perl script +x and it worked fine, perhaps you'd like to include this in your future docs!

ty sorry for wasting time Very Happy
Back to top
Guest






PostPosted: Sun Apr 18, 2004 10:55 pm    Post subject: Reply with quote

oh and yes it was a debian linux server, running sendmail and procmail and perl v5.6.1. (incase anyone has the same probs)
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Mon Apr 19, 2004 8:23 am    Post subject: Reply with quote

I see. I just thought about that. That perhaps if it's not executable it will get "sourced" instead and interpreted by the shell. So I went here to suggest that noticing you had already solved it.

Thanks for the info.

Cheers
Stefan
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    hellkvist.org Forum Index -> Peffisaur All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group