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 

MMS Diary

 
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 -> MMS Diary
View previous topic :: View next topic  
Author Message
spiderman
Guest





PostPosted: Sun Dec 21, 2003 5:29 am    Post subject: MMS Diary Reply with quote

Hi,

Just got 2 questions to ask:

1. Can i break the mms diary into few pages to display my mms photos ? say about 10 photos in one page instead of displaying all photos togather.

This will help to improve the speed of loading the web page. If possible, can let me know the script source code?

2. Can i modify the script to send to an email address eg.mms@domain.com instead of changing the mobilephone homepage?

appreciate your help?

regards,
Spiderman
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Sun Dec 21, 2003 1:56 pm    Post subject: Reply with quote

1) Anything is possible of course but right now it's not implemented. I know someone who has done it though. Check out http://mms.wit-software.com/mmsdiary/view.php. You can ask them to provide you with the code (as it's all GPL).

2) Yes, this has been done as well by a few people but it's not in the official MMS Diary souce code. Check out this thread for instance: http://www.hellkvist.org/forum/viewtopic.php?t=21
Back to top
View user's profile Send private message Visit poster's website
Spiderman
Guest





PostPosted: Sun Dec 21, 2003 5:06 pm    Post subject: MMS - send via email Reply with quote

Hi Peffis,

Thanks for your help.

Just to trouble you one more time, regarding the link sending mms via email: http://www.hellkvist.org/forum/viewtopic.php?t=21

I'm confused. Can help to recap how to do this? According to Trevi scripts below, which one should i use? Any modification need to be made? and any email address need to be configured on the script? I dont see the explanation on the email address (let say i dont want o combine with Pivot, just send mms direct to MMS diary via email).

www.arvidbux.nl/log/scripts/sendmetmail.phps
www.arvidbux.nl/log/scripts/sendmetpivot.phps
www.arvidbux.nl/log/scripts/sendmetmailenredirectpivot.phps


rgds,Spiderman
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Sun Dec 21, 2003 7:08 pm    Post subject: Reply with quote

Oh shit. I misunderstood your question. Since we were talking about MMS Diary I sort of got into the mode that you wanted to forwad the MMS to an email address after it has been sent as that is usually what people do. About using an email address to send...well, that's rather easy as well really. It's more a matter of email configuration really.

Take a look at Peffisaur which is the successor of MMS Diary (download from same place). In that code I have a file called recmail.pl or something that handles email that is received by sendmail and forwarded to that script via procmail. I set up an account that catches all emails that doesn't have a proper account on the server and then determine who sent it by looking at the address used.

It's a bit different with MMS Diary though as it doesn't store content in a database (Peffisaur uses MYSQL) so you might need to change it. It's not much work though. Hmm...I think you can just remove all the database stuff and it will work fine really if you point out the message storage directory ok. You will need the munpack program though but that you can download from the net (google to find it).

May the beards of your enemies grow inwards!
Back to top
View user's profile Send private message Visit poster's website
Spiderman
Guest





PostPosted: Tue Dec 23, 2003 4:38 pm    Post subject: MMS - send via email Reply with quote

Hi Peffis,

Thanks for your help. I still try to figure out how to get this thing work. I've downloaded & installed recmail.pl & did the email filteration for any email send to mms@domain.com to be directed to recmail.pl.

Too bad, nothing seems to be happened. No photos were shown in the mms dairy.

I have no idea wether my hosting a/c installed with munpack program & in the mildst of checking with them.

In the recmail.pl, i just did the change for the path point to msgstore & deleted mysql database string, are these correct? Fyi, my webserver uses sendmail for sending email.

Hope that you can help & wish you Merry Xmas!!

rgds,Spiderman
Back to top
Spiderman
Guest





PostPosted: Wed Dec 24, 2003 10:50 am    Post subject: MMS Dairy- Send via email Reply with quote

Hi Peffis,

Can I use CPAN (perl script?) instead of munpack as MIME decorder as my web hosting a/c does not has this feature?

If so, any configuration need to be done?

Merry Xmas!!

rgds,Spiderman
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Thu Dec 25, 2003 8:48 pm    Post subject: Reply with quote

Well, you can of course use anything you like. You will have to change recmail.pl though to make it work. Change line 8 and line 28 so it's compatible with your system. Munpack unpacks all the attachments into the target dir so you can replace that with anything you find suitable. Unfortunately the rest script also relies on that a file named info.txt is created. That's a file containing rows on the form:
<filenam> <ccontent type>

So if you replace munpack you will need your replacement to do the same...or just totally redesign recmail.pl. All it has to do is to unpack the attachments and add all the content to the mysql-database (not the content itself but the filenames of content and the content-type of the content)

Cheers,
Stefan
Back to top
View user's profile Send private message Visit poster's website
Spiderman
Guest





PostPosted: Fri Dec 26, 2003 2:59 am    Post subject: MMS - Send Via Email Reply with quote

Hi Stefan,

Thanks for your help. Merry Xmas & happy holiday!

I cant find any configuration on line 28 (recmail), pls help.

Line 8 is the path to munpack program, line 28?? no idea.

rgds,Spiderman
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Fri Dec 26, 2003 10:53 am    Post subject: Reply with quote

Oh...I should have written 48 and nothing else. Line 48 is where munpack is used so you might need to change the command line options there to suit your program.

Cheers,
Stefan
Back to top
View user's profile Send private message Visit poster's website
Spiderman
Guest





PostPosted: Sun Dec 28, 2003 5:11 pm    Post subject: MMS Via Email Reply with quote

Hi Stefan,

I think i have configured everything & initiated 2 emails out. Nothing was happened & no photos were shown in mms diary. However, i noticed that mms folder has created a file called recmail.php & when i opened the file to check; all the photos details (file name, date & time sent, lots of funny coding, etc) that supposed to send were all kept in this file. see below:
************
content-type: image/jpeg; Name="pic_023.jpg"
content-id: <i1:pic_023.jpg>
content-location: pic_023.jpg
Content-Transfer-Encoding: base64

/9j/4QEQRXhpZgAATU0AKgAAAAgABgEaAAUAAAABAAAAVgEbAAUAAAABAAAAXgEoAAMAAAABAAIA
AAEyAAIAAAAUAAAAZgITAAMAAAABAAEAAIdpAAQAAAABAAAAegAAAAAAAABIAAAAAQAAAEgAAAAB
MjAwMzoxMjoxODoxNDoyMzo......

Any idea what went wrong?
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Fri Jan 09, 2004 1:03 am    Post subject: Reply with quote

Thats very strange I must say. I think I would have to see your source code to see what is going on. As I understand it you have changed it to something else now. Am I right?
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 -> MMS Diary 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