Previous Previous Next Next Table of Contents Table of Contents

5. Messages, collaborations, tricks

5. Messages, collaborations, tricks

>From here on I'll state things I received from fido users.

>From here on I'll state things I received from fido users.

5.1 futility

5.1 futility




------------------------------------------------------------------------------

------------------------------------------------------------------------------
Message Number 1 from area R34.LINUX

Message Number 1 from area R34.LINUX
------------------------------------------------------------------------------

------------------------------------------------------------------------------
From: Jesus Gambero (2:345/201.3)

From: Jesus Gambero (2:345/201.3)
From: All

From: All
Subj: FEddi

Subj: FEddi
Send: 25 Nov 95  15:43:57

Send: 25 Nov 95  15:43:57
------------------------------------------------------------------------------

------------------------------------------------------------------------------
Hi.

Hi.



For now, FEddi hasn't got too much documentation, so after a couple of

For now, FEddi hasn't got too much documentation, so after a couple of
tests, finally I'm able to maintain the message base.

tests, finally I'm able to maintain the message base.



        futility tool delete "age+15&&protect-&&new-" R34.LINUX

        futility tool delete "age+15&&protect-&&new-" R34.LINUX
        futility pack

        futility pack



This will delete the messages older than 15 days which are not protected

This will delete the messages older than 15 days which are not protected
and which have been read.

and which have been read.



If you don't specify the area name, it'll refer to all. It happens that

If you don't specify the area name, it'll refer to all. It happens that
I leave some areas more days than others, so I have to specify a line for

I leave some areas more days than others, so I have to specify a line for
each area, but my customize it at will.

each area, but my customize it at will.



Bye.

Bye.



--- FEddi 0.9pl5 via BinkleyTerm

--- FEddi 0.9pl5 via BinkleyTerm
 * Origin: Message written and send by Linux, of course!!

 * Origin: Message written and send by Linux, of course!!
(2:345/201.3)

(2:345/201.3)

5.2 File request (FREQ).

5.2 File request (FREQ).




------------------------------------------------------------------------------

------------------------------------------------------------------------------
Message Number 4 from area R34.LINUX

Message Number 4 from area R34.LINUX
------------------------------------------------------------------------------

------------------------------------------------------------------------------
From: Javier Hernandez (2:346/207.48)

From: Javier Hernandez (2:346/207.48)
From: ALL

From: ALL
Subj: FILE REQUEST

Subj: FILE REQUEST
Send: 07 Dec 95  06:15:45

Send: 07 Dec 95  06:15:45
------------------------------------------------------------------------------

------------------------------------------------------------------------------
Hi!

Hi!



I have been trying to find out how to do the RE: with the Linux software,

I have been trying to find out how to do the RE: with the Linux software,
and I already fetched my first file. I'll explain how I did it, just if

and I already fetched my first file. I'll explain how I did it, just if
anybody is interested, or knows about a more correct manner.

anybody is interested, or knows about a more correct manner.



First I write a Net, usually to my sysop. After finishing I exit with

First I write a Net, usually to my sysop. After finishing I exit with
(Alt+x). Having the message activated, I hit (Alt+g) to open a small

(Alt+x). Having the message activated, I hit (Alt+g) to open a small
window which displays some data. Once seeing it, I pulse `Inc' and type

window which displays some data. Once seeing it, I pulse `Inc' and type
the name of the file I wish to download. Finally I push `Esc'.

the name of the file I wish to download. Finally I push `Esc'.



This should be enough. Next time you call you'll receive the file. At

This should be enough. Next time you call you'll receive the file. At
least this is how it worked for me.

least this is how it worked for me.



Any comments?

Any comments?



Bye,

Bye,
  Javier

  Javier



                    [email protected]                    _\|/_

                    [email protected]                    _\|/_
    ***********************************************-----(O)---****

    ***********************************************-----(O)---****
    * Javi(Canary)                              * Valencia/Spain *

    * Javi(Canary)                              * Valencia/Spain *



--- FEddi 0.9pl5 via BinkleyTerm

--- FEddi 0.9pl5 via BinkleyTerm
 * Origin: RAMERA: persona que comercia con su RAM. (2:346/207.48)

 * Origin: RAMERA: persona que comercia con su RAM. (2:346/207.48)

5.3 Frequent addresses.

