Luis Villarino skribis 2007-12-06 10:23 (-0800):
> the problem is that I use this software http://www.successware21.com/ and I
> can go inside and make any modification

I think you meant "can't".

Just write a wrapper for it: a simple script that reads in a message,
splits it into multiple parts, and then calls your software for each
part.

A very simple dot-qmail script could do this:

    #!/usr/bin/perl -w
    use strict;

    # ignore headers
    1 until readline(*STDIN) =~ /^$/;

    # slurp message
    undef $/;
    my $message = readline(*STDIN);

    # split message
    my @parts = unpack '(a160)*', $message;

    # send parts
    system '/usr/bin/program-that-sends-sms', $_ for @parts;

Note that I haven't looked at successware21.com, and that this example
code is untested.

> Mi idea is in the server make the process or just save the message in a
> mysql database and create another script that make the split process
> and the email server will be just for this application

Grand overkill if you ask me. But if this is what you want, what exactly
is your question to us? Where did you get stuck while building this?
-- 
Met vriendelijke groet,  Kind regards,  Korajn salutojn,

  Juerd Waalboer:  Perl hacker  <[EMAIL PROTECTED]>  <http://juerd.nl/sig>
  Convolution:     ICT solutions and consultancy <[EMAIL PROTECTED]>

Reply via email to