Delete "original message" before receiving

2005-11-16 Thread Britt Malka
Wednesday, November 16, 2005
 
Hi TBTECH,

A long time ago I've written about this subject. Then I was told that
it was a "know bug" that I couldn't use %ACCOUNTNAME in the filter.

Is this still a bug?

My filter line should be like this (if it worked):

C:\Programmer\The Bat!\thebat.exe 
/IMPORTF="\\%ACCOUNTNAME\%FOLDERNAME";FILE="C:\temp\fake.txt";DELETE

-- 

Kind regards,

Britt Malka

 |\/|
 | \__/ | 
 \/\/ 
 |  | 
  \\  //  
   \  /   
\/

... I'll be right back

... www.malka.it - www.malka.dk - www.supermalka.dk ...




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-11-02 Thread Britt Malka
Hi Alexander,
 
Tuesday, November 2, 2004 at 6:57:31 PM you wrote:

> better solution (probably) will be

> \-+(\s+)?Oprindelig meddelelse(\s+)?\-+\s

Thank you. I changed it, but still have the problems mentioned in my
letter mid:[EMAIL PROTECTED]


-- 

Kind regards,

Britt Malka

 |\/|
 | \__/ | 
 \/\/ 
 |  | 
  \\  //  
   \  /   
\/


... -I think I have a broken rib. -From giving me oral pleasure?

... www.malka.it - www.malka.dk - www.supermalka.dk ...




http://www.silverstones.com/thebat/TBUDLInfo.html


Re[2]: Delete "original message" before receiving

2004-11-02 Thread Alexander Leschinsky
Hello Britt,

   On Mon, 1 Nov 2004 15:37:32 +0100 (01.11.2004 19:37 my local time),
   received Tuesday, November 2, 2004 at 19:23:14 +0500,
   you wrote about "Delete "original message" before receiving"
   at least in part:

BM> This works for most messages, but not for this
-Oprindelig meddelelse-

doesn't match part of original RE

-+\s*Oprindelig meddelelse

better solution (probably) will be

\-+(\s+)?Oprindelig meddelelse(\s+)?\-+\s

-- 
Best regards,
 Alexander





http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-11-01 Thread Britt Malka
Hi Zygmunt,
 
Sunday, October 31, 2004 at 7:20:52 PM you wrote:

> You can use alternatives in regular expression, like this:

> (?ism)(.*)^(-+\s*Original Message\s*-+.*|-+\s*Oprindelig
> meddelelse-+\s*.*)

This works for most messages, but not for this:

Can you see why?

::

Hej Anette



Med venlig hilsen
Mette Schmidt-Kallesøe
Statsaut. translatør og tolk - engelsk
__

  schmidtkallesøe
 

 Vagtelvænget 109
 2980 Kokkedal

* Kontor:  +45 4918 1848
* Fax:   +45 4918 0648
* Mobil:+45 2898 
*   [EMAIL PROTECTED]

  <> 
 