5.3 Frequent addresses.




------------------------------------------------------------------------------

------------------------------------------------------------------------------
Message Number 6 from area R34.LINUX

Message Number 6 from area R34.LINUX
------------------------------------------------------------------------------

------------------------------------------------------------------------------
From: Javier Hernandez (2:346/207.48)

From: Javier Hernandez (2:346/207.48)
From: Manuel Soriano

From: Manuel Soriano
Subj: Testing send.

Subj: Testing send.
Send: 11 Dec 95  23:58:55

Send: 11 Dec 95  23:58:55
------------------------------------------------------------------------------

------------------------------------------------------------------------------
Hi Manuel!

Hi Manuel!



As of 07 Dec 95, Manuel Soriano wrote to Javier Hernandez

As of 07 Dec 95, Manuel Soriano wrote to Javier Hernandez
concerning "Testing send.":

concerning "Testing send.":



 MS> I've received it correctly, in the write area, just tell us how you

 MS> I've received it correctly, in the write area, just tell us how you
 MS> did it. Hope you'll write us a feddi.howto :-)

 MS> did it. Hope you'll write us a feddi.howto :-)



See, I put a file called "names" into /home/fido/fnet/msgbase which might

See, I put a file called "names" into /home/fido/fnet/msgbase which might
be similar for you. The file's contents:

be similar for you. The file's contents:
-------------------------start here-------------------------------------

-------------------------start here-------------------------------------
*fj,Javier Hernandez,2:346/207.48

*fj,Javier Hernandez,2:346/207.48
*fm,Francisco Moreno,2:346/207.1

*fm,Francisco Moreno,2:346/207.1
*ap,Alfonso Perez-Almazan,2:346/207.2

*ap,Alfonso Perez-Almazan,2:346/207.2
*vk,Viktor Martinez,2:346/207.4

*vk,Viktor Martinez,2:346/207.4
*sz,Salvador Zarzo,2:346/207.6

*sz,Salvador Zarzo,2:346/207.6
*el,Eduardo Lluna Gil,2:346/207.8

*el,Eduardo Lluna Gil,2:346/207.8
*bs,Bernardino Soldan,2:346/207.10

*bs,Bernardino Soldan,2:346/207.10
*ms,Manuel Soriano,2:346/207.14

*ms,Manuel Soriano,2:346/207.14
*js,Jose Luis Sanchez,2:346/207.17

*js,Jose Luis Sanchez,2:346/207.17
*jv,Jose Villanueva,2:346/207.28

*jv,Jose Villanueva,2:346/207.28
*am,Alberto Mendoza,2:346/207.44

*am,Alberto Mendoza,2:346/207.44
*pe,[email protected],2:342/3

*pe,[email protected],2:342/3
*am,areamgr,2:346/207

*am,areamgr,2:346/207
*rt,[email protected],2:342/3

*rt,[email protected],2:342/3
----------------------------stop here-----------------------------------

----------------------------stop here-----------------------------------
This causes that, inserting a net instead of writing a To:, push PgUp or

This causes that, inserting a net instead of writing a To:, push PgUp or
PgDown, you can see the different names. As you see, I've even added some

PgDown, you can see the different names. As you see, I've even added some
Internet addresses which I'm using sometimes. The first field, I think, is

Internet addresses which I'm using sometimes. The first field, I think, is
some kind of short keys to make a call directly to this line. I don't remember

some kind of short keys to make a call directly to this line. I don't remember
right now how is this done, but it's easy and you'll find it in the man page

right now how is this done, but it's easy and you'll find it in the man page
for feddi.

for feddi.



I don't know if I missed something. If you agree, just add it to feddi.como.

I don't know if I missed something. If you agree, just add it to feddi.como.
Let me know if you think there is missing something, I'll send it to you.

Let me know if you think there is missing something, I'll send it to you.



See ya.

See ya.



Bye,

Bye,
  Javier

  Javier



             [email protected]

             [email protected]
             [email protected]         _\|/_

             [email protected]         _\|/_
    ***********************************************-----(O)---****

    ***********************************************-----(O)---****
    * Javi(Canary)                              * Valencia/Spain *

    * Javi(Canary)                              * Valencia/Spain *



--- FEddi 0.9pl5 via BinkleyTerm

