[SM-USERS] corrupt pdf files

2009-02-25 Thread javier wilson
some users complained about corrupt pdf files sent using squirrelmail. i
noticed in most cases enconding was wrong, it was text/download, sending a
lot of binary code and different newline breaks from the original causing
the corruption.

this only happens in some computers with firefox, i was able to correct it
in a computer after reading
http://techblog.procurios.nl/k/618/news/view/15872/14863/Mimetype-corruption-in-Firefox.html
basically editing mimeTypes.rdf and deleting all wrong pdf entries, leaving
only application/pdf

this is just in case someone had the same problem.

javier
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Re: [SM-USERS] missing folder icons

2009-09-06 Thread javier wilson
On Sun, Aug 2, 2009 at 12:12 AM, Jumping Mouse  wrote:

>
> >
> > Yes, you are. It still requires the patch. Sorry that wasn't clear.
> >
> >Send
>
> Ok I did:
>
> patch -p0 < patches/msg_flags-squirrelmail-1.4.15.diff   in the
> plugin/msg_flags directory and now it works.
>
> I would suggest adding to  the INSTALL document in number 2:
>
> msg_flags-squirrelmail-1.4.115.diff should/will  work for 1.4.15- 1.4.19
>
> thanks for your help Paul!
>
> BTW, I couldn't apply to patch to 1.4.20 RC2, specifically to
functions/mailbox_display.php, no problem with src/move_messages.php

I had to manually see what had to be done, here's the patch. I don't know
how to use patch very well, so tell me if I did something wrong. (or how to
include the patch to move_messages in the same file)

Javier
--- mailbox_display.php.orig	2009-08-12 02:29:53.0 -0600
+++ mailbox_display.php	2009-09-06 03:20:53.0 -0600
@@ -260,37 +260,66 @@
 $stuff = false;
 $td_str = "";
 
-if (isset($msg['FLAG_ANSWERED']) && $msg['FLAG_ANSWERED'] == true) {
-// i18n: "A" is short for "Answered". Make sure that two icon strings aren't translated to the same character (only in 1.5).
-$td_str .= _("A");
-$stuff = true;
-}
-if ($msg['TYPE0'] == 'multipart' && $msg['TYPE1'] == 'mixed') {
-$td_str .= '+';
-$stuff = true;
+sq_change_text_domain('msg_flags');
+if (isset($msg['FLAG_FLAGGED']) && $msg['FLAG_FLAGGED'] == true) {
+$msg_alt = _("This message is flagged");
+$td_str .= ' ';
 }
 if ($default_use_priority) {
 if ( ($msg['PRIORITY'] == 1) || ($msg['PRIORITY'] == 2) ) {
-$td_str .= "!";
-$stuff = true;
+$msg_alt = _("This message is high priority");
+$td_str .= ' ';
 }
-if ($msg['PRIORITY'] == 5) {
-$td_str .= "?";
-$stuff = true;
+elseif ($msg['PRIORITY'] == 5) {
+$msg_alt = _("This message is low priority");
+$td_str .= ' ';
+}
+else {
+$td_str .= '';
 }
 }
+if ($msg['TYPE0'] == 'multipart' && $msg['TYPE1'] == 'mixed') {
+$msg_alt = _("This message has an attachment");
+$td_str .= '';
+}
+else {
+$td_str .= '';
+}
+
+$msg_icon = '';
+
+if (!isset($msg['FLAG_SEEN']) || $msg['FLAG_SEEN'] == true) {
+$msg_alt = _("This message has been read");
+$msg_icon .= '../plugins/msg_flags/images/msg_read';
+} else {
+$msg_alt = _("This message is new");
+$msg_icon .= '../plugins/msg_flags/images/msg_new';
+}
 if (isset($msg['FLAG_DELETED']) && $msg['FLAG_DELETED'] == true) {
-$td_str .= "D";
-$stuff = true;
+if (!isset($msg['FLAG_SEEN']) || $msg['FLAG_SEEN'] == true) {
+$msg_alt = _("This message has been read & deleted");
+} else {
+$msg_alt = _("This message is new & deleted");
+}
+$msg_icon .= '_deleted';
 }
-if (!$stuff) {
-$td_str .= ' ';
+if (isset($msg['FLAG_ANSWERED']) && $msg['FLAG_ANSWERED'] == true) {
+if (!isset($msg['FLAG_SEEN']) || $msg['FLAG_SEEN'] == true) {
+$msg_alt = _("This message has been read & answered");
+} else {
+$msg_alt = _("This message is new & answered");
+}
+$msg_icon .= '_reply';
 }
+sq_change_text_domain('squirrelmail');
+
+$td_str .= ' ';
+
 do_hook("msg_envelope");
 $td_str .= '';
 echo html_tag( 'td',
$td_str,
-   'center',
+   'right',
$hlt_color,
'nowrap' );
 break;
@@ -760,6 +789,10 @@
 echo getButton('SUBMIT', 'expungeButton',_("Expunge")) ."\n";
 }
 
+sq_change_text_domain('msg_flags');
+echo getButton('SUBMIT', 'markFlagged',_("Flag"));
+echo getButton('SUBMIT', 'markUnflagged',_("Unflag"));
+sq_change_text_domain('squirrelmail');
 ec

Re: [SM-USERS] What's wrong with the configuration

2015-03-07 Thread javier wilson
2015-03-07 10:32 GMT-06:00 artonweb :

> Hello.
> I am trying to modify config.php file in order to make the correct
> settings.
> My domain name is mgs.gr.
> I have created an MX record pointing to mail.mgs.gr and an A record
> mail.mgs.gr pointing to mail server's IP.
> I would like to know the changes of default settings in variables:
>  $domain ,
> $smtpServerAddress ,
> $imapServerAddress,
> $imap_server_type
>
> or in any other variable need to be changed.
>

A few questions come to mind...
Which version of Squirrelmail are you using? Did you download it from the
site or was it and RPM or similar package?
Which IMAP server are you using? Are your SMTP and IMAP server on the same
server as Squirrelmail?
But... fist of all, have a look at the wiki
http://squirrelmail.org/wiki/DocumentationHome

javier
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users