-Oprindelig meddelelse-
Fra: Anette Nielsen [mailto:[EMAIL PROTECTED] 
Sendt: 23. oktober 2004 15:51
Til: Mette Schmidt-Kallesøe; Britt Malka; Hanne Wick;
Emne: Re: VS: SV: Ny sproggruppe



And several other "original messages" in the same mail.


-- 

Kind regards,

Britt Malka

... Oh, I'm sorry. Did I break your concentration?

... www.malka.it - www.malka.dk - www.supermalka.dk ...




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-11-01 Thread Britt Malka
Hi Zygmunt,
 
Monday, November 1, 2004 at 3:21:10 PM you wrote:

> Yes, common filters are working here, and I checked my filter as common one.

Brilliant!

> However, you should remember that all imported messages will be actually
> imported into Inbox of main account, not to particular one.

Yes, that is the problem.

-- 

Kind regards,

Britt Malka

 |\/|
 | \__/ | 
 \/\/ 
 |  | 
  \\  //  
   \  /   
\/


... Your flattering remarks are both desperate and obvious.

... www.malka.it - www.malka.dk - www.supermalka.dk ...




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-11-01 Thread Zygmunt Wereszczynski
On Monday, November 1, 2004, at 15:08:48 [UTC+0100] (Monday, November 1,
2004 15:08 my local time) Britt Malka wrote:

>> I'm not absolutely sure about the result of an account specific
>> macro in a common filter. (I guess you intend to use it as such.)

> Yes, I do.

> Is it possible to make a common filter now in version 3? This would be
> a great improvement. Actually I thought of copying the filter to all
> of my accounts.

Yes, common filters are working here, and I checked my filter as common one.
However, you should remember that all imported messages will be actually
imported into Inbox of main account, not to particular one.

-- 
Best regards,
Zygmunt Wereszczynski
(Using The Bat! v3.0.2.4 Rush on Windows 2000 5.0 Build 2195 Service Pack 4
with BayesIt! 0.7.4)




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-11-01 Thread Britt Malka
Hi Roelof,
 
Monday, November 1, 2004 at 1:01:33 PM you wrote:

> C:\Program Files\The Bat!\thebat.exe
> /IMPORTU="%Accountname";F=Inbox;X;FILE="C:\Temp\export.msg";DELETE

> Set the export file to be overwritten.

I did so -- and logically this should be working, so why doesn't it?

The MsgImport.bat is exactly like the line I used to import the
message with.

> Note that I didn't try this. Would look rather silly in my one
> account setup. 

;-)

> I'm not absolutely sure about the result of an account specific
> macro in a common filter. (I guess you intend to use it as such.)

Yes, I do.

Is it possible to make a common filter now in version 3? This would be
a great improvement. Actually I thought of copying the filter to all
of my accounts.

-- 

Kind regards,

Britt Malka

... Don't ever say: I'll be right back - cause you wont!

Using The Bat! v3.0.1.33 on Windows XP 5.1 Build  2600




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-11-01 Thread Roelof Otten
Hallo Britt,

On Mon, 1 Nov 2004 12:13:19 +0100GMT (1-11-2004, 12:13 +0100, where I
live), you wrote:

BM> I have more than 20 accounts, so I cannot just use import to Inbox,
BM> but have to add the accountname as well.

BM> This I do with e.g. [EMAIL PROTECTED] but when I need to copy
BM> the filter, I have to change each and every one of them.

BM> I tried with \\%ACCOUNTNAME and \\%ACCOUNTDIR and even \\ACCOUNTNAME,
BM> but neither worked.

Known bug.

Try this:
Create a third export action, that writes a template to a
MsgImport.bat somewhere on disk, use this as template:

C:\Program Files\The Bat!\thebat.exe 
/IMPORTU="%Accountname";F=Inbox;X;FILE="C:\Temp\export.msg";DELETE

Set the export file to be overwritten.

And set your external action to run the MsgImport.bat

Note that I didn't try this. Would look rather silly in my one account
setup.  I'm not absolutely sure about the result of an account
specific macro in a common filter. (I guess you intend to use it as
such.)

-- 
Groetjes, Roelof

Veni, Vidi, Vestibule ( I came, I saw, I hid in the closet )

The Bat! 3.0.2.4 Rush
Windows XP 5.1 Build 2600 Service Pack 2
1 pop3 account, server on LAN



http://www.silverstones.com/thebat/TBUDLInfo.html

Re: Delete "original message" before receiving

2004-11-01 Thread Britt Malka
Hi Zygmunt,
 
Sunday, October 31, 2004 at 7:20:52 PM you wrote:


> I re-worked my filter to be more universal and attached it to this
> message to avoid wrapping of long lines.

Wow, thanks! This works perfectly!

Now I only have one more wish, but I guess it is not possible.

I have more than 20 accounts, so I cannot just use import to Inbox,
but have to add the accountname as well.

This I do with e.g. [EMAIL PROTECTED] but when I need to copy
the filter, I have to change each and every one of them.

I tried with \\%ACCOUNTNAME and \\%ACCOUNTDIR and even \\ACCOUNTNAME,
but neither worked.

Is it possible to use a shortcut here?

-- 

Kind regards,

Britt Malka

 |\/|
 | \__/ | 
 \/\/ 
 |  | 
  \\  //  
   \  /   
\/


... Nobody is gonna kiss this sweet prince goodnight!