--- FEddi 0.9pl5 via BinkleyTerm
 * Origin: RAMERA: person dealing with his RAM. (2:346/207.48)

 * Origin: RAMERA: person dealing with his RAM. (2:346/207.48)

5.4 Scripts and tools.

5.4 Scripts and tools.




------------------------------------------------------------------------------

------------------------------------------------------------------------------
Message Number 11 from area R34.LINUX

Message Number 11 from area R34.LINUX
------------------------------------------------------------------------------

------------------------------------------------------------------------------
From: Jose Carlos Gutierrez (2:341/45.17)

From: Jose Carlos Gutierrez (2:341/45.17)
From: all

From: all
Subj: Feddi-como, Scripts

Subj: Feddi-como, Scripts
Send: 26 Dec 95  11:42:31

Send: 26 Dec 95  11:42:31
------------------------------------------------------------------------------

------------------------------------------------------------------------------
Hi

Hi



These are the files I'm using to automate mail.

These are the files I'm using to automate mail.



file /usr/local/bin/fido

file /usr/local/bin/fido
#!/bin/bash

#!/bin/bash
pushd ~/fnet/inbound

pushd ~/fnet/inbound
.minusculas

.minusculas
if [ -f snetlist.a* ] ||

if [ -f snetlist.a* ] ||
   [ -f subptlst.a* ] || [ -f region34.l* ] || [ -f ptlstr34.l* ]; then

   [ -f subptlst.a* ] || [ -f region34.l* ] || [ -f ptlstr34.l* ]; then
      ~/fnet/nodelist/compilar

      ~/fnet/nodelist/compilar
fi

fi
ftoss

ftoss
futility link

futility link
fmbedit

fmbedit
fscan

fscan
futility pack

futility pack
popd

popd



 |------------|

 |------------|
file ~/fnet/inbound/.minusculas

file ~/fnet/inbound/.minusculas
(the dot is to avoid that it converts itself to lower case)

(the dot is to avoid that it converts itself to lower case)



#!/usr/bin/perl

#!/usr/bin/perl
while ($nombre = <*>) {

while ($nombre = <*>) {
   $nuevo_nombre = $nombre;

   $nuevo_nombre = $nombre;
   $nuevo_nombre=~ tr/A-Z,Ñ/a-z,ñ/;

   $nuevo_nombre=~ tr/A-Z,Ñ/a-z,ñ/;
   print "$nombre -> $nuevo_nombre \n";

   print "$nombre -> $nuevo_nombre \n";
   rename($nombre,"$nuevo_nombre"); }

   rename($nombre,"$nuevo_nombre"); }
 |------------|

 |------------|
file ~/fnet/nodelist/compilar

file ~/fnet/nodelist/compilar



#!/bin/bash

#!/bin/bash
# file to compile the nodelist

# file to compile the nodelist
pushd ~/fnet/nodelist

pushd ~/fnet/nodelist
if [ -f ~/fnet/inbound/ptlstr34.l* ]; then

if [ -f ~/fnet/inbound/ptlstr34.l* ]; then
        rm ptlstr34*

        rm ptlstr34*
        unpack ~/fnet/inbound/ptlstr34.l*

        unpack ~/fnet/inbound/ptlstr34.l*
fi

fi
if [ -f ~/fnet/inbound/region34.l* ]; then

if [ -f ~/fnet/inbound/region34.l* ]; then
        rm region34*

        rm region34*
        unpack ~/fnet/inbound/region34.l*

        unpack ~/fnet/inbound/region34.l*
fi

fi
if [ -f ~/fnet/inbound/snetlist.a* ]; then

if [ -f ~/fnet/inbound/snetlist.a* ]; then
        rm snetlist*

        rm snetlist*
        unpack ~/fnet/inbound/snetlist.a*

        unpack ~/fnet/inbound/snetlist.a*
fi

fi
if [ -f ~/fnet/inbound/subptlst.a* ]; then

if [ -f ~/fnet/inbound/subptlst.a* ]; then
        rm subptlst*

        rm subptlst*
        unpack ~/fnet/inbound/subptlst.a*

        unpack ~/fnet/inbound/subptlst.a*
fi

fi
# what I'm doing here is insert the line of my Boss for him to call the bt

# what I'm doing here is insert the line of my Boss for him to call the bt
# with ctrl + y (this is probably the most difficult way to do it, by I know

