~ubuntu-branches/ubuntu/hardy/squirrelmail/hardy-updates

« back to all changes in this revision

Viewing changes to plugins/mail_fetch/setup.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2005-02-06 21:41:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050206214151-z4n1o8mnttgzuj0y
Tags: 2:1.4.4-3
* Move default_pref config file from /var to /etc, as per Debian policy
  (Closes: #293281)
* [JvW] (finally) override two lintian warnings about nonstandard
  permissions that are intentional (Closes: #293366)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
   /**
4
4
    **  mail_fetch/setup.php
5
5
    **
6
 
    **  Copyright (c) 1999-2003 The SquirrelMail Project Team
 
6
    **  Copyright (c) 1999-2005 The SquirrelMail Project Team
7
7
    **  Licensed under the GNU GPL. For full terms see the file COPYING.
8
8
    **
9
9
    **  Setup of the mailfetch plugin.
10
10
    **
11
 
    **  $Id: setup.php,v 1.17 2003/11/08 18:57:14 cigamit Exp $
12
 
    * @package plugins
13
 
    * @subpackage mail_fetch
 
11
    **  $Id: setup.php,v 1.15.2.6 2004/12/27 15:03:58 kink Exp $
14
12
    **/
15
 
    
16
 
    /**  */
 
13
 
17
14
    require_once(SM_PATH . 'plugins/mail_fetch/functions.php' );
18
15
 
19
 
    /**
20
 
     * Initialize the plugin
21
 
     */
22
16
    function squirrelmail_plugin_init_mail_fetch() {
23
17
        global $squirrelmail_plugin_hooks;
24
18
 
41
35
 
42
36
        global $data_dir;
43
37
        global $mailfetch_server_number;
44
 
        global $mailfetch_cypher;
 
38
        global $mailfetch_cypher, $mailfetch_port_;
45
39
        global $mailfetch_server_,$mailfetch_alias_,$mailfetch_user_,$mailfetch_pass_;
46
40
        global $mailfetch_lmos_, $mailfetch_uidl_, $mailfetch_login_, $mailfetch_fref_;
47
41
        global $PHP_SELF;
181
175
                    }
182
176
 
183
177
                    if ($mailfetch_subfolder=="") {
184
 
                        fputs($imap_stream, "A3$i APPEND INBOX {" . (strlen($Message) - 1) . "}\r\n");
 
178
                        fputs($imap_stream, "A3$i APPEND INBOX {" . strlen($Message) . "}\r\n");
185
179
                    } else {
186
 
                        fputs($imap_stream, "A3$i APPEND $mailfetch_subfolder {" . (strlen($Message) - 1) . "}\r\n");
 
180
                        fputs($imap_stream, "A3$i APPEND $mailfetch_subfolder {" . strlen($Message) . "}\r\n");
187
181
                    }
188
182
                    $Line = fgets($imap_stream, 1024);
189
183
                    if (substr($Line, 0, 1) == '+') {
190
184
                        fputs($imap_stream, $Message);
 
185
                        fputs($imap_stream, "\r\n");
191
186
                        sqimap_read_data($imap_stream, "A3$i", false, $response, $message);
192
187
 
193
188
                        if ($mailfetch_lmos != 'on') {
229
224
      global $optpage_blocks;
230
225
 
231
226
      $optpage_blocks[] = array(
232
 
         'name' => _("Simple POP3 Fetch Mail"),
 
227
         'name' => _("POP3 Fetch Mail"),
233
228
         'url'  => '../plugins/mail_fetch/options.php',
234
 
         'desc' => _("This configures settings for downloading email from a pop3 mailbox to your account on this server."),
 
229
         'desc' => _("This configures settings for downloading email from a POP3 mailbox to your account on this server."),
235
230
         'js'   => false
236
231
      );
237
232
   }