... www.malka.it - www.malka.dk - www.supermalka.dk ...




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-10-31 Thread Zygmunt Wereszczynski
On Sunday, October 31, 2004, at 18:38:18 [UTC+0100] (Sunday, October 31,
2004 18:38 my local time) Britt Malka wrote:

>> %SetPattRegExp="(?ism)(.*)^- Original Message
>> -.*"%RegexpMatch(%Text)

> This works, but how do I add more or less "-" and the Danish
> translations too?

You can use alternatives in regular expression, like this:

(?ism)(.*)^(-+\s*Original Message\s*-+.*|-+\s*Oprindelig meddelelse-+\s*.*)

I re-worked my filter to be more universal and attached it to this message
to avoid wrapping of long lines. Open attachment in Notepad (or another text
editor), Copy the filter and paste it into Read Message filters. It uses
Ctrl+F11 to trigger. See also on filter criteria. I used two alternatives
there, but it may be changed accordingly to your needs (for example single
"@" character presence in Sender may be sufficient).

Filter first export message in Unix format to file "C:\Temp\Unix_Msg.txt",
then export modified message to file "C:\Temp\export.msg", and then import
such modified message from file "C:\Temp\export.msg" using Unix format. It
seems a bit complicated, but due to such double conversion all kind of
messages can be processed. Finally, the file "C:\Temp\export.msg" is deleted
and original non-modified message is moved to Trash.

In attached text file you can find a replacement for %Quotes macro in your
reply template. This quotes only text without MS add-ons.

Attachments:
  [1] Remove_Original_MSG.txt

-- 
Best regards,
Zygmunt Wereszczynski
(Using The Bat! v3.0.2.4 Rush on Windows 2000 5.0 Build 2195 Service Pack 4
with BayesIt! 0.7.4) TB! Message Filter 
beginFilter
UID: [46366FC0.01C4BF72.0ED72447.1B28D568]
Name: Remove_Original_MSG
Filter: 
{\0D\0A\20`4`0`-\20Original\20Message\0D\0A1`4`0`-Oprindelig\20meddelelse\0D\0A}
MoveMessage folder \5C\5C\5CTrash
ExportMessage OverwriteExist FmtUnix filename C:\5CTemp\5CUnix_Msg.txt
ExportMessage OverwriteExist FmtText filename C:\5CTemp\5Cexport.msg template 
%_OldMsg(%Put\3D\22C:\5CTemp\5CUnix_Msg.txt\22)%-\0D\0A%SetPattRegExp\3D\22(?ism)(.*)^(-+\5Cs*Original\20Message\5Cs*-+.*|-+\5Cs*Oprindelig\20meddelelse-+\5Cs*.*)\22%RegexpMatch(%_OldMsg)\0D\0A
RunExternal Wait CmdLine 
C:\5CProgram\20Files\5CThe\20Bat!\5Cthebat.exe\20/IMPORTF\3DInbox;X;FILE\3D\22C:\5CTemp\5Cexport.msg\22;DELETE
IsManual
IsActive
IsHotkey
IsCheckRule
IsHotkeyOnly
Ignore
endFilter



This is replacement for %Qutes macro in reply template:

%Quotes='%SetPattRegExp="(?ism)(.*)^(-+\s*Original Message\s*-+.*|-+\s*Oprindelig 
meddelelse-+\s*.*)"%RegexpMatch(%Text)'%-


http://www.silverstones.com/thebat/TBUDLInfo.html

Re: Delete "original message" before receiving

2004-10-31 Thread Britt Malka
Hi Zygmunt,

Thursday, October 21, 2004 at 9:54:22 PM you wrote:

> %Headers%-
> %SetPattRegExp="(?ism)(.*)^- Original Message
> -.*"%RegexpMatch(%Text)

This works, but how do I add more or less "-" and the Danish
translations too?

-- 

Kind regards,

Britt Malka

 |\/|
 | \__/ | 
 \/\/ 
 |  | 
  \\  //  
   \  /   
\/


... "A narcissist is someone better looking than you are." - Gore Vidal 

... www.malka.it - www.malka.dk - www.supermalka.dk ...




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-10-31 Thread Britt Malka
Hi Britt,
 
