Re: OT: storing new data entities

2009-03-06 Thread Robin Anson
This is OT for TBBETA, so I have copied it to TBUDL and TBOT too.

On Wed, 4 Mar 2009 at 11:21:47 +0100, Volker wrote:
 I have found that it's relatively easy to set up macros to use the
 Memo field to hold all sorts of useful information like that.
 
 Hey, that sounds good to me! :-)
 
 For instance I use the following structure in a Memo field:
 
akaJoe/aka
closingKind regards/closing
closingnameJack Black/closingname
receiptsread delivery/receipts
ccjsm...@yahoo.com/cc
bcctrevor.tur...@company.com.au/bcc
 
 How would such a macro look like? – Thanks in advance.

As Miguel suggested, it relies on regex. So perhaps relatively easy
depends upon your desire to play around with regex!

The basic macro is very similar to the one that Maurice showed in
mid:1974229872.20090304125...@hypercube.demon.nl

The macro I use to extract the information from the memo field is

 [ Macro: Get_Memo_Attribute ] 
%Rem='

Usage:
   attribute value=%QInclude(Get_Memo_Attribute,Tag,Default_Value)

This will return the value from a line in the address book memo field
that looks like this:
   tagvalue/tag

Or the Default_Value if no such line exists

'%-
%If:'%SetPattRegExp=(?im)^%_1%RegExpMatch=%ABToMemo'='':'%_2'%-
:'%If:+%SetPattRegExp=(?im)^(%_1/)%RegExpMatch=%ABToMemo+++:++%-
:+%SetPattRegExp=(?im)^(?:%_1)(.*?)(?:/%_1)%RegExpMatch=%ABToMemo+'%-
 [ End Macro ]

I use this in a set of more complex macros that specify what information to
retrieve (by identifying the tag) and, if necessary, identifying a default
value so that I can deal with the case of no value being set.

The main complexity is that I have created macros that cater for a list of
multiple recipients. The macros will parse the list of recipients and
extract the attribute from each recipient's memo field and then take action
depending upon how many recipients have a value in the attribute, how many
different values there are, etc.

For instance, if one of the multiple recipients has a read or delivery
receipt set, it is applied to the message using this macro which recursively
processes each address in the recipient list.

 [ Macro: SetReceipts ] 
%REM=^%-

Set read or delivery receipt notification flags if the
recipient's addressbook memo entry contains an attribute with the tag
receipts with the value read or delivery respectively

^%-
%-
%REM=%-
%_SR_Text stores the original list of recipients
%_SR_Temp stores the list of recipients yet to be processed
%_RR_Flag is set to 1 if read receipt required
%_DR_Flag is set to 1 if delivery receipt required
%-
%-
%If:#%_SR_FirstTime#=##%-
:#%-
%_SR_FirstTime=No%-
%_SR_Text=%ToList%-
%_SR_Temp=%_SR_Text%-
%_RR_Flag=no%-
%_DR_Flag=no%-
%QInclude(SetReceipts)#%-
:#%-
%-
%REM=*** Parse the Recipient List ***%-
%-
%If:'%setpattregexp=@%-
%regexpmatch=%_SR_Temp'''%-
:'%setpattregexp=(?i)^((?:.*?)@(?:.*?))(?:,|;)\s*(.*)?%-
%regexpblindmatch=%_SR_Temp,%-
%SetHeader(+To+,+%subpatt=1+)%-
%_SR_Temp=+%Subpatt=2+%-
%-
%-
%REM= *** Get the receipt attribute *** %-
%-
%_MemoAttribute=+%QInclude(Get_Memo_Attribute,receipts,)+%-
%_RR_Flag=%If:+%SetPattRegExp=(?im).*Read%RegExpMatch=%_MemoAttribute+++:+yes+:+%_RR_Flag+%-
%_DR_Flag=%If:+%SetPattRegExp=(?im).*Delivery%RegExpMatch=%_MemoAttribute+++:+yes+:+%_DR_Flag+%-
%QInclude(SetReceipts)'%-
:'%-
%If:%_RR_Flag=yes:%ReadConfirm:%NoReadConfirm%-
%If:%_DR_Flag=yes:%RcptConfirm:%NoRcptConfirm%-
%SetHeader(To,%_SR_Text)#%-
 [ End Macro ]

Other macros I use set the name(s) in the greeting at the top  of  the
message, choose the sig used at the end of the message, allow me to
automatically add CC or BCC addresses, etc
-- 
Robin

Using The Bat! v4.1.11
  Windows XP 5.1 Build 2600 Service Pack 3
  Popfile v0.22.4



Current version is 4.1.11 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Re: Sorting by thread activity

2009-03-06 Thread MFPA
Hi

On Wednesday 4 March 2009 at 5:02:13 PM, in
mid:328522671.20090304170...@winchmore.com, Nick Dutton wrote:



 I guess this is just a limitation of virtual folders?

Dunno. I rarely use them - never really explored them as incoming
filters and real folders do what I want.


 Along with going stale

Even with auto refresh selected?



-- 
Best regards,
 
MFPA

Yellow snow is not lemon flavoured

Using The Bat! v4.0.38 on Windows XP 5.1 Build 2600  



Current version is 4.1.11 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Bat and Gmail

2009-03-06 Thread Kitty
Still hoping someone has any answers on the below.  Things have only gotten
worse.  Now when I move things in TBUDL to the IMAP folder for Gmail, it
looks like it is in the IMAP folder but it isn't actually loaded onto the
gmail server so isn't there when I go into gmail.  For instance a folder
that I moved 4000 messages into had only 600 actually go to the gmail
server.  Yes, I was selecting to connect to the gmail server.

Prior message:

I am currently using TB 4.0.24.  I also have a gmail account which I have
set to IMAP.  I have a large archive of messages in TB that I would like to
get on the gmail server.  I hope that there is a more efficient way to do it
than I am doing.  Let me start off by saying that I know virtually nothing
about IMAP.

The procedure I followed was to set up my GMAIL account in TB as an IMAP
account.  It has folders in it, of course, that correspond to my GMAIL
labels.  I have many thousands of emails in TB that I want to put into my
GMAIL account.  This is what I am doing.  Let's say I have a TB folder
called X which has 5000 emails in it.  (Some folders have less, some have up
to 50,000 emails).  I have created a GMAIL label called X which in TB showns
as folder under my Gmail account called X.  I start up TB.  I do not have
the GMAIL account set up to syncronize. (I don't really care if what is in
my gmail account is in TB...I mostly just want to get my TB archive into
Gmail).

I go to my X folder in TB and select a group of emails (or all of them) and
drag them to the X folder under the Gmail.  Sometimes, this works fine and
in short order the messages are in the Gmail account.  Other times nothing
happens.  Sometimes I can get it going by clicking on the Gmail account in
TB and saying Connect to Server.  Other times I do that and nothing
happens.  Regardless, it seems to move 50 to 200 messages and then quits.
Sometimes if I close TB and restart it then it will start moving messages
again.  For example I have spent this entire day trying to move 11000
messages from one folder in TB to the Gmail folder.  I have succeeded in
moving 4500.  Given that I have about several hundred thousand messages this
is way too slow.

Anyway to speed this up?

Current version is 4.1.11 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html