[DEV] Mail plugin for Total Commander

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MayorA
Junior Member
Junior Member
Posts: 50
Joined: 2005-07-30, 18:11 UTC
Location: Switzerland

Post by *MayorA »

I appreciate the progress you make with this plugin!
I will eventually switch from the old pop3 plugin also. I especially love your mail viewer.

Some bugs I detected so far:
1. using "save to..." for a mail attachment and selecting e.g. D:\Temp will save the attachment.file under D:\Tempattachment.file
2. HTML formatted content of mails somehow is not displayed at all.
3. Once I got an unhandled exception while deleting about 5 or 6 mails at the same time, however I could not reproduce this situation.

Enhancement proposals:
1. A "open" and "open with..." context function for attachments.
2. Timeout for mailbox connections should be configurable
CVSBrowser WFX Plugin Author
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2D1P
Thanks for a promising plugin.

I have made a Danish translation which can be downloaded at:
http://madsenworld.dk/tcmd/total_mail_danish.zip


The strings for the Internal viewer:
61=View message
62=Create message
63=From:
64=To:
65=Subject:
Is not used from the language file (not from english.mpl or russian.mpl either)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
D1P
Senior Member
Senior Member
Posts: 233
Joined: 2005-02-28, 18:29 UTC
Location: Moscow
Contact:

Post by *D1P »

Now v. 0.91a uploaded.
unable to change attachement savepath:
"List index out of Bounds (-1)"
Fixed.
Could you also ask for saving changes if the changes are done (Apply is active) but the user switches to another account or tab. Now the user loses his changes (but Apply button still is Active).
Fixed (Apply button become inactive and all unsaved changes lost). I have decided to not make any confirming dialogs - they irritate, and I want just simplicity.
- when you open several mails - closing one window closes all other too.
- when you open the same mail twice and close the first one you can't close the second (Invalid pointer operation).
Fixed too, i hope :)
1. using "save to..." for a mail attachment and selecting e.g. D:\Temp will save the attachment.file under D:\Tempattachment.file
Fixed
2. HTML formatted content of mails somehow is not displayed at all.
Yes, it is known problem, but i don't plan to implement HTML/any active content viewing. Probably I shall make it somehow differently, but it will be solved later.
3. Once I got an unhandled exception while deleting about 5 or 6 mails at the same time, however I could not reproduce this situation.
In next versions extended problems diagnostic will be added, we shall catch and destroy this bug :twisted:
The strings for the Internal viewer: Quote:
...
Is not used from the language file (not from english.mpl or russian.mpl either)
Fixed.
1. A "open" and "open with..." context function for attachments.
2. Timeout for mailbox connections should be configurable
1. I try to make it later, though it not so is pleasant to me, because attachments opening from unprotected program may be dangerous. Unexperienced users can execute a virus or other harmful program from attachment.
2. Of cource, it will be configurable.
I have made a Danish translation which can be downloaded at:
Thank you, good job :)
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

D1P wrote:
Could you also ask for saving changes if the changes are done (Apply is active) but the user switches to another account or tab. Now the user loses his changes (but Apply button still is Active).
Fixed (Apply button become inactive and all unsaved changes lost). I have decided to not make any confirming dialogs - they irritate, and I want just simplicity.
You can always add some configuration options about the confirmations. Sometimes losing data is more irritating.
D1P wrote:
- when you open several mails - closing one window closes all other too.
- when you open the same mail twice and close the first one you can't close the second (Invalid pointer operation).
Fixed too, i hope :)
It seems to work ok, now.

Why the field "E-mail" is now equal to mailbox name?
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
D1P
Senior Member
Senior Member
Posts: 233
Joined: 2005-02-28, 18:29 UTC
Location: Moscow
Contact:

Post by *D1P »

You can always add some configuration options about the confirmations. Sometimes losing data is more irritating.
Not in that case. However, i can add the appreciable red indicator, which will be display some warning if changes aren't saved. But I shall not make confirmation dialog.
Why the field "E-mail" is now equal to mailbox name?
They are not equal. It is substitution, and this field can be edited. In most cases the name of a mailbox coincides with the used mail address, or not so?
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

MayorA wrote:I especially love your mail viewer.
I also like it but I have a problem with Polish letters. Unfortunately in Poland we use different code pages in Internet (iso-8859-2) and in Windows (win-1250). Using eml plugin I can define them and the plugin converts the text so I can see it correctly. In mail plugin it doesn't wor this way (at least now).
D1P wrote:
Why the field "E-mail" is now equal to mailbox name?
They are not equal. It is substitution, and this field can be edited. In most cases the name of a mailbox coincides with the used mail address, or not so?
I know I can edit them, but as I usually name the mailboxes like: Home, Work, TC etc - seeing such values in email field seemed to be strange for me :)

