From Address(s) - Needed to verify the sender to continue in the script next steps..

You can use index to locate a fixed substring (such as "From: foo@bar.baz\n") in a longer one.

need to confirm that the To address contains 8 numbers @domain.com

A regular expression could do that. See the tutorial for getting started.

I need remove the @domain.com and the number into a temp $mobilvariable and the subject into another $textvariable.

More regular expressions this time with capture groups.

Sounds like you have an algorithm planned and just now need to turn it into working code. Good luck.

(BTW, you posted this in the wrong section (Perl Monks Discussion). I've moved it to Seekers of Perl Wisdom where it belongs.)


In reply to Re: mail2sms for Kannel by hippo
in thread mail2sms for Kannel by Pizu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.