Re[2]: Adding text to subject line - NOT solved

2004-03-31 Thread P.Johnson
Hi Gerard,
On Wednesday, March 31, 2004, 2:09 PM, [EMAIL PROTECTED] wrote:
 G> ON Tuesday, March 30, 2004, 11:29:16 PM, you wrote:
PJ>> (Though messages from [EMAIL PROTECTED] are not filtered into
PJ>> the correct folder, for some reason. Very simple filter: just the
PJ>> email address as the filter string (sender); the folder
PJ>> specified. Doesn't budge though. Sigh.)

G>...
G>G> If you have a problem with a filter go to the Filter list press Ctrl-C and
G> copy it in an e-mail with Ctrl-V
G> Then we can all have a look at this problem.

Here's the copied filter:

BeginFilter
Name: From Bill Smith
Active: 1
Source: \\patj\Inbox
Target: \\tomjones\Inbox
CopyFolder: none
MainSet: [EMAIL PROTECTED]
Actions: 
AddGroups: 
DelGroups: 
ForwardTemplate: 
ConfirmTemplate: 
ReplyTemplate: 
FwdAddr: 
RedirectAddr: 
NewAddr: 
NewTemplate: 
ExtCmd: 
ExtFile: 
ExtractDir: 
ColourGroup: 
AddAddrItems: 
DelAddrItems: 
HotKey: 0
IsOfColour: 
SizeBigger: 0
SizeSmaller: 0
AgeOlder: 0
AgeNewer: 0
InAddrPos: 0
OutAddrPos: 0
InAddrGroups: 
NoAddrGroups: 
KillFile: 
KillMethod: 0
SaveTemplate: 
SndFile: 
SysSound: 0
SoundTime: 0:00-0:00
AllowTime: 0:00-0:00
EndFilter

I've deleted and redone the filter a couple of times too. It's
currently at the bottom of a list of incoming filters, but I've
moved it up with no difference. Any help greatly appreciated!


-- 

Pat

A Canadian in Houston
Using The Bat! v2.04.7 on Windows XP 5.1 Build 2600 Service Pack 1




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


Re[2]: Adding text to subject line - solved

2004-03-30 Thread P.Johnson
Robin,
On Monday, March 29, 2004, 12:21 PM, [EMAIL PROTECTED] wrote:
RA> On Tue 30 March 2004, 9:21:05 +1000, P.Johnson wrote:
>>...
>> ...Not sure what the #%- signifies (in the first line of the
>> template)?

RA> The # is a delimiter, everything between the first and second instances of
RA> # are what happens if the from address is [EMAIL PROTECTED]

RA> The %- is a line continuation marker that has the effect of preventing a
RA> newline appearing in the output of the template.

Thanks for letting me know. This info opens up a whole new world
of possibilities for macros, which have always been something of
a mystery to me. :-)

-- 

Pat

A Canadian in Houston
Using The Bat! v2.04.7 on Windows XP 5.1 Build 2600 Service Pack 1




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


Re[2]: Adding text to subject line

2004-03-29 Thread P.Johnson
Hi Martin,
On Sunday, March 28, 2004, 12:26 PM, [EMAIL PROTECTED] wrote:

MW> On 28 March 2004, 13:00 -0600 (20:00 local time) P.Johnson [PJ] in
MW> mid:[EMAIL PROTECTED] wrote:

PJ>> Is it possible to add text to a Subject Line when forwarding
PJ>> the message, using a QT or filter?
PJ>>...
MW> %SUBJECT="FWD from %FROMNAME: %OSUBJ"%-

MW> I should have added that you can add this to your address book template
MW> for the recipient.

I didn't explain it very well; anyway the recipient field won't
work for me in this instance. So I made a folder template which
isn't working. :-) The subject macro works, but I am not getting
the text. I copied the template in my reply to shinE!, if you are
interested.

TB! makes us very lazy, I think. I now expect to do tasks that
should reasonably take several key strokes, with no strokes at
all. What a program!

Thanks Martin.

-- 

Pat

A Canadian in Houston
Using The Bat! v2.04.7 on Windows XP 5.1 Build 2600 Service Pack 1




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


Re[2]: Adding text to subject line

2004-03-29 Thread P.Johnson
Hello shinE!
On Sunday, March 28, 2004, 12:16 PM, [EMAIL PROTECTED] wrote:
dh> on Sun, 28. Mar 2004 at 13:00:24 -0600 P.Johnson wrote:
>> Is it possible to add text to a Subject Line when forwarding
>> the message, using a QT or filter?
dh> of course.. :)
dh> ...
dh> Because of that I would suggest that you extend your existing general
dh> forward template by checking for the recipient where you want this to
dh> be applied and do it then:

dh> %IF:'%TOADDR'='[EMAIL PROTECTED]':#%-
dh> %ModifyOnce(Subject)%-
dh> %Subject="FWD: %OSubj (From Bill Smith)"#%-

dh> %ModifyOnce(Subject) will ensure, that the Subject is only changed
dh> once by the QT (not again, when you edit the header fields, without
dh> having changed the body before).

Brilliant-- and I think I can use this to work for me! Because it
isn't a special recipient in the sense you mean I only used the
"modify subject" part of your macro. I created a folder for
sender's messages, then did a folder "forward" template. I
believe there are pitfalls with folder templates; here's what
happened this time: When I click Forward when in this folder, the
subject line and to: fields are correct, but the message field is
blank.

%Cursor%TO="[EMAIL PROTECTED]"
%ModifyOnce(Subject)%-
%Subject="FWD: (From Bill Smith) %OSubj"#%-
This is a forwarded message.

From: %OFromName <%OFromAddr>
To: %OToList
Date: %ODateEn, %OTimeLongEn
Subject: %OSubj

===Original message text===
%Text
End of original message text===

...Any ideas?

I'm intrigued by the "%IF" part of the macro. Must be a lot of
possibilities there.

Thanks very much!

-- 

Pat

A Canadian in Houston
Using The Bat! v2.04.7 on Windows XP 5.1 Build 2600 Service Pack 1




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