Re: Start specific profile depend on URI

2015-10-14 Thread MFPA
Hi


On Wednesday 14 October 2015 at 2:39:00 PM, in
, Petr Laznovsky wrote:




> One more question:

> OS send to application 'protocol_name:value' in %1,
> thus this whole string appears in 'Recipient' field of
> mail editor. Is it possible programatically (on the
> fly) parse such string to only part after semicolon is
> putted into RCPT field?


I would think you also wanted to remove the two slashes after the 
colon. (-;

Feeding your favourite search engine with terms like "DOS String
Split" (maybe replace "split" with "edit" or "manipluation") should
give you something you can work with. Something like cut the first "X"
characters, or replace the substring "protocol_name://" with an empty
string.

Alternatively, you could perhaps edit the To field via macros and
RegEx in the message template within TB!.


-- 
Best regards

MFPA  

Dogs look up to us. Cats look down on us. Pigs treat us as equals.

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



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


Re: Start specific profile depend on URI

2015-10-14 Thread Petr Laznovsky

Dne 11.10.2015 v 14:47 MFPA napsal(a):

Hi


On Sunday 11 October 2015 at 10:47:49 AM, in
, Petr Laznovsky wrote:




Solved. EDIT command sould be added into string and if
account name contain space, it must doublequoted in
command string. this could be added to documentation.



Glad you worked it out.

For my version of TB! the Help file does mention the need to use
quotes if a parameter contains spaces:-

Note: If a parameter value contains space characters, enclose
it in quotation marks. If a value contains quotation marks, you
should use single quotes (" ' " characters).




One more question:

OS send to application 'protocol_name:value' in %1, thus this whole string appears in 'Recipient' 
field of mail editor. Is it possible programatically (on the fly) parse such string to only part 
after semicolon is putted into RCPT field?


L.



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


Re: Start specific profile depend on URI

2015-10-11 Thread Petr Laznovsky

Dne 10.10.2015 v 15:21 Petr Laznovsky napsal(a):

Dne 8.10.2015 v 0:36 MFPA napsal(a):

Hi


On Wednesday 7 October 2015 at 3:14:54 AM, in
, Thomas Fernandez wrote:



Hello Lore,



On Tue, 6 Oct 2015 14:11:29 -0700 GMT (07-Oct-15, 04:11
+0700 GMT), Lore Galore wrote:



On 10/6/2015 11:24 AM, Petr Laznovsky wrote:

Have internal web system with different type of customers. Want to
mail to customer using Thebat! but different type of customer need
different thebat! profiles (different sender address, signature,
etc..). Thebat should be started by clicking on link in web system,
now I using 'mailto:' URI for default profile, but I can specify
another URI for different profile.



Is such solution possible?



   You can set up multiple email accounts in The
Bat!, with one being primary/default.  When compose
window is open, you can look at the  bottom border of
the window and see the name of your default mail
account.  Clicking that shows all configured mail
accounts to choose  from, but choose it before you
type anything.



I cannot write any Regular Expressions, but they keep
impression me. I would think that a RegEx can parse the
URI for something you code into it, and then issue a
command "choose account". That would do the same thing
but automated.



Maybe it could be even simpler with AddressBook Group templates. For
one type of customer, all the customer email addresses go in a
specific AB Group. You set up the AB group templates to take care of
the sender address, signature, etc. Then, when you follow your Mailto:
link for a customer whose email address is in that AB Group, the
right template should be used. (If their address is in multiple AB
Groups, this won't work.)

Alternatively, take a look at "Command Line Parameters" in TB!'s help
file and see if /mail or /mailto might help you.



Have defined custom protocol 'testprot' in windows 7 by following registry 
entry:

"C:\Program Files (x86)\The Bat!\thebat.exe" 
"/MAILU=testprot;TO=%1;S=Test;TEXT=c:\work\template.txt"

in 'HKEY_CLASSES_ROOT\testprot\shell\open\command' registry path.
In my web application have following link:

mailbox-19nr15rz...@public.gmane.org

clik on link perform (if not started yet) start TheBat!, create mail by 
template and put it in the
Outbox folder, but such string 'testprot://mail...@host.com' is putted in 'To:'
box, insted of recipients address only. Changing registry string to '/MAILTOU' 
cause same behaviour
but mail goes into output folder of default profile, not the specified profile.

How could I achieve the created message is opened in 'edit message' window on 
focus with correct
recipient address?

L.


Solved. EDIT command sould be added into string and if account name contain space, it must 
doublequoted in command string. this could be added to documentation.


L.




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


Re: Start specific profile depend on URI

2015-10-11 Thread MFPA
Hi


On Sunday 11 October 2015 at 10:47:49 AM, in
, Petr Laznovsky wrote:



> Solved. EDIT command sould be added into string and if
> account name contain space, it must doublequoted in
> command string. this could be added to documentation.


Glad you worked it out.

For my version of TB! the Help file does mention the need to use 
quotes if a parameter contains spaces:-

   Note: If a parameter value contains space characters, enclose 
   it in quotation marks. If a value contains quotation marks, you 
   should use single quotes (" ' " characters).  


-- 
Best regards

MFPA  

A closed door is an invitation to knock

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



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


Re: Start specific profile depend on URI

2015-10-10 Thread Petr Laznovsky

Dne 8.10.2015 v 0:36 MFPA napsal(a):

Hi


On Wednesday 7 October 2015 at 3:14:54 AM, in
, Thomas Fernandez wrote:



Hello Lore,



On Tue, 6 Oct 2015 14:11:29 -0700 GMT (07-Oct-15, 04:11
+0700 GMT), Lore Galore wrote:



On 10/6/2015 11:24 AM, Petr Laznovsky wrote:

Have internal web system with different type of customers. Want to
mail to customer using Thebat! but different type of customer need
different thebat! profiles (different sender address, signature,
etc..). Thebat should be started by clicking on link in web system,
now I using 'mailto:' URI for default profile, but I can specify
another URI for different profile.



Is such solution possible?



   You can set up multiple email accounts in The
Bat!, with one being primary/default.  When compose
window is open, you can look at the  bottom border of
the window and see the name of your default mail
account.  Clicking that shows all configured mail
accounts to choose  from, but choose it before you
type anything.



I cannot write any Regular Expressions, but they keep
impression me. I would think that a RegEx can parse the
URI for something you code into it, and then issue a
command "choose account". That would do the same thing
but automated.



Maybe it could be even simpler with AddressBook Group templates. For
one type of customer, all the customer email addresses go in a
specific AB Group. You set up the AB group templates to take care of
the sender address, signature, etc. Then, when you follow your Mailto:
link for a customer whose email address is in that AB Group, the
right template should be used. (If their address is in multiple AB
Groups, this won't work.)

Alternatively, take a look at "Command Line Parameters" in TB!'s help
file and see if /mail or /mailto might help you.



Have defined custom protocol 'testprot' in windows 7 by following registry 
entry:

"C:\Program Files (x86)\The Bat!\thebat.exe" 
"/MAILU=testprot;TO=%1;S=Test;TEXT=c:\work\template.txt"

in 'HKEY_CLASSES_ROOT\testprot\shell\open\command' registry path.
In my web application have following link:

mail...@host.com

clik on link perform (if not started yet) start TheBat!, create mail by template and put it in the 
Outbox folder, but such string 'testprot://mail...@host.com' is putted in 'To:' box, insted of 
recipients address only. Changing registry string to '/MAILTOU' cause same behaviour but mail goes 
into output folder of default profile, not the specified profile.


How could I achieve the created message is opened in 'edit message' window on focus with correct 
recipient address?


L.



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


Re: Start specific profile depend on URI

2015-10-08 Thread Petr Laznovsky

Dne 8.10.2015 v 0:36 MFPA napsal(a):

Hi


On Wednesday 7 October 2015 at 3:14:54 AM, in
, Thomas Fernandez wrote:



Hello Lore,



On Tue, 6 Oct 2015 14:11:29 -0700 GMT (07-Oct-15, 04:11
+0700 GMT), Lore Galore wrote:



On 10/6/2015 11:24 AM, Petr Laznovsky wrote:

Have internal web system with different type of customers. Want to
mail to customer using Thebat! but different type of customer need
different thebat! profiles (different sender address, signature,
etc..). Thebat should be started by clicking on link in web system,
now I using 'mailto:' URI for default profile, but I can specify
another URI for different profile.



Is such solution possible?



   You can set up multiple email accounts in The
Bat!, with one being primary/default.  When compose
window is open, you can look at the  bottom border of
the window and see the name of your default mail
account.  Clicking that shows all configured mail
accounts to choose  from, but choose it before you
type anything.



I cannot write any Regular Expressions, but they keep
impression me. I would think that a RegEx can parse the
URI for something you code into it, and then issue a
command "choose account". That would do the same thing
but automated.



Maybe it could be even simpler with AddressBook Group templates. For
one type of customer, all the customer email addresses go in a
specific AB Group. You set up the AB group templates to take care of
the sender address, signature, etc. Then, when you follow your Mailto:
link for a customer whose email address is in that AB Group, the
right template should be used. (If their address is in multiple AB
Groups, this won't work.)


I cant import list of addresses into thebat!, is stored and maintained in 
external db.


Alternatively, take a look at "Command Line Parameters" in TB!'s help
file and see if /mail or /mailto might help you.


Sounds interesting. Look like windows can start app with specified CLI parameters by custom URI 
handler. 
http://stackoverflow.com/questions/389204/how-do-i-create-my-own-url-protocol-e-g-so/7277284#7277284 
 will try it.


thanks to point me on this, L.



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


Re: Start specific profile depend on URI

2015-10-07 Thread MFPA
Hi


On Wednesday 7 October 2015 at 3:14:54 AM, in
, Thomas Fernandez wrote:


> Hello Lore,

> On Tue, 6 Oct 2015 14:11:29 -0700 GMT (07-Oct-15, 04:11
> +0700 GMT), Lore Galore wrote:

>> On 10/6/2015 11:24 AM, Petr Laznovsky wrote:
>>> Have internal web system with different type of customers. Want to 
>>> mail to customer using Thebat! but different type of customer need 
>>> different thebat! profiles (different sender address, signature, 
>>> etc..). Thebat should be started by clicking on link in web system, 
>>> now I using 'mailto:' URI for default profile, but I can specify 
>>> another URI for different profile.

>>> Is such solution possible?

>>   You can set up multiple email accounts in The
>> Bat!, with one being primary/default.  When compose
>> window is open, you can look at the  bottom border of
>> the window and see the name of your default mail
>> account.  Clicking that shows all configured mail
>> accounts to choose  from, but choose it before you
>> type anything.

> I cannot write any Regular Expressions, but they keep
> impression me. I would think that a RegEx can parse the
> URI for something you code into it, and then issue a
> command "choose account". That would do the same thing
> but automated.  


Maybe it could be even simpler with AddressBook Group templates. For 
one type of customer, all the customer email addresses go in a 
specific AB Group. You set up the AB group templates to take care of 
the sender address, signature, etc. Then, when you follow your Mailto: 
link for a customer whose email address is in that AB Group, the 
right template should be used. (If their address is in multiple AB 
Groups, this won't work.)

Alternatively, take a look at "Command Line Parameters" in TB!'s help
file and see if /mail or /mailto might help you.



-- 
Best regards

MFPA  

The man who really wants to do something finds a way, 
the other finds an excuse.

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



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


Start specific profile depend on URI

2015-10-06 Thread Petr Laznovsky
Have internal web system with different type of customers. Want to mail to customer using Thebat! 
but different type of customer need different thebat! profiles (different sender address, signature, 
etc..). Thebat should be started by clicking on link in web system, now I using 'mailto:' URI for 
default profile, but I can specify another URI for different profile.


Is such solution possible?

L.



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


Re: Start specific profile depend on URI

2015-10-06 Thread Lore Galore



On 10/6/2015 11:24 AM, Petr Laznovsky wrote:
Have internal web system with different type of customers. Want to 
mail to customer using Thebat! but different type of customer need 
different thebat! profiles (different sender address, signature, 
etc..). Thebat should be started by clicking on link in web system, 
now I using 'mailto:' URI for default profile, but I can specify 
another URI for different profile.


Is such solution possible?

L.



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

 You can set up multiple email accounts in The Bat!, with one being 
primary/default.  When compose window is open, you can look at the 
bottom border of the window and see the name of your default mail 
account.  Clicking that shows all configured mail accounts to choose 
from, but choose it before you type anything.

--
Best Regards,
  Lore Galore  http://paper.newsbeans.co

Secure Email   Voir Dire
  http://pobox.com/~potentia   http://fija.org



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


Re: Start specific profile depend on URI

2015-10-06 Thread Thomas Fernandez
Hello Lore,

On Tue, 6 Oct 2015 14:11:29 -0700 GMT (07-Oct-15, 04:11 +0700 GMT),
Lore Galore wrote:



> On 10/6/2015 11:24 AM, Petr Laznovsky wrote:
>> Have internal web system with different type of customers. Want to 
>> mail to customer using Thebat! but different type of customer need 
>> different thebat! profiles (different sender address, signature, 
>> etc..). Thebat should be started by clicking on link in web system, 
>> now I using 'mailto:' URI for default profile, but I can specify 
>> another URI for different profile.
>>
>> Is such solution possible?

>   You can set up multiple email accounts in The Bat!, with one being
> primary/default.  When compose window is open, you can look at the 
> bottom border of the window and see the name of your default mail 
> account.  Clicking that shows all configured mail accounts to choose 
> from, but choose it before you type anything.

I cannot write any Regular Expressions, but they keep impression me.
I would think that a RegEx can parse the URI for something you code
into it, and then issue a command "choose account". That would
do the same thing but automated.

-- 

Cheers,
Thomas.

http://thomas.fernandez.hat-gar-keine-homepage.de/

Message reply created with The Bat! 7.0.0.56
under Windows 7 6.1 Build 7601 Service Pack 1



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