Re: Writing attachments

2013-11-12 Thread Loek van Kooten
Hello Konrad,

 This template will remove illegal characters from %OSUBJ (if not all
 of them, then add more parenthesis to regexp, as I described above, or
 use XMP) and will truncate a length of %OSUBJ to 40 characters.

You, Sir, are a star! This macro is perfect. I couldn't get my head
around using RegExp for %OSUBJ, but the trick via Quick Templates
did it.

Thank you very much. You made my day!

Jack and MFPA... also thank you for your suggestions!

Loek van Kooten

-- 
Akebono Translation Service
Rijnstraat 32
2311 NK Leiden
The Netherlands
Tel: +31-87-8763636
Fax: +31-84-7390618
www.akebono.nl
 
Algemene voorwaarden: www.akebono.nl/algemeen.doc
Terms and conditions: www.akebono.nl/terms.doc
Chamber of Commerce reg. no.: 28066372



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


Re: Writing attachments

2013-11-11 Thread Loek van Kooten
Hello all,

 I have a filter defined that writes attachments to directory
 blablabla/%OSUBJ if certain messages from certain clients contain
 attachments. This works, except when %OSUBJ contains symbols that
 are not allowed in directory names, like : and '
 How do I filter these symbols? I'll need to put something around %OSUBJ, but 
 what?
 Also, I need to make sure the directory names do not become too
 long, so an instruction to truncate the directory name to say 50 characters 
 would be welcome.
 I can find the needed directory names also in the mails themselves, but
 SETPATTREGEXP etc. don't seem to work either.

No response at all? Have I finally found something that is just impossible
in TheBat!?

Best regards,

Loek van Kooten

-- 
Akebono Translation Service
Rijnstraat 32
2311 NK Leiden
The Netherlands
Tel: +31-87-8763636
Fax: +31-84-7390618
www.akebono.nl
 
Algemene voorwaarden: www.akebono.nl/algemeen.doc
Terms and conditions: www.akebono.nl/terms.doc
Chamber of Commerce reg. no.: 28066372



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


Writing attachments

2013-11-07 Thread Loek van Kooten
Hello all,

I have a filter defined that writes attachments to directory blablabla/%OSUBJ 
if certain messages from certain clients contain attachments. This works, 
except when %OSUBJ contains symbols that are not allowed in directory names, 
like : and '

How do I filter these symbols? I'll need to put something around %OSUBJ, but 
what?

Also, I need to make sure the directory names do not become too long, so an 
instruction to truncate the directory name to say 50 characters would be 
welcome.

I can find the needed directory names also in the mails themselves, but
SETPATTREGEXP etc. don't seem to work either.

Anything else I can do?

Loek van Kooten

-- 
Akebono Translation Service
Rijnstraat 32
2311 NK Leiden
The Netherlands
Tel: +31-87-8763636
Fax: +31-84-7390618
www.akebono.nl
 
Algemene voorwaarden: www.akebono.nl/algemeen.doc
Terms and conditions: www.akebono.nl/terms.doc
Chamber of Commerce reg. no.: 28066372



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



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


Re: RegEx issue

2012-04-19 Thread Loek van Kooten
Dear all,

Assuming that TheBat! uses the text version of HTML/Text mails received for 
RegEx, I'm trying to extract the following numbers from an e-mail:

NL
   
Confirm
   
249
   
No
   
81
   
0
   
0
   
0
   
0

I'm using (?ms)249.*NL.*?(\d*).*?(\d*).*?(\d*).*?(\d*).*?(\d*) but no matter 
what, the result is nothing. If RegEx uses the HTML version of mails, how do I 
force it to look at the Text version only? And if it's looking at the Text 
version already, how come RegEx doesn't seem to be able to extract isolated 
numbers on isolated lines?

P.S. The subscription links on
http://www.silverstones.com/thebat/tbudlinfo2.html#archives are dead.

Best regards,

Loek van Kooten

=

Please subscribe to our newsletter for updates about our agency (holidays, 
address changes, etc.).  It is sent once or twice a year and contains 
important information only -- no spam, advertisements, or promotions:
http://www.akebono.nl/lists/?p=subscribeid=1

-- 
Akebono Translation Service
Rijnstraat 32
2311 NK Leiden
The Netherlands
Tel: +31-87-8763636
Fax: +31-84-7390618
www.akebono.nl
 
Algemene voorwaarden: www.akebono.nl/algemeen.doc
Terms and conditions: www.akebono.nl/terms.doc
Chamber of Commerce reg. no.: 28066372



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