Re: [Evolution] Nit Pic -- Saving Sent messages in separate folders? - [NOT SOLVED]



Thanks David;

I am CC-ing this reply to the Evolution list in case someone else finds
it useful as well.  Pardon the top post but I wanted to keep the thread
intact for others.

Today is used up and I am tired.  Tomorrow morning I will give your
suggestions a try.  They look like what I want.  And if not exactly,
they certainly point me in the right direction; building Bash scripts
rather than trying something internal to Evolution which for me would be
a steep learning curve.

On Wed, 2006-09-08 at 16:24 -0400, David Winick wrote:
My apologies for contacting you directly, but I saw your post, and am
having difficulties getting Gmane to allow me a reply, today.

What are you using to identify and move your incoming email into your '3
personal sub-folders'?  If they are separate email accounts, then your
should be able to filter outgoing on 'Sender is ...' (i.e., the 'From'
header).  If, on the other hand, you are maintaining address books or
contact lists already, then perhaps we can create a workaround via
evolution-addressbook-export.

I will assume, here, (since you asked about it in a previous post) that
you maintain a separate address book of members for each list you
belong.  For each book, you can generate a list of member email
addresses with the following script:

        #!/bin/bash
        #
        EXPORTER=/usr/libexec/evolution/2.6/evolution-addressbook-export
        # Find URI of address book named 'Personal'
        PERSONAL=`$EXPORTER -l | awk -F',' '/"Personal"/ { print $1 }' | sed -e "s/\"//g" `
        # Build a single file of email addresses from this address book into my home directory
        $EXPORTER $PERSONAL | awk -F: '/^EMAIL;TYPE=/ { print $NF }' 
$HOME/evolution-personal-contacts.lst
        
You can add additional export lines for each of your books; or we can
simplify this. to just export all of them.  Call this script whenever
the lists change.  I use a script similar to this, which runs whenever I
log in (I call it as a Startup Program in my Gnome session).

Next you need a script which will be called by Evo, in order to identify
whether your recipient is in this (these) list(s):

        #!/bin/bash
        egrep \
                `cat | egrep ^To: $1 | cut -d: -f2 | sed -e 's/[<>]/\n/g' | egrep @` 
~/evolution-personal-contacts.lst \
                2>&1 >> /dev/null
        exit $?

From here, it is a simple matter of creating an outgoing filter, in
which the criteria is 'Pipe to program' 'returns' '0'.  Thus, one filter
for each book, not one for each member.


 - cheers,
dave.
--
gpg fingerprint = B1ED F8CC 8BFE 2A85 E138  8569 9033 D582 BF59 83FC
-- 
Regards Bill




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]