Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
1fbea9d9
Commit
1fbea9d9
authored
Aug 26, 2011
by
marknl
Browse files
FS#1522 - Add getmail configuration option read_all
implemented the patch supplied by Jan Vansteenkiste with the latest commit
parent
77c68a69
Changes
8
Hide whitespace changes
Inline
Side-by-side
install/sql/incremental/upd_0014.sql
0 → 100644
View file @
1fbea9d9
-- database patch for getmail read_all option
ALTER
TABLE
`mail_get`
ADD
(
`source_read_all`
varchar
(
255
)
NOT
NULL
default
'y'
);
\ No newline at end of file
install/sql/ispconfig3.sql
View file @
1fbea9d9
...
...
@@ -630,6 +630,7 @@ CREATE TABLE `mail_get` (
`source_username`
varchar
(
255
)
default
NULL
,
`source_password`
varchar
(
64
)
default
NULL
,
`source_delete`
varchar
(
255
)
NOT
NULL
default
'y'
,
`source_read_all`
varchar
(
255
)
NOT
NULL
default
'y'
,
`destination`
varchar
(
255
)
default
NULL
,
`active`
varchar
(
255
)
NOT
NULL
default
'y'
,
PRIMARY
KEY
(
`mailget_id`
)
...
...
interface/web/mail/form/mail_get.tform.php
View file @
1fbea9d9
...
...
@@ -117,6 +117,12 @@ $form["tabs"]['mailget'] = array (
'default'
=>
'y'
,
'value'
=>
array
(
0
=>
'n'
,
1
=>
'y'
)
),
'source_read_all'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'CHECKBOX'
,
'default'
=>
'y'
,
'value'
=>
array
(
0
=>
'n'
,
1
=>
'y'
)
),
'destination'
=>
array
(
'datatype'
=>
'VARCHAR'
,
'formtype'
=>
'SELECT'
,
...
...
interface/web/mail/lib/lang/en_mail_get.lng
View file @
1fbea9d9
...
...
@@ -5,6 +5,7 @@ $wb["source_server_txt"] = 'Pop3/Imap Server';
$wb
[
"source_username_txt"
]
=
'Username'
;
$wb
[
"source_password_txt"
]
=
'Password'
;
$wb
[
"source_delete_txt"
]
=
'Delete emails after retrieval'
;
$wb
[
"source_read_all_txt"
]
=
'Retrieve all emails (incl. read mails)'
;
$wb
[
"destination_txt"
]
=
'Destination'
;
$wb
[
"active_txt"
]
=
'Active'
;
$wb
[
"limit_fetchmail_txt"
]
=
'The max. number of Fetchmail records for your account is reached.'
;
...
...
interface/web/mail/templates/mail_get_edit.htm
View file @
1fbea9d9
...
...
@@ -24,11 +24,17 @@
<input
name=
"source_password"
id=
"source_password"
value=
"{tmpl_var name='source_password'}"
size=
"30"
maxlength=
"255"
type=
"password"
class=
"textInput"
/>
</div>
<div
class=
"ctrlHolder"
>
<p
class=
"label"
>
{tmpl_var name='source_delete_txt'}
</p>
<div
class=
"multiField"
>
{tmpl_var name='source_delete'}
</div>
</div>
<p
class=
"label"
>
{tmpl_var name='source_delete_txt'}
</p>
<div
class=
"multiField"
>
{tmpl_var name='source_delete'}
</div>
</div>
<div
class=
"ctrlHolder"
>
<p
class=
"label"
>
{tmpl_var name='source_read_all_txt'}
</p>
<div
class=
"multiField"
>
{tmpl_var name='source_read_all'}
</div>
</div>
<div
class=
"ctrlHolder"
>
<label
for=
"destination"
>
{tmpl_var name='destination_txt'}
</label>
<select
name=
"destination"
id=
"destination"
class=
"selectInput"
>
...
...
server/conf/getmail.conf.master
View file @
1fbea9d9
...
...
@@ -2,6 +2,7 @@
# message_log = /var/log/getmail.log
message_log_syslog = 1
delete = {DELETE}
read_all = {READ_ALL}
[retriever]
type = {TYPE}
...
...
server/plugins-available/getmail_plugin.inc.php
View file @
1fbea9d9
...
...
@@ -108,6 +108,12 @@ class getmail_plugin {
}
else
{
$tpl
=
str_replace
(
'{DELETE}'
,
'0'
,
$tpl
);
}
if
(
$data
[
"new"
][
"read_all"
]
==
'y'
)
{
$tpl
=
str_replace
(
'{READ_ALL}'
,
'1'
,
$tpl
);
}
else
{
$tpl
=
str_replace
(
'{READ_ALL}'
,
'0'
,
$tpl
);
}
// Set the data retriever
if
(
$data
[
"new"
][
"type"
]
==
'pop3'
)
{
...
...
server/scripts/run-getmail.sh
View file @
1fbea9d9
...
...
@@ -14,7 +14,7 @@ if [ -f /tmp/.getmail_lock ]; then
else
touch
/tmp/.getmail_lock
if
[
"
$rcfiles
"
!=
""
]
;
then
/usr/bin/getmail
-n
-v
-g
/etc/getmail
$rcfiles
/usr/bin/getmail
-v
-g
/etc/getmail
$rcfiles
fi
rm
-f
/tmp/.getmail_lock
fi
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment