I receive a lot of lazy html messages.
I know pmail is not showing the content for security reasons.
I'd like to use a button in the reader toolbar to open them in my browser instead of rightclick in the message and select open in browser.
Is there a simple way to do that in 4.51?
Feel free to link to an existing thread.
Thanks
[quote user="SvenH"]This is not possible, the reader toolbar can't be customized.
Sven[/quote]
Thanks Sven... How about the same question for the main window toolbar?
You can customize the main toolbar. Open the file "bpanel.txt" inside the directory "RESOURCE" within the Pegasus Mail program directory. Create your own toolbar.pm (use the examples from bpanel.txt) file and place it into the Pegasus Mail program directory. Insert the following line at the position of your choice:
0,10392,0,11841,"Open message in browser..."
When clicking this button the currently selected messagegets displayed in your standard browser. You may customize the bitmap ID (11841), although you must use one of the built-in pictures. For the "open in browser" function there is no specialized bitmap available. You may also want to use the bitmap IDs 1843 or 1845, or maybe 11844.
Sven
Well, I am the German translator since 1999, so I should know about every control ID... :-)
Inside the program the control ID is actually 392. In order to create a button that triggers any standard menu item in the Pegasus Mail menu hierarchy just add 10000 to the menu item's code then using that value as the button's control ID.
I looks like the bpanel.txt file needs to be updated since the ID 392 and some others are not mentioned here. A comprehensive list of valid menu IDs can be found here:
http://www.vandenbogaerde.net/pegasusmail/p300_idmcodes.html
Sven
[quote user="SvenH"]
You can customize the main toolbar. Open the file "bpanel.txt" inside the directory "RESOURCE" within the Pegasus Mail program directory. Create your own toolbar.pm (use the examples from bpanel.txt) file and place it into the Pegasus Mail program directory. Insert the following line at the position of your choice:
0,10392,0,11841,"Open message in browser..."
When clicking this button the currently selected messagegets displayed in your standard browser. You may customize the bitmap ID (11841), although you must use one of the built-in pictures. For the "open in browser" function there is no specialized bitmap available. You may also want to use the bitmap IDs 1843 or 1845, or maybe 11844.
Sven
[/quote]
You may as well use the menubtn extension to get the same effect. However, it also allows you to add your own button image as described in the following thread:
http://community.pmail.com/forums/thread/17963.aspx
Create a text file and name it <menubtn.fff> and place it e.g. in the PM program directory.
The following is the section I use. You may add it to the <menubtn.fff> file and adjust file and path names to your conditions.
; ------------------------------------
; Tom's Open Message in Web Browser window
; ------------------------------------
; Button name - just a label for your and the programs convenience
Form Name = "Open Message in Web Browser"
32-bit model = 1
; Call the extension dll, "~a" stands for the path to the Pmail "Programs" dir.
Form DLL = ~a\extensions\MENUBTN.DLL
Form type = COMPOSER
Form flags = 2
; Tell the button what to do (see bpanel.txt or Hans' list of mnemonics)
; Note that the 10392 (10000 + 392) option does not seem to work with this extension
Form data = "392"
; Define bitmap and path and define tooltip text
Bitmap file = ~a\icons\tms_pm_browser.bmp,Open Message in Web Browser ...
End
; ------------------------------------
Cheers
Thomas
Interesting extension Thomas, I had completely forgotten about that. Thank you for your comprehensive explaination.
Sven
Your previous draft for topic is pending
If you continue, your previous draft will be discarded.