Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: text/plain Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
zck
Newbie
Newbie


Joined: 27 February 2014
Location: Hungary
Online Status: Offline
Posts: 7
Posted: 27 February 2014 at 2:06am | IP Logged Quote zck

Hello,

Sorry, I speak a little english.

I use AfterLogic WebMail Lite 7. I would like my SMTP send messages is not text/html, is text/plain only. How to modify file(s)?



I know little PHP+MySQL programming.

Thanks! Have a nice day!

Back to Top View zck's Profile Search for other posts by zck
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 27 February 2014 at 2:37am | IP Logged Quote Igor

We've created a small plugin for this purpose, you can find download link and setup instructions here.

Please bear in mind that upon making these changes, all messages sent out from WebMail will effectively lose formatting, inline images etc.

If you don't mind my asking, can you tell what's the reason behind the need to have plaintext-only mails?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 27 February 2014 at 2:38am | IP Logged Quote Igor

Oops, wrong link. The proper page is here.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
zck
Newbie
Newbie


Joined: 27 February 2014
Location: Hungary
Online Status: Offline
Posts: 7
Posted: 27 February 2014 at 5:56am | IP Logged Quote zck

Thanks, but not work.

1. Download & unzip: http://www.afterlogic.com/files/plugins/force-plaintext-mails.zip
2. cp ~/data/plugins/force-plaintext-mails/index.php
3. gedit ~/data/settings/config.php

<?php

     $aSieveDomains = array ( 'imap.domain1.com', 'imap.domain2.com' );

     return array (

          'sieve' => false,
          'sieve.autoresponder' => true,
          'sieve.forward' => true,
          'sieve.filters' => true,
          'sieve.config.host' => '',
          'sieve.config.port' => 2000,
          'sieve.config.filters-folder-charset' => 'utf-8', // [utf7-imap, utf-8]
          'sieve.config.domains' => $aSieveDomains,
          'plugins.force-plaintext-mails' => true

     );


4. I try send mail, but not full text/plain. See the source:

Mime-Version: 1.0
Date: Thu, 27 Feb 2014 13:39:03 +0000
Content-Type: multipart/alternative;
boundary="----=_Part_342_973472876.1393508343"
X-Mailer: AfterLogic webmail client
X-Priority: 3 (Normal)


------=_Part_342_973472876.1393508343
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: Quoted-Printable

Hello world!

------=_Part_342_973472876.1393508343
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: Quoted-Printable

<!DOCTYPE html><html><head><meta http-equiv=3D"Content-Type" content=3D"t=
ext/html; charset=3Dutf-8" /><head><body><div><div>Hello <font color=3D"#=
ff0000">world</font>!<br></div></div></body></html>

------=_Part_342_973472876.1393508343--


5. Show:

Hello world!



How to not see HTML formatting? Only plain text?
Thanks Igor & other!

Back to Top View zck's Profile Search for other posts by zck
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 28 February 2014 at 1:26am | IP Logged Quote Igor

Can you please confirm you're running version 7.2 or above? This plugin won't work with older versions.

You can check version number as shown here.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
zck
Newbie
Newbie


Joined: 27 February 2014
Location: Hungary
Online Status: Offline
Posts: 7
Posted: 28 February 2014 at 2:09am | IP Logged Quote zck

Igor wrote:
Can you please confirm you're running version 7.2 or above? This plugin won't work with older versions.


My version: <!-- 7.1.1.1 -->

Few days and then try the 7.2.1 version. Thanks Igor. I new post here few days if my problem is solved or not.

Back to Top View zck's Profile Search for other posts by zck
 
zck
Newbie
Newbie


Joined: 27 February 2014
Location: Hungary
Online Status: Offline
Posts: 7
Posted: 28 February 2014 at 7:23am | IP Logged Quote zck

It is very good. Thanks Igor! One question more:

The new message writer page I would like see the HTML messages in plain text. How to?

The HTML messages I would like see the all messages page, I would like only the writer <textarea> see plain/text.

Example would like see if I'm reply or forward message source:


Hello!

On p, feb 28, 2014 at 16:16, "********" <********@********.********> wrote:
> Hello world!
>
> ...


The > characters now is a columns and I see all images, etc. HTML items.

Sorry, my very-very bad english. I know.

Back to Top View zck's Profile Search for other posts by zck
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 03 March 2014 at 1:03am | IP Logged Quote Igor

Sorry, I'm not sure I understand what you're asking about. Assuming you'd like to modify the interface itself, this would be way beyond simple fix like the one offered with the plugin we provided previously.

Of course, we do allow modification of the source code, but it's expected you can find your way through the code to make it work the way you need.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
zck
Newbie
Newbie


Joined: 27 February 2014
Location: Hungary
Online Status: Offline
Posts: 7
Posted: 03 March 2014 at 1:23am | IP Logged Quote zck

Igor wrote:
Sorry, I'm not sure I understand what you're asking about.


The Force sending plaintext mails plugin is ok. My emails is text/plain mime. Thanks!

I would like new plugin: not text/html editor, only text/plain editor.

1. I receive HTML format email message.
2. I would like reply or forward this.
3. The editor is content HTML, I see images, etc. I would like see the HTML source message is plain text.
4. The plugin is help me because the email message sended is text/plain mime, but I would like the editor is plain/text, not formatting toolbar and not see HTML to HTML. I would like the editor page is HTML to plain when I reply or forwarding HTML source message.

Do you understand?

My programming learn is very beginner. I don't know edit new plugin. I'm beginner.
Back to Top View zck's Profile Search for other posts by zck
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 03 March 2014 at 1:28am | IP Logged Quote Igor

In that case, I actually did get you right, and there is no simple way to achieve what you require. Message editor is a quite a large functionality and you can't rewrite it with a few lines of code.

WebMail Lite is free software available under AGPLv3 license, you're allowed to modify the code, or you can hire a third party to do that for you if your own programming skills aren't sufficient for that.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
zck
Newbie
Newbie


Joined: 27 February 2014
Location: Hungary
Online Status: Offline
Posts: 7
Posted: 03 March 2014 at 1:56am | IP Logged Quote zck

Igor wrote:
Message editor is a quite a large functionality and you can't rewrite it with a few lines of code.


And only the <textarea></textarea> HTML field show WYSIWYG plaintext? The toolbar is show and etc.
Back to Top View zck's Profile Search for other posts by zck
 
zck
Newbie
Newbie


Joined: 27 February 2014
Location: Hungary
Online Status: Offline
Posts: 7
Posted: 09 March 2014 at 7:09am | IP Logged Quote zck

Answer, please?

Back to Top View zck's Profile Search for other posts by zck
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 11 March 2014 at 1:30am | IP Logged Quote Igor

I don't have an answer, sorry. That kind of modification is something you're on your own with.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
rq3wa53a7d182e0
Newbie
Newbie
Avatar

Joined: 10 September 2015
Location: France
Online Status: Offline
Posts: 3
Posted: 21 October 2015 at 3:08am | IP Logged Quote rq3wa53a7d182e0

I'm having the same issue. Too bad we can't just have the raw email body shown in a <textarea>.
This would be much much simpler. No richtext editor, no javascript, just plaintext body. Pretty much like this forum answering interface.

Reason being : GnuPG
Back to Top View rq3wa53a7d182e0's Profile Search for other posts by rq3wa53a7d182e0
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide