
22nd July 2006, 00:45
|
|
Member
|
|
Join Date: Nov 2005
Location: Uffing am Staffelsee
Posts: 52
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
RoundCubeMail - Solution for error by deleting of mails
I have found the solution of the problem.
Following "BUG" is known:
You have created a new mail-box, get a mail and want delete it, but there comes an error-message, that the mail couldn´t delete.
Solution for the problem:
Log into roundcube, go to settings, and create a new folder with name: " Trash" That´s it. The problem should now eliminated
Last edited by TobiasTM; 22nd July 2006 at 01:16.
|

24th July 2006, 19:38
|
|
Member
|
|
Join Date: Jul 2006
Posts: 49
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Make roundcube create all needed folders
I think this is far better solution:
Create a text file in /home/admispconfig/ispconfig/web/roundcubemail (for example patch.diff)
with the following content:
--- program/include/rcube_imap.inc (revision 260)
+++ program/include/rcube_imap.inc (working copy)
@@ -362,13 +362,18 @@
if (!is_array($a_folders) || !sizeof($a_folders))
$a_folders = array();
- // create INBOX if it does not exist
- if (!in_array_nocase('INBOX', $a_folders))
+ // create Default folders if they do not exist
+ global $CONFIG;
+ foreach ($CONFIG['default_imap_folders'] as $folder)
{
- $this->create_mailbox('INBOX', TRUE);
- array_unshift($a_folders, 'INBOX');
+ if (!in_array_nocase($folder, $a_folders))
+ {
+ $this->create_mailbox($folder, TRUE);
+ $this->subscribe($folder);
+ }
}
+ $a_folders = iil_C_ListSubscribed($this->conn, $this->_mod_mailbox($root), $filter);
$a_mailbox_cache = array();
// write mailboxlist to cache
patch roundcube mail:
machine:/home/admispconfig/ispconfig/web/roundcubemail# patch -p0 < patch.diff
And... voilà!
Every user who log in roundmail, get all needed folders created (not only Trash)
|

25th July 2006, 00:18
|
|
Member
|
|
Join Date: Nov 2005
Location: Uffing am Staffelsee
Posts: 52
Thanks: 8
Thanked 0 Times in 0 Posts
|
|
I try it some times, but there come evetime a Error-Message like this:
Quote:
patching file program/include/rcube_imap.inc
patch: **** malformed patch at line 4: if (!is_array($a_folders) || !sizeof($a_folders))
|
When I delete this file I´ll get error-messages at other places in you little skript.
Is it possible that you have forgotten some + or - or other things ?
|

25th July 2006, 09:53
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 19,805
Thanks: 285
Thanked 1,805 Times in 1,357 Posts
|
|
Davide, thanks for the patch!
May you please attach a copy of the pached file (program/include/rcube_imap.inc) as .zip to this thraed?
I guess it might be easier for users to replace the file instead of patching it, even if patching is technically the correct way of handling this
|

25th July 2006, 10:10
|
|
Member
|
|
Join Date: Jul 2006
Posts: 49
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
I attach patched file to this post
It should work with roundcube 0.1 beta (that is the packaged version for ISPConfig)
Simply make a backup of your /home/admispconfig/ispconfig/web/roundcubemail/rcube_imap.php and substitute it with the attached one.
Last edited by Davide; 25th July 2006 at 10:12.
|

18th September 2006, 23:03
|
|
Senior Member
|
|
Join Date: Jun 2006
Location: Germany, Kaarst
Posts: 149
Thanks: 3
Thanked 0 Times in 0 Posts
|
|
...newest beta-package in other thread does this already...
|

3rd January 2007, 21:04
|
|
Senior Member
|
|
Join Date: Jul 2005
Posts: 148
Thanks: 13
Thanked 1 Time in 1 Post
|
|
This file doesn't exist on my system? Can anyone tell me how to make it autocreate the folders?
|

24th April 2007, 19:19
|
|
Junior Member
|
|
Join Date: Nov 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
applyng the patch
hi, to apply patch
1- download the rcube_imap.zip
2- uncompress it
3- check if exist rcube_imap.inc in your "roundcubefolder"/program/includes/
4- if exist put the rcube_imap.inc in "roundcubefolder"/program/includes/ and replace the old file..
sorry for my english
Ubuntuman from Argentina
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 06:31.
|
Recent comments
21 hours 59 min ago
1 day 3 hours ago
1 day 3 hours ago
1 day 3 hours ago
1 day 4 hours ago
1 day 6 hours ago
1 day 9 hours ago
1 day 9 hours ago
1 day 9 hours ago
1 day 10 hours ago