Re: SMS Forwarding

LuKreme <[email protected]>
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
On 21 Jan 2014, at 23:12 , Parv <[email protected]> wrote:

> Then, send an email of first n (120 is it?) characters of one of the
> above two strings.

I tried this:

  SUBJECT=`formail -zx "Subject:"`
VERBOSE=ON
   :0c
   {
     :0fw
     | formail -I"" | grep -v "^>" | perl -e "$/ = undef; $_ = <>; s/\s+/ /sg; print substr $_, 0, 200"

     :0
     ! $SMS
   }

   :0fwh
   |formail -b -I"Subject: [$ARG] $SUBJECT"

 }

but what I got forwarded to the SMS address was the entire message, including the quoted lines instead of only the first 200 characters of the non-quoted lines.


-- 
Kickboxing. Sport of the future.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.