Test version of Polish language file you can find below:
Note: Remove the trailing spaces after each line before decoding.

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="polish.mpl"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="polish.mpl"

MD1Qb2xpc2ggYnkgRGFyaXVzeiBKLiBLYXdlY2tpICAoZGprKQ0KMT1MaXN0YSBrb250IHBvY3p0
b3d5Y2gNCjI9T2RiaWVyYW5pZSBwb2N6dHkNCjM9U2Vyd2VyIFBPUDMgW3BvcnRdOg0KND1Vv3l0
a293bmlrOg0KNT1IYXOzbzoNCjY9VXdhZ2EhIEhhc7NvIHphcGlzeXdhbmUgamVzdCBiZXogc3p5
ZnJvd2FuaWEhDQo3PVd5c3mzYW5pZSBwb2N6dHkNCjg9U2Vyd2VyIFNNVFAgW3BvcnRdOg0KOT1J
bmZvcm1hY2plIG8gbmFkYXdjeQ0KMTA9T2Q6DQoxMT1FLW1haWw6DQoxMj1Pcmdhbml6YWNqYToN
CjEzPSZEb2Rhag0KMTQ9JlVzdfENCjE1PSZaYXN0b3N1ag0KMTY9T0sNCjE3PUFudWx1ag0KMTg9
V3Byb3dhZHphbmllIGhhc7NhDQoxOT1OaWUgcG9kYW5vIGhhc7NhIGRsYSB0ZWdvIGtvbnRhLiBX
cHJvd2FknyBoYXOzbywgYWJ5IHV6eXNrYeYgZG9zdOpwLg0KMjA9SGFzs286DQoyMT1aYXBp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Xp1aiB6YbO5Y3puaWtpIGpha286DQo0OT1Eb215nGxueSBmb2xkZXIgemFwaXN1IHphs7lj
em5pa/N3DQo1MD1XeWJpZXJ6DQo1MT1XZXdu6nRyem55IHByb2dyYW0gKG9kY3p5dCB3aWFkb21v
nGNpKQ0KNTI9V2V3bup0cnpueSBwcm9ncmFtICh3eXN5s2FuaWUgd2lhb2RvbW+cY2kpDQo1Mz1a
ZXdu6nRyem55IHByb2dyYW0gc2tvamFyem9ueSB6ICouZW1sDQo1ND1OYSBn83J6ZQ0KNTU9TmEg
ZG9sZQ0KNTY9UG8gbGV3ZWoNCjU3PVBvIHByYXdlag0KNTg9TGlzdGEgeiBkdb95bWkgaWtvbmFt
aQ0KNTk9TGlzdGEgeiBtYbN5bWkgaWtvbmFtaQ0KNjA9TGlzdGEgYmV6IGlrb24NCjYxPVpvYmFj
eiB3aWFkb21vnOYNCjYyPVV0d/NyeiB3aWFkb21vnOYNCjYzPU9kOg0KNjQ9RG86DQo2NT1UZW1h
dDoNCjY2PVphcGlzeg0KNjc9WmFwaXN6IHdzenl0c2tpZQ0KNjg9WmFwaXN6IGRvLi4uDQo2OT1a
YXBpc3ogd3N6eXN0a2llIGRvLi4uDQo3MD1aYXBpc3ogemGzuWN6bmlraQ0KNzE9V3liaWVyeiBk
b215nGxueSBmb2xkZXIgemFwaXN1IHphs7ljem5pa/N3DQo3Mj1QcnplY2hvd3VqIHcgYnVmb3J6
ZSBvZGN6eXRhbmUgd2lhZG9tb5xjaQ0K
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
joeyeti
Junior Member
Junior Member
Posts: 53
Joined: 2004-04-15, 10:17 UTC

Post by *joeyeti »

Hi guys,

looks promising indeed! 8)

1. maybe I missed (did not yet download) - is it only for TC7 and up? I mean, which features will not run with 6.xx?

2. is previewing of mail headers possible (without downloading them)?

Thx!
Joeyeti.

EDIT: Testing now, so answering to myself :D

1. Testing now, although I got a sharing violation, it ran further so... will keep you updated.

2. Read the readme, it is possible :wink:
User avatar
joeyeti
Junior Member
Junior Member
Posts: 53
Joined: 2004-04-15, 10:17 UTC

Post by *joeyeti »

Another question:

Is it possible to enter a relative path to save attachments in the config dialog? E.g. I have TC on a USB Stick with a loader, therefore it always changes the drive Letter associated to it...?