# with ctrl + y (this is probably the most difficult way to do it, by I know
# of no other).

# of no other).
grep -i -B 4000  'Boss,2:341/45' ptlstr34.* > /tmp/file1

grep -i -B 4000  'Boss,2:341/45' ptlstr34.* > /tmp/file1
grep -i -A 4000  'Boss,2:341/45' ptlstr34.* > /tmp/file2

grep -i -A 4000  'Boss,2:341/45' ptlstr34.* > /tmp/file2
grep -v 'Boss,2:341/45' /tmp/file2 > /tmp/file3

grep -v 'Boss,2:341/45' /tmp/file2 > /tmp/file3
rm ptlstr34.*

rm ptlstr34.*
cat /tmp/file1 > ptlstr34

cat /tmp/file1 > ptlstr34
# you'll have to adapt this line to your system

# you'll have to adapt this line to your system
echo ",0,Ma~ana_Remoto,Madrid,Rafa,34-1-6463023,9600,CM,V34,VFC" >> ptlstr34

echo ",0,Ma~ana_Remoto,Madrid,Rafa,34-1-6463023,9600,CM,V34,VFC" >> ptlstr34
cat /tmp/file3 >> ptlstr34

cat /tmp/file3 >> ptlstr34
rm /tmp/file1

rm /tmp/file1
rm /tmp/file2

rm /tmp/file2
rm /tmp/file3

rm /tmp/file3
#

#
rm -f ~/fnet/inbound/ptlstr34*

rm -f ~/fnet/inbound/ptlstr34*
rm -f ~/fnet/inbound/region34*

rm -f ~/fnet/inbound/region34*
rm -f ~/fnet/inbound/snetlist*

rm -f ~/fnet/inbound/snetlist*
rm -f ~/fnet/inbound/subptlst*

rm -f ~/fnet/inbound/subptlst*
rm fnlc.*

rm fnlc.*
fnlc

fnlc
popd

popd









Bye,

Bye,
                Guti.

                Guti.



--- FEddi 0.9pl5 via BinkleyTerm

--- FEddi 0.9pl5 via BinkleyTerm
 * Origin: THE GANG TM (2:341/45.17)

 * Origin: THE GANG TM (2:341/45.17)

5.5 Automation: The personal area.

5.5 Automation: The personal area.




------------------------------------------------------------------------------

------------------------------------------------------------------------------
Message Number 1358 from area R34.LINUX

Message Number 1358 from area R34.LINUX
------------------------------------------------------------------------------

------------------------------------------------------------------------------
From: Pablo Gomez (2:341/43.40)

From: Pablo Gomez (2:341/43.40)
From: All

From: All
Subj: The personal area in FEDDI, a fine(ally) version ;-)

Subj: The personal area in FEDDI, a fine(ally) version ;-)
Send: 24 Jun 96  00:35:31

Send: 24 Jun 96  00:35:31
------------------------------------------------------------------------------

------------------------------------------------------------------------------
Hi!

Hi!



Will since some time we have been trying to find out a possibility to provide

Will since some time we have been trying to find out a possibility to provide
in FEDDI a personal area allowing the reception of mail directed to us

