Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st July 2006, 23:45
TobiasTM TobiasTM is offline
Member
 
Join Date: Nov 2005
Location: Uffing am Staffelsee
Posts: 52
Thanks: 8
Thanked 0 Times in 0 Posts
Send a message via ICQ to TobiasTM
Thumbs up 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 00:16.
Reply With Quote
Sponsored Links
  #2  
Old 24th July 2006, 18:38
Davide Davide is offline
Senior Member
 
Join Date: Jul 2006
Posts: 123
Thanks: 16
Thanked 9 Times in 8 Posts
Default 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)
Reply With Quote
  #3  
Old 24th July 2006, 23:18
TobiasTM TobiasTM is offline
Member
 
Join Date: Nov 2005
Location: Uffing am Staffelsee
Posts: 52
Thanks: 8
Thanked 0 Times in 0 Posts
Send a message via ICQ to TobiasTM
Default

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 ?
Reply With Quote
  #4  
Old 25th July 2006, 08:53
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,177
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 25th July 2006, 09:10
Davide Davide is offline
Senior Member
 
Join Date: Jul 2006
Posts: 123
Thanks: 16
Thanked 9 Times in 8 Posts
Default

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.
Attached Files
File Type: zip rcube_imap.zip (12.1 KB, 514 views)

Last edited by Davide; 25th July 2006 at 09:12.
Reply With Quote
  #6  
Old 18th September 2006, 22:03
schmidtedv schmidtedv is offline
Senior Member
 
Join Date: Jun 2006
Location: Germany, Kaarst
Posts: 152
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via MSN to schmidtedv Send a message via Skype™ to schmidtedv
Default

...newest beta-package in other thread does this already...
Reply With Quote
  #7  
Old 3rd January 2007, 20:04
m u r m u r is offline
Senior Member
 
Join Date: Jul 2005
Posts: 152
Thanks: 13
Thanked 1 Time in 1 Post
Send a message via AIM to m u r Send a message via MSN to m u r
Default

This file doesn't exist on my system? Can anyone tell me how to make it autocreate the folders?
Reply With Quote
  #8  
Old 24th April 2007, 18:19
ubuntuman ubuntuman is offline
Junior Member
 
Join Date: Nov 2005
Posts: 6
Thanks: 0
Thanked 2 Times in 1 Post
 
Default 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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC5 - phpBB mails are stuck in /var/spool/mail yaniv.fer Server Operation 1 19th May 2006 16:17
How to send mails using php mail function outside domain pankaj Technical 1 19th December 2005 22:09
How to retrive mails from 2nd server dstme Server Operation 3 1st December 2005 18:28


All times are GMT +2. The time now is 20:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.