Sunday, October 31, 2004 at 4:20:09 PM you wrote:

> But it gives me two versions. One without "original message" but with
> quotes, and one that seems to be not imported, but is just like the
> original message.

I added "delete the message", so now I only get one version.

-- 

Kind regards,

Britt Malka

 |\/|
 | \__/ | 
 \/\/ 
 |  | 
  \\  //  
   \  /   
\/


... "If you don't have enemies, you don't have character." - Paul Newman

... www.malka.it - www.malka.dk - www.supermalka.dk ...




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-10-31 Thread Britt Malka
Hi Gerard,
 
Friday, October 22, 2004 at 10:55:30 AM you wrote:

> I do not mind that much because the threading doesn't seem to work that wel
> and ir makes it difficult to lookup msg's every know and then.

Yes. In our country there is a problem with threading, because M$ uses
SV: in stead of Re: in replys.

> What I do hate is when I send someone an attachment and they reply with
> the same attachments still attached :-(

I hate that too :-(

> I asume this is a ploy from the storage boys together with M$

Exactly!

> Fortunately my cutmark trims all the reply msg's down to a reasonable size.

Mine too, but this is only in the replys.

-- 

Kind regards,

Britt Malka

 |\/|
 | \__/ | 
 \/\/ 
 |  | 
  \\  //  
   \  /   
\/


... Don't ever say: I'll be right back - cause you wont!

... www.malka.it - www.malka.dk - www.supermalka.dk ...




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-10-31 Thread Britt Malka
Hi Zygmunt,

Thank you for your efforts. As you can see in my reply to Alexey, I
have been burried in work and have not had the time to try this out.
 
Thursday, October 21, 2004 at 9:54:22 PM you wrote:

> Then this filter imports changed message from text file and deletes
> original one, together with this file. As a result you will have
> only pure original reply without MS add-ons.

This is heaven :-)

> The template used to export message to file "D:\export.txt" has
> following
> simple form:
> 
> %Headers%-
> %SetPattRegExp="(?ism)(.*)^- Original Message
> -.*"%RegexpMatch(%Text)

Yes, but I have the problem that the Danish M$-products use a Danish
way of saying "original message", so I have to filter them out also.

In quotes, I use this:

%quotes="%SETPATTREGEXP=""(?is)(-+\s*Oprindelig 
meddelelse.*~-~>.*-*_->$\s+|-+\s*Original Message.*~-~>.*-*_->$\s+)%-
{0,1}(-+\s*Oprindelig meddelelse.*?\n|-+\s*Original Message.*?\n(Hash:.*?\n)?\s*)?%-
(.*?)(-+\s*Oprindelig meddelelse|-+\s*Original 
Message|\z)""%REGEXPBLINDMATCH=""%text""%SUBPATT=""4"""

This works, but puts the new letter in quotes :-(

> Command line used to import text as a message is following:
> 
> C:\Program Files\The Bat!\thebat.exe
> /IMPORTF=\\Account\Inbox;FILE="D:\export.txt";DELETE

So why doesn't mine work? I did just that ...



-- 

Kind regards,

Britt Malka

 |\/|
 | \__/ | 
 \/\/ 
 |  | 
  \\  //  
   \  /   
\/


... Don't ever say: I'll be right back - cause you wont!

... www.malka.it - www.malka.dk - www.supermalka.dk ...




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-10-31 Thread Britt Malka
Hi Alexey,

Finally, I have finished a job that took all of my time and energy,
but now I can play with The Bat! again :-)

Thursday, October 21, 2004 at 8:14:10 AM you wrote:

> However, it is not so hard to set up it manually.

Thank you for the clear explanation.

I choose this way:

> b) the way I've described you below. Actually it makes the same as "create a
> formatted message", but makes it semi-automatic.

> 1. Add the action "Export the message", using format "plain text". Press
> "template" and write the template for exported message. The simpliest template
> which will just make a copy of your original message (well, not exact copy, but
> already encoded into your default codepage) is just placing the headers and the
> text of original message this way:

> %HEADERS

> %TEXT

I added some more to delete the "original message" part, but there is
a problem.

When I have this code, the message looks like the original message,
and does not remove "original message".

%text="%SETPATTREGEXP=""(?is)(-+\s*Oprindelig 
meddelelse.*~-~>.*-*_->$\s+|-+\s*Original Message.*~-~>.*-*_->$\s+)%-
{0,1}(-+\s*Oprindelig meddelelse.*?\n|-+\s*Original Message.*?\n(Hash:.*?\n)?\s*)?%-
(.*?)(-+\s*Oprindelig meddelelse|-+\s*Original 
Message|\z)""%REGEXPBLINDMATCH=""%text""%SUBPATT=""4"""