And the before mentioned error:

http://img223.imageshack.us/img223/193/mailerrorwhenstartingsz2.jpg
User avatar
D1P
Senior Member
Senior Member
Posts: 233
Joined: 2005-02-28, 18:29 UTC
Location: Moscow
Contact:

Post by *D1P »

I also like it but I have a problem with Polish letters. Unfortunately in Poland we use different code pages in Internet (iso-8859-2) and in Windows (win-1250). Using eml plugin I can define them and the plugin converts the text so I can see it correctly. In mail plugin it doesn't wor this way (at least now).
It is known problem, described in readme:
- Messages encoding in plugin isn't processed in any way (i.e. messages with non-latin symbols can be viewed and saved incorrectly).
It will be fixed later.
Test version of Polish language file you can find below:
Thank you for good job.
1. Testing now, although I got a sharing violation, it ran further so... will keep you updated.
How you got this sharing violation? Could you describe you actions more closely?
Is it possible to enter a relative path to save attachments in the config dialog? E.g. I have TC on a USB Stick with a loader, therefore it always changes the drive Letter associated to it...?
I plan add support to %COMMANDER_PATH%, %COMMANDER_DRIVE% variables.
User avatar
joeyeti
Junior Member
Junior Member
Posts: 53
Joined: 2004-04-15, 10:17 UTC

Post by *joeyeti »

D1P wrote:How you got this sharing violation? Could you describe you actions more closely?
Hmmm, actually an Access Violation (sorry :wink: ) but:

running form a USB Key
ver. 6.52
simply starting TC, opening Network Neighborhood
and clicking on the Mail plugin

the warning is in the JPG link in my previous post

but I can continue execution (did not test it fully with servers because I am behind a corporate firewall :roll: )
User avatar
D1P
Senior Member
Senior Member
Posts: 233
Joined: 2005-02-28, 18:29 UTC
Location: Moscow
Contact:

Post by *D1P »

running form a USB Key
ver. 6.52
simply starting TC, opening Network Neighborhood
and clicking on the Mail plugin

the warning is in the JPG link in my previous post

but I can continue execution (did not test it fully with servers because I am behind a corporate firewall )
It seems, as though the plugin couldn't get access to write or can't determine some necessary paths. Probably it is a problem with the used loader. I shall lead test later.
User avatar
pajo
Member
Member
Posts: 181
Joined: 2005-02-18, 17:57 UTC
Location: Croatia

Post by *pajo »

2 Author
I started to translate plugin in Croatian, but there is no central europian characters support :-(
User avatar
MayorA
Junior Member
Junior Member
Posts: 50
Joined: 2005-07-30, 18:11 UTC
Location: Switzerland

Post by *MayorA »

I just stumbled about a new problem:

Downloading a mail with a 7z archive attachment seems only to download the mail without the attachment, although the Attachment MIME type is displayed correctly as "multipart/mixed" and also the Size seems reasonable.

Copying the mail to the local file system (F5) creates a an .eml containing only the message and thus with a much smaller Size.

Other attachments as .doc files seem to work properly.
CVSBrowser WFX Plugin Author
User avatar
D1P
Senior Member
Senior Member
Posts: 233
Joined: 2005-02-28, 18:29 UTC
Location: Moscow
Contact:

Post by *D1P »

I started to translate plugin in Croatian, but there is no central europian characters support
It will be added later.
Downloading a mail with a 7z archive attachment seems only to download the mail without the attachment, although the Attachment MIME type is displayed correctly as "multipart/mixed" and also the Size seems reasonable.

Copying the mail to the local file system (F5) creates a an .eml containing only the message and thus with a much smaller Size.
Try to disable "Cache received messages" options. I found serious bug in caching code, this bug can produce similar error, which you described.
User avatar
MayorA
Junior Member
Junior Member
Posts: 50
Joined: 2005-07-30, 18:11 UTC
Location: Switzerland

Post by *MayorA »

Yesss ... The attachment problem is due to the caching mechanism. Switching it off and deleting the cache folder solves the problem.

By the way, after stressing you with that many posts, I thought I should contribute something, so here is my german translation:

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="german.mpl"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="german.mpl"

MD1EZXV0c2NoZSDcYmVyc2V0enVuZyB2b24gQWxleGFuZHJlIE1heW9yDQoxPVBvc3RmYWNobGlz
dGUNCjI9UG9zdGVpbmdhbmcNCjM9UE9QMyBTZXJ2ZXIgW1BvcnRdOg0KND1CZW51dHplcm5hbWU6
DQo1PVBhc3N3b3J0Og0KNj1BY2h0dW5nISBQYXNzd29ydCB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