in FEDDI a personal area allowing the reception of mail directed to us
from any area, and, over all, (as the former isn't difficult) reply them

from any area, and, over all, (as the former isn't difficult) reply them
in a comfortable way, sending them back to the original areas.

in a comfortable way, sending them back to the original areas.



The following scripts at least allowed Francisco Jose Montilla and the author

The following scripts at least allowed Francisco Jose Montilla and the author
of this message to do the trick.

of this message to do the trick.



The first step is creating an area which will later serve as PERSONAL.

The first step is creating an area which will later serve as PERSONAL.
We can do it like:

We can do it like:



(As user fido)

(As user fido)



$ cd ~/msgbase

$ cd ~/msgbase
$ mkdir +PERSONAL

$ mkdir +PERSONAL
$ cp +R34.LINUX/* +PERSONAL/

$ cp +R34.LINUX/* +PERSONAL/



(PERSONAL is the name you want to give the personal area) Check if the

(PERSONAL is the name you want to give the personal area) Check if the
permissions and the owner of this new directory are the same as those

permissions and the owner of this new directory are the same as those
you have in other areas. If not, correct them.

you have in other areas. If not, correct them.



Next, to clean the messages, do:

Next, to clean the messages, do:



$ futility "+delete" "all+" PERSONAL

$ futility "+delete" "all+" PERSONAL
$ futility pack PERSONAL

$ futility pack PERSONAL



If you invoke fmbedit again, you'll the the new area, called PERSONAL!

If you invoke fmbedit again, you'll the the new area, called PERSONAL!
:-) magic? :-)

:-) magic? :-)



Now we've got the base. Next part: Copy the new messages that are arriving

Now we've got the base. Next part: Copy the new messages that are arriving
to the system to our name. This is done (almost) automatically.

to the system to our name. This is done (almost) automatically.



If we create a file like:

If we create a file like:



                                      ,,,

                                      ,,,
                                     (o o)  File: ~/msgbase/tosspath

                                     (o o)  File: ~/msgbase/tosspath
---*reiss*------*schnippel*------oOO--(_)--OOo-------*knabber*-----*fetz*---

---*reiss*------*schnippel*------oOO--(_)--OOo-------*knabber*-----*fetz*---



copy    t"Pablo Gomez" PERSONAL

copy    t"Pablo Gomez" PERSONAL



---*reiss*------*schnippel*--------------------------*knabber*-----*fetz*---

---*reiss*------*schnippel*--------------------------*knabber*-----*fetz*---



that's it. Obviously you'll have to replace my name (Pable Gomez) with yours,

that's it. Obviously you'll have to replace my name (Pable Gomez) with yours,
and PERSONAL with the name of your personal area. Each time we run ftoss,

and PERSONAL with the name of your personal area. Each time we run ftoss,
this will copy to the personal area the messages directed to us.

this will copy to the personal area the messages directed to us.



This point deserves a comment. In fact, this will copy also the messages

This point deserves a comment. In fact, this will copy also the messages
directed to us and received in NETMAIL. In my opinion, this is somewhat

directed to us and received in NETMAIL. In my opinion, this is somewhat
brain-dead, as the NETMAIL area is already our personal area. I don't know

brain-dead, as the NETMAIL area is already our personal area. I don't know
of no modification to avoid this copy. So a little later we'll have to

of no modification to avoid this copy. So a little later we'll have to
make a certain adjustment.

make a certain adjustment.



This is a piece (the important one ;-)) of the script I run to receive the

This is a piece (the important one ;-)) of the script I run to receive the
mail.

mail.
                                      ,,,

                                      ,,,
                                     (o o)  File: ~/bin/mimport

                                     (o o)  File: ~/bin/mimport
---*reiss*------*schnippel*------oOO--(_)--OOo-------*knabber*-----*fetz*---

---*reiss*------*schnippel*------oOO--(_)--OOo-------*knabber*-----*fetz*---
#!/bin/sh

#!/bin/sh



# To manage the personal area

# To manage the personal area
PERSAREA=PERSONAL

PERSAREA=PERSONAL



# Mail import

# Mail import
ftoss

ftoss



#

#
# Feeding personal area

# Feeding personal area
# We just have delivered the messages, generating the necessary duplicates in

# We just have delivered the messages, generating the necessary duplicates in
# PERSONAL. But we'd liked to delete the messages which we just copied to

# PERSONAL. But we'd liked to delete the messages which we just copied to
# the PERSONAL area, and which come from the NETMAIL area

# the PERSONAL area, and which come from the NETMAIL area
#

#
futility tool "+delete" \

futility tool "+delete" \
  "new+&&text+\*\*\* ftoss: copied from NETMAIL" $PERSAREA

  "new+&&text+\*\*\* ftoss: copied from NETMAIL" $PERSAREA






# reconstruct threads

# reconstruct threads
futility pack

futility pack
futility link

futility link



#[...]

#[...]
---*reiss*------*schnippel*--------------------------*knabber*-----*fetz*---

---*reiss*------*schnippel*--------------------------*knabber*-----*fetz*---



Be careful: the lines `futility tool ...' and `new ..." are just one. The

Be careful: the lines `futility tool ...' and `new ..." are just one. The
aim is to delete this redundant messages from NETMAIL.

aim is to delete this redundant messages from NETMAIL.






Going on with message handling. The messages in the PERSONAL area contain

Going on with message handling. The messages in the PERSONAL area contain
lines like:

lines like:



*** ftoss: copied from R34.LINUX

*** ftoss: copied from R34.LINUX



(for instance) :-)

(for instance) :-)



I reply (just in the PERSONAL area) the message, and don't care for anything,

I reply (just in the PERSONAL area) the message, and don't care for anything,
_EXCEPT_ to not delete this line, which will serve later as a `witness' to

_EXCEPT_ to not delete this line, which will serve later as a `witness' to
allow the message be replied in the correct area.

allow the message be replied in the correct area.



Then, exporting the mail, I run the following script:

Then, exporting the mail, I run the following script:
                                      ,,,

                                      ,,,
                                     (o o)  File: ~/bin/mexport

                                     (o o)  File: ~/bin/mexport
---*reiss*------*schnippel*------oOO--(_)--OOo-------*knabber*-----*fetz*---

---*reiss*------*schnippel*------oOO--(_)--OOo-------*knabber*-----*fetz*---
#!/bin/sh

#!/bin/sh



USER_BIN_DIR=/home/fido/bin

USER_BIN_DIR=/home/fido/bin
LOCAL_BIN_DIR=/usr/local/bin

LOCAL_BIN_DIR=/usr/local/bin
# Name of personal area

# Name of personal area
PERSAREA=PERSONAL

PERSAREA=PERSONAL



# user name

# user name
USERNOM="Pablo Gomez"

USERNOM="Pablo Gomez"



# temp output file name

# temp output file name
OUTFILE=/tmp/persanswr

OUTFILE=/tmp/persanswr












# Extraction of the messages in the personal area which are due for process

# Extraction of the messages in the personal area which are due for process
# and which will then be marked as `sent'

# and which will then be marked as `sent'
#

#
futility tool "display" "attribute-se&&from+Pablo Gomez" $PERSAREA > $OUTFILE

futility tool "display" "attribute-se&&from+Pablo Gomez" $PERSAREA > $OUTFILE
futility tool "+se" "attribute-se&&from+Pablo Gomez" $PERSAREA

futility tool "+se" "attribute-se&&from+Pablo Gomez" $PERSAREA



# distribution to the new areas...

# distribution to the new areas...
awk -f $USER_BIN_DIR/persreply.awk < $OUTFILE

awk -f $USER_BIN_DIR/persreply.awk < $OUTFILE



# scan the message base

# scan the message base
#

#
$LOCAL_BIN_DIR/fscan

$LOCAL_BIN_DIR/fscan
---*reiss*------*schnippel*--------------------------*knabber*-----*fetz*---

---*reiss*------*schnippel*--------------------------*knabber*-----*fetz*---



And the `awk' line included in the file persreply.awk reads:

And the `awk' line included in the file persreply.awk reads:



                                      ,,,

                                      ,,,
                                     (o o)  File: ~/bin/persreply.awk

                                     (o o)  File: ~/bin/persreply.awk
---*reiss*------*schnippel*------oOO--(_)--OOo-------*knabber*-----*fetz*---

---*reiss*------*schnippel*------oOO--(_)--OOo-------*knabber*-----*fetz*---



BEGIN   {

BEGIN   {
#

#
# Touch this if necessary

# Touch this if necessary
# ATTENTION: Watch also for instruction blocks marked with "####":

# ATTENTION: Watch also for instruction blocks marked with "####":
# these too will need adjustment.

# these too will need adjustment.
#

#
        outputfile="/tmp/tmpreply"

        outputfile="/tmp/tmpreply"
#

#
#

#
# down here I suppose only the blocks marked with `###' my need changes

# down here I suppose only the blocks marked with `###' my need changes
#

#
        borracmd=sprintf("rm -f %s", outputfile)

        borracmd=sprintf("rm -f %s", outputfile)
        replyarea=""

        replyarea=""
        estado=1

        estado=1
        system(borracmd)

        system(borracmd)
        }

        }



# It's only valid the first time found in each message.

# It's only valid the first time found in each message.
# Avoid copying, so it won't reach another system which is using the same

# Avoid copying, so it won't reach another system which is using the same
# system

# system
/\*\*\* ftoss: copied from /{

/\*\*\* ftoss: copied from /{
        if (estado==1) {

        if (estado==1) {
                viejoestado=2

                viejoestado=2
                estado=3

                estado=3
                replyarea=$NF

                replyarea=$NF
### Modify:

### Modify:



        print "*** pers_area: Copiado desde area PERSONAL" >> "/tmp/tmpreply"

        print "*** pers_area: Copiado desde area PERSONAL" >> "/tmp/tmpreply"
        }

        }
        }

        }



/^#To: / {

/^#To: / {
        user=""

        user=""
        for (n=2; n <= NF; n++)  {

        for (n=2; n <= NF; n++)  {
                user=sprintf("%s %s ",user,$n)

                user=sprintf("%s %s ",user,$n)
        }

        }
        }

        }
# Avoid writing the following lines:

# Avoid writing the following lines:
/^#Area: / {

/^#Area: / {
        viejoestado=estado

        viejoestado=estado
        estado=3

        estado=3
        }

        }



/^#@To: / {

/^#@To: / {
        viejoestado=estado

        viejoestado=estado
        estado=3

        estado=3
        }

        }









# always but in the before mentioned cases...

# always but in the before mentioned cases...
estado != 3{

estado != 3{
#####

#####
#

#
# ATTENTION!: Modify as above.

# ATTENTION!: Modify as above.
#  Sorry for the hack, but I couldn't make it work otherwise.

#  Sorry for the hack, but I couldn't make it work otherwise.
#

#
        print $0 >> "/tmp/tmpreply"

        print $0 >> "/tmp/tmpreply"
        }

        }
# Restore the previous state

# Restore the previous state
estado==3 { estado=viejoestado }

estado==3 { estado=viejoestado }






/^###MESSAGE_END###/{

/^###MESSAGE_END###/{
        if (estado==2) {

        if (estado==2) {
                close (outputfile)

                close (outputfile)
                comando=sprintf("cat %s | futility addmsg %s",outputfile,

                comando=sprintf("cat %s | futility addmsg %s",outputfile,
replyarea)

replyarea)
                system(comando)

                system(comando)
                system(borracmd)

                system(borracmd)
                estado=1

                estado=1
                replyarea=""

                replyarea=""
        }

        }
        }

        }



END     {

END     {
        system(borracmd)

        system(borracmd)
        }

        }
---*reiss*------*schnippel*--------------------------*knabber*-----*fetz*---

---*reiss*------*schnippel*--------------------------*knabber*-----*fetz*---



Be careful: there are cut off lines (visibly), and there is a double hack

Be careful: there are cut off lines (visibly), and there is a double hack
which I wasn't able to resolve better. Instead of defining all of the above

which I wasn't able to resolve better. Instead of defining all of the above
variables, there is one, `outputfile' which I had to redefine half way of

variables, there is one, `outputfile' which I had to redefine half way of
the script as a constant, because I didn't know how to do it better. I tried

the script as a constant, because I didn't know how to do it better. I tried
to pass the variable quoted in different styles, but I couldn't achieve it.

to pass the variable quoted in different styles, but I couldn't achieve it.
Maybe one of you could give me a hint.

Maybe one of you could give me a hint.



This was tested with several simultaneous messages, but I think I never

This was tested with several simultaneous messages, but I think I never
failed to destroy the line with ***ftoss...

failed to destroy the line with ***ftoss...



Regards until the next time. I hope you'll find it useful. I'll be pleased

Regards until the next time. I hope you'll find it useful. I'll be pleased
to get comments, improvements, etc.

to get comments, improvements, etc.






Bye,

Bye,
Pablo GOMEZ

Pablo GOMEZ
[email protected]

[email protected]



--- FEddi 0.9pl5 via BinkleyTerm

--- FEddi 0.9pl5 via BinkleyTerm
 * Origin: Puntomatico Remoto. Linux en Hoyo de Manzanares (2:341/43.40)

 * Origin: Puntomatico Remoto. Linux en Hoyo de Manzanares (2:341/43.40)

5.6 A few `tricks' for those that don't agree with RTFM.

5.6 A few `tricks' for those that don't agree with RTFM.

Replying mail.

Replying mail.

``Navigating'' around the message base.

``Navigating'' around the message base.

File operations

File operations

5.7 Grouping by tens Binkley's appearance:

5.7 Grouping by tens Binkley's appearance:



Previous Previous Next Next Table of Contents Table of Contents