When I use this code, the "original message" i removed, but the text i
quoted.

%quotes="%SETPATTREGEXP=""(?is)(-+\s*Oprindelig 
meddelelse.*~-~>.*-*_->$\s+|-+\s*Original Message.*~-~>.*-*_->$\s+)%-
{0,1}(-+\s*Oprindelig meddelelse.*?\n|-+\s*Original Message.*?\n(Hash:.*?\n)?\s*)?%-
(.*?)(-+\s*Oprindelig meddelelse|-+\s*Original 
Message|\z)""%REGEXPBLINDMATCH=""%text""%SUBPATT=""4"""

I don't know how to solve this problem :-(

> As the file to export use any temporary name, for example, c:\temp\fake.txt.

So I did.

> 2. Add the action "Run external action" and specify the full path to Thebat.exe
> and command parameters which will cause The Bat! to import the letter from
> fake.txt, place it into appropriate folder, and make it unread (if necessary),
> for example:

> C:\Program Files\The Bat!\thebat.exe /IMPORTF="\\pup9\Inbox\TheBat";
> FILE="C:\temp\fake1.txt";DELETE

I have tried among other things this:
C:\Programmer\The Bat!\thebat.exe
/IMPORTF="[EMAIL PROTECTED]";FILE="C:\temp\fake.txt";DELETE
(all in one line)

But it gives me two versions. One without "original message" but with
quotes, and one that seems to be not imported, but is just like the
original message.

When I try fake1.txt, as you writes, it doesn't import the message.


-- 

Kind regards,

Britt Malka

 |\/|
 | \__/ | 
 \/\/ 
 |  | 
  \\  //  
   \  /   
\/


... It's 'fried rice', you Plick!

... www.malka.it - www.malka.dk - www.supermalka.dk ...




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-10-22 Thread Gerard

ON Thursday, October 21, 2004, 9:59:35 PM, you wrote:
BM> Yes, it is those annoying letters you receive with the reply on top
BM> and all the original message below.

BM> Like this:

Ooh, then I do know what you mean. I get a lot of those professionally.

I do not mind that much because the threading doesn't seem to work that wel
and ir makes it difficult to lookup msg's every know and then.
What I do hate is when I send someone an attachment and they reply with
the same attachments still attached :-(

I asume this is a ploy from the storage boys together with M$

Fortunately my cutmark trims all the reply msg's down to a reasonable size.


-- 
Best regards,
 Gerard 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
What a shame to waste those great shots on the practice tee.

Using The Bat! v3.0.1.33 on Windows XP 5.1 Build 2600 Service Pack 2




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-10-21 Thread Zygmunt Wereszczynski
On Thursday, October 21, 2004, at 21:59:35 [UTC+0200] (Thursday, October 21,
2004 21:59 my local time) Britt Malka wrote:

>> I don't seem to know what this is about.

> Lucky you :-)

But not me, because I know what you means :-)

As Alexey wrote, the best method will be a manually triggered filter of read
messages which exports message to text file (using template with macros that
cut all text after "-Oprindelig meddelelse-", inclusive). Then this
filter imports changed message from text file and deletes original one,
together with this file. As a result you will have only pure original reply
without MS add-ons.

The template used to export message to file "D:\export.txt" has following
simple form:

%Headers%-
%SetPattRegExp="(?ism)(.*)^- Original Message -.*"%RegexpMatch(%Text)

Command line used to import text as a message is following:

C:\Program Files\The Bat!\thebat.exe 
/IMPORTF=\\Account\Inbox;FILE="D:\export.txt";DELETE

Please note that message will be imported to "Inbox" folder of "Account"
from file "D:\export.txt" - you should change these parameters according to
your needs. The filter "Remove_Original_MSG" is attached as text to this
message to avoid long line breaks, so you can copy and paste it to your
Sorting Office. The filter checks if there is "- Original Message -"
phrase in message text, so please change this to "-Oprindelig meddelelse-"
or something else according to your language. You should also change this
phrase in export template. My filter is triggered by Ctrl+F11.

So, enjoy this!

-- 
Best regards,
Zygmunt Wereszczynski
(Using The Bat! v3.0.2.1 on Windows 2000 5.0 Build 2195 Service Pack 4
with BayesIt! 0.7.4) TB! Message Filter 
beginFilter
UID: [5E6A6B40.01C4B7AA.72334DF4.4ADF1BCB]
Name: Remove_Original_MSG
Filter: {\0D\0A\20`4`0`-\20Original\20Message\20-\0D\0A}
ExportMessage OverwriteExist FmtText filename D:\5Cexport.txt template 
%Headers%-\0D\0A%SetPattRegExp\3D\22(?ism)(.*)^-\20Original\20Message\20-.*\22%RegexpMatch(%Text)\0D\0A
RunExternal Wait CmdLine 
C:\5CProgram\20Files\5CThe\20Bat!\5Cthebat.exe\20/IMPORTF\3D\5C\5CAccount\5CInbox;FILE\3D\22D:\5Cexport.txt\22;DELETE
Delete
IsActive
IsHotkey
IsCheckRule
IsHotkeyOnly
Ignore
endFilter


http://www.silverstones.com/thebat/TBUDLInfo.html

Re: Delete "original message" before receiving

2004-10-21 Thread Britt Malka
Hej Gerard
21-10-2004, kl. 21:51 skrev du:

> I don't seem to know what this is about.

Lucky you :-)

> Can you exlain this please?

Yes, it is those annoying letters you receive with the reply on top
and all the original message below.

Like this:



Tak

Mvh. Louis
Hjemmeside: www.louis.dk 
Mail: [EMAIL PROTECTED] 
MSN: [EMAIL PROTECTED]

-Oprindelig meddelelse-
Fra: Britt Malka [mailto:[EMAIL PROTECTED] 
Sendt: 14. oktober 2004 13:50
Til: Louis Tim Larsen
Emne: Re: SV: TotalCommander

Hej Louis
14-10-2004, kl. 12:49 skrev du:

> Modtager jeg også cd?

Ja, du får programmet på en cd, og jeg går ud fra, at nøglen også er
derpå.



> I guess on the positive side I am not a Microslave :-)

Me neither :-)

-- 
Mange hilsner
Britt

... Mec j'suis pas un nouveau riche, moi j'suis un ex pauvre. -- Nuttea

---
Køb Stone's SummaSummarum gennem os
Private skal kun betale 19,6 % moms
Momsregistrede firmaer behøver ikke at betale momsen
http://www.malka.it/programs/summarum.html
---

... www.malka.it/home/britt/ ...

   




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-10-21 Thread Gerard

ON Tuesday, October 19, 2004, 8:40:48 AM, you wrote:
BM> I would so like to delete this annoying "original message" the
BM> Microslaves keeps sending me.

Hi Britt,
I don't seem to know what this is about. Can you exlain this please?

I guess on the positive side I am not a Microslave :-)

-- 
Best regards,
 Gerard 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
It Is Time To Quit When... When you call fore on a par three everyone runs
to the green for safety.

Using The Bat! v3.0.1.33 on Windows XP 5.1 Build 2600 Service Pack 2




http://www.silverstones.com/thebat/TBUDLInfo.html


Re[2]: Delete "original message" before receiving

2004-10-21 Thread Alexey N. Vinogradov
Hello, Britt.

You wrote 19.10.2004 @ 21:48  in 
  using mailer: The Bat! (v3.0.1.33) Professional

BM> I did, but I couldn't see all your reg.expr. in my filter.

BM> I selected everything, Ctrl+C, and then Paste in the sorting office.

May be this is because The Bat! wrapped the lines in the filter (actually, the
whole rule was represented by one long line).

However, it is not so hard to set up it manually.

Note, that it this method is not actually changed incoming letter, but simple
automatically creates the new one and simultaneously deletes the original
letter.

First, create a sorting rule for your mail. You can assign a filtering rules as
usually.

Then, you can use two ways:

a) In the actions add "Create a formatted message" - and make the new format
which will be applied to your incoming message. Also, add the action "Delete the
message". That's all!

b) the way I've described you below. Actually it makes the same as "create a
formatted message", but makes it semi-automatic.

1. Add the action "Export the message", using format "plain text". Press
"template" and write the template for exported message. The simpliest template
which will just make a copy of your original message (well, not exact copy, but
already encoded into your default codepage) is just placing the headers and the
text of original message this way:

%HEADERS

%TEXT

(you need to press Enter twice between %headers and %text since it is proper way
to divide headers and text in RFC format). Also you can make more complicated
actions, like filtering some part of the text instead of using the whole one, or
the actions which will re-format the whole text (for example, to make a HTML
message from the simple text version).

As the file to export use any temporary name, for example, c:\temp\fake.txt.

2. Add the action "Run external action" and specify the full path to Thebat.exe
and command parameters which will cause The Bat! to import the letter from
fake.txt, place it into appropriate folder, and make it unread (if necessary),
for example:

C:\Program Files\The Bat!\thebat.exe /IMPORTF="\\pup9\Inbox\TheBat";
FILE="C:\temp\fake1.txt";DELETE

(this is actually one big line). Exapmled version will import the file fake.txt
into Inbox\TheBat folder of pup9 mailbox, and then delete original received
letter.

Then, set the flag "wait for completion".

Since The Bat! watches if the only one copy of application is running in the
moment, this action will not cause the second copy of The Bat! to be loaded, but
simple pass the given command-line parameters to the existing copy (i.e, to
itself).

As the alternative way you can use the file "thebat.ipc" (see help for details),
but this file is checked only once per 10 seconds, so, the "virtual running" of
thebat.exe is more proper in the case of filtering. But using thebat.ipc may be
necessary if your program works in the mode "workstation with no TCP/IP", In
this case the server copy may prepare the letter inside of it, and then write
the signal for the "workstation" copy into thebat.ipc that the new letter was
received.




-- 
Sincerely, Alexey.
Using TB 3.0.1.33 on WinXP Pro SP2 (2600), spelling by ORFO2002 (CSAPI) 
..with Kaspersky Antivirus Plugin (ver 3.5 Gold) & antispam filter BayesIt! 0.7.4

   mailto:[EMAIL PROTECTED]




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-10-19 Thread Britt Malka
Hi Alexey,
 
Tuesday, October 19, 2004 at 12:34:58 PM you wrote:

> Tip: just create the sorting rule which will save the letter to file in RFC
> format and simultaneously filter it (using regexps, for example). In the same
> rule add an action to run external program - and the program will be The Bat!
> itself, with the command-line key to import just created letter and place it
> into a folder. Finally, set the flag to delete original received letter.

I tried your example but couldn't make it work out, but I am not sure
that I got everything copied allright.

> Example (just copy all including "beginFilter" and "endFilter" lines, and paste
> them into the sorting office):

I did, but I couldn't see all your reg.expr. in my filter.

I selected everything, Ctrl+C, and then Paste in the sorting office.

-- 

Kind regards,

Britt Malka

Using The Bat! v3.0.1.33 on Windows XP 5.1 Build  2600

 |\/|
 | \__/ | 
 \/\/ 
 |  | 
  \\  //  
   \  /   
\/


... Do I feel lucky? Well, do ya punk?

... www.malka.it - www.malka.dk - www.supermalka.dk ...




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-10-19 Thread Alexey N. Vinogradov
Hello, Britt.

You wrote 19.10.2004 @ 15:40  in 
  using mailer: The Bat! (v3.0.1.33) Professional

BM> Tuesday, October 19, 2004
BM> Hi tbtech,

BM> Is it possible to change e-mails with a filter when receiving them?

BM> I would so like to delete this annoying "original message" the
BM> Microslaves keeps sending me.

Yes, but it is quite tricky...

Tip: just create the sorting rule which will save the letter to file in RFC
format and simultaneously filter it (using regexps, for example). In the same
rule add an action to run external program - and the program will be The Bat!
itself, with the command-line key to import just created letter and place it
into a folder. Finally, set the flag to delete original received letter.

Example (just copy all including "beginFilter" and "endFilter" lines, and paste
them into the sorting office):

 TB! Message Filter 
beginFilter
UID: [FDB23990.01C4908E.33105155.23F1EEAE]
Name: Subscribe
Filter: {0\0D\0A0`0`0`Subscribe.Ru\20<[EMAIL 
PROTECTED]>\0D\0A1`0`0`comp.soft.others.bat\0D\0A0`0`0`4306048\0D\0A}
ExportMessage OverwriteExist FmtText filename 
C:\5CDocuments\20and\20Settings\5CAlexey\5CMy\20Documents\5CMy\20mail\5Cfake1.txt 
template 
%SETPATTREGEXP\3D\27(?ims-x)(.*?\5CnContent-Type:\5Cs?text/plain;\5Cs?charset\3D)\5C\22?koi8-r\5C\22?(.*?)\27%REGEXPBLINDMATCH\3D\22%HEADERS\22%SUBPATT\3D\271\27\22win-1251\22%SUBPATT\3D\272\27\0D\0A\0D\0A%SETPATTREGEXP\3D\22(?ims-x)(.*?)\5Cn\5C-\5C*\5C-+\5Cn?\22%REGEXPBLINDMATCH\3D\22%TEXT\22%SUBPATT\3D\221\22\0D\0A
RunExternal Wait CmdLine 
C:\5CProgram\20Files\5CThe\20Bat!\5Cthebat.exe\20/IMPORTF\3D\22\5C\5Cpup9\5CInbox\5CTheBat\22;FILE\3D\22C:\5CDocuments\20and\20Settings\5CAlexey\5CMy\20Documents\5CMy\20mail\5Cfake1.txt\22;DELETE
 folder \5C\5Cpup9\5CInbox
Delete
IsActive
IsSendQueue
endFilter

-- 
Sincerely, Alexey.
Using TB 3.0.1.33 on WinXP Pro SP2 (2600), spelling by ORFO2002 (CSAPI) 
..with Kaspersky Antivirus Plugin (ver 3.5 Gold) & antispam filter BayesIt! 0.7.4

   mailto:[EMAIL PROTECTED]




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-10-19 Thread Britt Malka
Hi Roelof,
 
Tuesday, October 19, 2004 at 10:44:35 AM you wrote:

BM>> Is it possible to change e-mails with a filter when receiving them?

> No.

:-(

Well, I guess I have to educate the people who send them, then.

-- 

Kind regards,

Britt Malka

 |\/|
 | \__/ | 
 \/\/ 
 |  | 
  \\  //  
   \  /   
\/


... "Wise men make proverbs, but fools repeat them." - Samuel Palmer

... www.malka.it - www.malka.dk - www.supermalka.dk ...




http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Delete "original message" before receiving

2004-10-19 Thread Roelof Otten
Hallo Britt,

On Tue, 19 Oct 2004 08:40:48 +0200GMT (19-10-2004, 8:40 +0200, where I
live), you wrote:

BM> Is it possible to change e-mails with a filter when receiving them?

No.

-- 
Groetjes, Roelof

I'm never difficult...Impossible maybe, difficult, never.

The Bat! 3.0.2.1
Windows XP 5.1 Build 2600 Service Pack 2
1 pop3 account, server on LAN



http://www.silverstones.com/thebat/TBUDLInfo.html

Delete "original message" before receiving

2004-10-19 Thread Britt Malka
Tuesday, October 19, 2004
Hi tbtech,

Is it possible to change e-mails with a filter when receiving them?

I would so like to delete this annoying "original message" the
Microslaves keeps sending me.

-- 

Kind regards,

Britt Malka

Using The Bat! v3.0.1.33 on Windows XP 5.1 Build  2600

 |\/|
 | \__/ | 
 \/\/ 
 |  | 
  \\  //  
   \  /   
\/


... Peer pressure, I'm far too sensitive.

... www.malka.it - www.malka.dk - www.supermalka.dk ...




http://www.silverstones.com/thebat/TBUDLInfo.html