procmail
[Top] [All Lists]

Re: splitting large mail msgs.

1999-12-12 02:14:41

On Dec 12, 12:34am, Silver wrote:
Subject: Re: splitting large mail msgs. (silver)
/usr/bin/splitmail

and I can call splitmail from my home directory.
here is my logfile:

Try again with the -b -k options added, that I mentioned in my previous
e-mail, and make sure to fix the SPLITSIZE typo.
 
procmail: Match on "> "
procmail: Match on ! "^X-Loop:.*$MYADDR"
procmail: Assigning "LASTFOLDER= formail -rI"To: $ALTADDR" -A"X-Loop:
$MYADDR" |
\
splitmail -s 140 -d -i split"
procmail: Assigning "INCLUDERC=/home/jrogers/.procmail/mobile.rc"
procmail: Extraneous locallockfile ignored
procmail: Locking ".lock"
procmail: Unlocking ".lock"
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi
5035395186(_at_)mobile(_dot_)att(_dot_)net
"
procmail: Assigning "LOGFILE=/home/jrogers/.procmail/log"
procmail: Opening "/home/jrogers/.procmail/log"
procmail: Executing 
"/usr/sbin/sendmail,-oi,5035395186(_at_)mobile(_dot_)att(_dot_)net"
procmail: Executing " formail -rI"To: $ALTADDR" -A"X-Loop: $MYADDR" |\
splitmail -s 140 -d -i split"
splitmail: Using minimum splitsize of 20000

In the example I sent you, I mistyped SPLITSIZE (as SPLISIZE).  You
need to use SPLITSIZE - that's the env. var. that splitmail is
looking for.  However, I see above that you used the command line
switch -s, which is also okay.  However, splitmail is going to
ignore such a small value, and use its min. of 20000 bytes instead.

Are you really interested in sending only 140 bytes at time?
Even 140 lines is, only about 10000 bytes, which isn't very large
as e-mail's go.

Why such a small limit?  I've never heard of any ISP with a 140 _byte_
message size limit.


there seems to be a whole slew of problems here.  
I assume the variable "SPLISIZE" is a correct on abbr. to 8 char.
the last line is my biggest eyesore...  I want messages of no more than 140
char(of body)

typo.  see above.  Change to SPLITSIZE throughout.  Here's the updated
version with the change:

 SPLITSIZE=20000
 MYADDR=Savinien(_at_)excite(_dot_)com
 ALTADDR=silver(_at_)mobile(_dot_)net
 VERBOSE=yes            ## TESTING ONLY
 LOGFILE=./split-log    ## TESTING ONLY
 DEFAULT=/dev/null      ## TESTING ONLY
 
 ## check that the message exceeds message max
 ## if it does, then format the header to forward the
 ## e-mail to the required address, and pass the entire
 ## message to split_send.
 :0
 * > $SPLITSIZE
 * !^X-Loop:.*$MYADDR
 | formail -rI"To: $ALTADDR" -A"X-Loop: $MYADDR"  -b -k | splitmail -d -i split


I'm interested in using the perl script that you sent me, but I'm afraid
I've never used perl before (although I have am familair with basic and a
little C)

Welcome to Perl.  :) There's a ton of Perl tutorials out there.
Start with http://www.perl.com and http://www.perl.org.  It will
take some getting used to.

<Prev in Thread] Current Thread [Next in Thread>