[imp] Fetchmail multiple drivers/preferences
Hey guys, I've got a short little patch for handling multiple fetchmail drivers. Currently, if you create a new driver in imp/lib/Fetchmail/drivers, it becomes available but uses the 'fetchmailprefs' template - which may not wholly apply. This patch changes the template file to $driver . "prefs.html" so you don't have to confuse your users :) I realize the template driver has a bit more 'oomph' to it, like selecting which account to use or creating a new one. Maybe that should be split out into a separate file? This patch will break loading the template for creating or editing. In that case, it should be named 'imapprefs.html', as 'imap' is the driver name that comes with IMP by default. Rick --- /usr/local/www/data/horde/imp/fetchmailprefs.phpFri Jul 25 15:45:49 2008 +++ /usr/local/www/sub/beta/horde/imp/fetchmailprefs.phpSun Dec 7 13:17:29 2008 @@ -195,7 +195,11 @@ Prefs_UI::generateHeader(null, $chunk); Horde::addScriptFile('prototype.js', 'imp', true); Horde::addScriptFile('fetchmailprefs.js', 'imp', true); -echo $t->fetch(IMP_TEMPLATES . '/fetchmail/fetchmailprefs.html'); +if (!$driver){ + echo $t->fetch(IMP_TEMPLATES . '/fetchmail/fetchmailprefs.html'); +}else{ + echo $t->fetch(IMP_TEMPLATES . '/fetchmail/'.$driver.'prefs.html'); +} if (!$chunk) { require $registry->get('templates', 'horde') . '/common-footer.inc'; } -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [EMAIL PROTECTED]
[imp] Fetchmail again
This patch just lists the accounts that were created with the default 'imap' driver for fetching within IMP. I think it might be better in the long run to add another variable to the preference array that says whether or not this particular account should be available (or maybe 'enabled'?) for IMP to Fetch. For Example, the drivers I've added are for FetchYahoo and GotMail ('web' driver), and IMAPSync. These are all external to IMP, do not really conform to the standard account setup template, and don't run within IMP. I'm not entirely sure how, or if, these patches fit with mainstream IMP, but here it is again :) --- /usr/local/www/data/horde/imp/fetchmail.php Fri Jun 13 18:55:34 2008 +++ /usr/local/www/sub/beta/horde/imp/fetchmail.php Sun Dec 7 16:08:17 2008 @@ -66,10 +66,13 @@ if ($accounts) { $accountsval = array(); foreach (array_keys($accounts) as $key) { -$accountsval[] = array( -'key' => $key, -'label' => htmlspecialchars($fm_account->getValue('id', $key)) -); + if ( preg_match("/imap/i" , $fm_account->getValue('driver', $key) ) ){ +$accountsval[] = array( +'key' => $key, +'label' => htmlspecialchars($fm_account->getValue('id', $key)) + ); + } + } $t->set('accounts', $accountsval); } -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [EMAIL PROTECTED]
Re: [imp] disabling "fetch mail" feature
LÉVAI Dániel wrote: On Sunday 14 December 2008 18.45.41 LÉVAI Dániel wrote: Hi! I'm using IMP 4.3.2 with Horde 3.3.2. What is the less intrusive way of disabling IMP's "Fetch Mail" feature? There must be a better way than: find /my/horde/install/ -iname "*fetchmail*" -exec chmod 000 {} \; I can tell there is no such option in the Administration menu. Daniel What if you disable the preference completely in prefs.php ? I assume the if (!$pop3) would keep fetchmail from displaying for pop3 users, what happens when it's removed completely? Rick -- Rick Romero Need IT assistance? VF IT Services / VFEmail.net www.vfit.biz / www.vfemail.net -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Bottom Action bar missing after upgrade
Manilal K M wrote: Hello all, Yesterday I have upgraded IMP-4.3 to IMP-4.3.2. The upgraded process was smooth, but when I logged into my mailbox the bottom action bar seems to be missing. Is this a bug? Here is a screenshot: http://picasaweb.google.co.in/lh/photo/8IT1JxXeEMFOtTt4zzjbcg?feat=directlink thanks in advance You have 20 messages, when you have 21 messages, it will appear. Tricky huh? Threw me off too. I had a user swearing up and down the email was broken, but every time I logged into her account the bar was there. She was going back and forth above and below the number. Check imp/mailbox.php around line 893 (almost at the end) /* If there are 20 messages or less, don't show the actions/navbar again. */ if ($pageOb->msgcount > 0) { I set mine to 0 so it will always display if there is mail. Rick -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] switch to dimp view
In horde/config/registry.php change the status from notoolbar to active. dimp will then show up as an option for startup application. Rick Markus Braun wrote: Hello, how can i switch when i logged in imp with the H3 (4.2) version , to the dimp view? thx marcus _ http://redirect.gimas.net/?n=M0901xFTPMultimedia Ihr PC kann mehr! Home Entertainment leicht gemacht. -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org -- Rick Romero Need IT assistance? VF IT Services / VFEmail.net www.vfit.biz / www.vfemail.net -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] MIMP usage
I guess I should have read the OP. Goto www.vfemail.net - you can create a free account with MIMP access. Rick Scott Toderash wrote: I have a MIMP working, just set it up for the first time the other day. If IMP is working then MIMP is hardly any work at all. Looks ok on Palm, have not tested on BlackBerry yet. I would like to make a css for it and see if I can make it look better. As for functionality, it's great - most mobile IMAP mail doesn't work well with a lot of folders (would require too much syncing) - MIMP solves that problem. I can create a test account for you if you need, send me an email and I'll set something up for you. st Scott Toderash Chief Technology Officer Rainy Day 400-44 Princess Street, Winnipeg, MB R3B 1K2 www.rainyday.ca Phone: (204) 272-5000 Technical Support: supp...@rainyday.ca Accounting Inquiries: accou...@rainyday.ca Pay your bill online: www.rainyday.ca/payment Ralph Durkee wrote: Is anyone using MIMP? I've been asked about setting up a Horde MIMP on an existing LAMP mail server, but I need to try MIMP out on a couple of mobile devices before we invest the work. Is there anyone out there that could sell me a temporary e-mail account with MIMP access? Thanks! -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Horde/IMP performance and system requirements (50k+ accounts)
On Fri, 2009-03-20 at 10:33 +0100, LALOT Dominique wrote: > 2009/3/20 Janne Peltonen > > > Also, you'll have to look at mysql. For big databases, you need special > > > tuning as default values are not good. We are in he way to put (for HA) > > > another mysql server and we will split the access to several servers. > > > (replica) > > > > There was a way to do that? I know that you can create an > > active-passive replica system with MySQL, but didn't know that there's > > an active-active option. > > > Well, not exactly, you have to install a proxy if you just want to get one > visible host in your setup. In recent version of horde, you can also split > your sql. One server for writes, others for reading. I'm not very good for > mysql setup. My colleague has spent more time on that subject. He will be > back on monday. Active/Active (or master/master instead of master/slave) MySQL replication has been around for a while now. You could also avoid the proxy situation by using a simple round robin DNS. Since it's master/master it doesn't matter which one you connect to. If you're using persistent connections, then obviously that negates the round robin DNS a bit. I gotta throw my $.02 with alarms.php though. I don't have as many concurrent logins, but I have just as many accounts - and it just doesn't run good at all. Rick -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] IMP performance and message display
On Fri, 2009-03-20 at 07:39 -0400, John Murtari wrote: > I don't mean to rain on the Horde parade! But hopefully > the Horde development folks can look at the way these guys (Roundcube) > handle message display and get some ideas. > It may or may not be the specific coding. Horde is VERY modular, and I've been able to easily add custom modules to my installation. I also run an older Roundcube beta as an alternative, and do agree that it's faster. The reason I run the older version is because I integrated it's addressbook lookups with Horde. Roundcube is a mess. There are hardcoded selects all over the place. The latest version seems to have centralized that, but it's still all hard coded. It's possible that reading and processing all the different php files causes some of the slowness - maybe having an object oriented codebase slows things down as well - but I'll take a little slowness to have the modularity Horde has. Another thing I stumbled across was that PHPs IMAP functions on a Maildir folder cause all new/ mail to be moved to cur/ whether it's actually read or not (Evolution and I think Thunderbird doesn't do this). If your backend mail server is moving a ton of files on scanning in the INBOX, that could slow things down too. Rick -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Anybody using imp with dovecot/imap?
Quoting Harlan Stenn : I've had a couple of responses (thanks guys!) and I wanted to add that > while it shouldn't matter because I'm using IMAP and tbird->IMAP sees > the messages just fine, the back=end is using Maildir. > > H > -- > IMP mailing list - Join the hunt: http://horde.org/bounties/#imp > Frequently Asked Questions: http://horde.org/faq/ > To unsubscribe, mail: imp-unsubscr...@lists.horde.org I recall a similar issue long ago, and I had to futz with namespaces in dovecot.conf. I'm not sure if it's still required, but I did see the 'no subfolders' symptoms at some point, maybe even dovecot pre1.0.. namespace { inbox = yes location = prefix = INBOX. separator = . type = private } Rick -- IMP mailing list - Join the hunt: http://horde.org/bounties/#imp Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] unable to save sent message
You need to change your imp/config/prefs.php to 'INBOX.Sent' instead of just 'Sent'. Or edit your identity under Personal Options, and reselect your Sent mail folder. Rick Quoting Satish Alwani : Hi > > I am getting the following error > Can someone please help me > > > The folder "Sent" was not created. This is what the server said: > Client tried to access nonexistent namespace. (Mailbox name should > probably be prefixed with: INBOX.) > > Message sent successfully, but not saved to Sent > > > Regards, > Satish Alwani -- IMP mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Memcache Issue
PHP is trying to load memcache twice. Check your list of modules for duplicate memcache lines in your php.ini or extensions.ini. Rick Quoting Simon Brereton : Hi Yesterday I ran pear upgrade -c horde to upgrade imp to solve the missing IMP_Ajax issue from 5.0.2 During the installation, I was asked a question about memcache. I'd previously not touched memcache, but since the default answer was yes, that's what I went with. (Unfortunately, I don't remember what the question was). Since then I'm getting half-hourly emails from the cron daemon with the subject: [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete And in the body: PHP Warning: Module 'memcache' already loaded in Unknown on line 0 I have no wish really to set up a memcache server (it's disabled in the horde tab). Does anyone know what I might actually have said yes to? How I can revert it? Or otherwise fix the complaint from the cron daemon? "Unknown" is not exactly helpful in pointing me in the right direction... Thanks. Simon -- IMP mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org -- IMP mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] May be our horde installation was used for spam
Quoting Andrew Morgan : On Mon, 23 May 2011, Götz Reinicke - IT-Koordinator wrote: Hi, since saturday we got about 40 reports from spamcom.net and other mailserver providers, that 'we' are sending or are used for sending spam -- IMP mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] BUG: php 5 suhosin triggers MBOX_PREFIX separator
Quoting Michael M Slusarz : Quoting Olivier : suhosin[2446]: ALERT - ASCII-NUL chars not allowed within request variables - dropped variable 'view' (attacker 'XXX.XXX.XXX.XXX', file '.../services/ajax.php') Still waiting for someone to tell me how a NULL character, by itself, is a security threat. What if the variable is expected to be numeric and you start doing math on it? Isn't the purpose of suhosin to try and catch the stuff developers didn't catch? Rick -- IMP mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] BUG: php 5 suhosin triggers MBOX_PREFIX separator
Quoting Michael M Slusarz : Quoting Rick Romero : Quoting Michael M Slusarz : Quoting Olivier : suhosin[2446]: ALERT - ASCII-NUL chars not allowed within request variables - dropped variable 'view' (attacker 'XXX.XXX.XXX.XXX', file '.../services/ajax.php') Still waiting for someone to tell me how a NULL character, by itself, is a security threat. What if the variable is expected to be numeric and you start doing math on it? But what if the variable ends up being 0. That's a perfectly valid integer, but could cause problems if the application uses it as a divisor. Isn't the purpose of suhosin to try and catch the stuff developers didn't catch? But you can't break things that are supposed to work otherwise. NULL is a perfectly acceptable input in URL parameters. And, e.g. with the 0 value above, the interpreter CAN'T possibly catch/process all valid inputs. That is the duty of the application author. I dunno. I agree with your last paragraph, it's not suhosin's job to be a substitute for proper input validation. But kinda I think that contradicts 'NULL is a perfectly acceptable input..'. I mean - Do you really design an application and say "Yep, we're going to expect a user (or unknown entity) to send a NULL here" ? Assuming it's coded 'properly' that variable should have been pre-set in code, and upon receiving a URL param with data outside the expected range (numerical, >0), promptly ignored it. Or am I wrong? Rick -- IMP mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] BUG: php 5 suhosin triggers MBOX_PREFIX separator
Quoting Olivier : Yes, but is this the only edge effect of suhosin ? Olivier IMHO, suhosin is looking for things that PROBABLY shouldn't be happening. For the most part there won't be any issues, but the only way to guarantee the app works perfectly is to not interfere with it. You have the same risks when using any other web application firewall. Actually, I run suhosin on FreeBSD 7.2-stable and haven't run into any issues. PHP 5.2.14 with Suhosin-Patch 0.9.7 (cli) (built: Aug 29 2010 20:06:55) Rick Le 23/05/2011 21:04, azurIt a écrit : this can be disabled in suhosin: http://www.hardened-php.net/suhosin/configuration.html#suhosin.post.disallow_nul __ Od: "Michael M Slusarz" > Komu: imp@lists.horde.org Dátum: 23.05.2011 21:00 Predmet: Re: [imp] BUG: php 5 suhosin triggers MBOX_PREFIX separator Quoting Rick Romero : Quoting Michael M Slusarz : > >> Quoting Rick Romero : >> >>> Quoting Michael M Slusarz : >>> >>>> Quoting Olivier : >>>> >>>>>> suhosin[2446]: ALERT - ASCII-NUL chars not allowed within >>>>>> request variables - dropped variable 'view' (attacker >>>>>> 'XXX.XXX.XXX.XXX', file '.../services/ajax.php') >>>> >>>> Still waiting for someone to tell me how a NULL character, by >>>> itself, is a security threat. >>> >>> What if the variable is expected to be numeric and you start doing >>> math on it? >> >> But what if the variable ends up being 0. That's a perfectly valid >> integer, but could cause problems if the application uses it as a >> divisor. >> >>> Isn't the purpose of suhosin to try and catch the stuff developers >>> didn't catch? >> >> But you can't break things that are supposed to work otherwise. >> NULL is a perfectly acceptable input in URL parameters. >> >> And, e.g. with the 0 value above, the interpreter CAN'T possibly >> catch/process all valid inputs. That is the duty of the >> application author. > > I dunno. I agree with your last paragraph, it's not suhosin's job > to be a substitute for proper input validation. But kinda I think > that contradicts 'NULL is a perfectly acceptable input..'. > I mean - Do you really design an application and say "Yep, we're > going to expect a user (or unknown entity) to send a NULL here" ? Why not? That may be YOUR belief, or the way that you would code things, but the fact is *BOTH* PHP and the URL specs allow this to happen. So it is broken behavior to disallow this. Period. In our case, we need a way to indicate a mailbox is not an IMAP mailbox. I chose the method of including a null character in the mailbox string since this is the ONLY character not allowed in IMAP mailboxes (yes, all other control characters are allowed). It works great everywhere - as it should because it doesn't violate any spec or API - except when using suhosin. Suhosin = broken. Assuming it's coded 'properly' that variable should have been > pre-set in code, and upon receiving a URL param with data outside > the expected range (numerical, >0), promptly ignored it. Or am I > wrong? You would be wrong. Why do you want to ignore proper URL form data? If someone sends you an encoded null character (%00), that's a character within the allowed range so why should it be treated any differently? What if I have a page that sends the first 16 bytes of an image provided to it to the server to do some kind of MIME Magic testing - preventing the need to send the whole file. This binary data may contain nulls. Who are you to tell me that this is a "security" violation? Just because null characters can be used for things such as buffer overruns in certain languages does not mean they are evil. You simply can't remove them from a data stream without knowing the context. I would be very wary of running something that supposedly "increases" security on your machine when the actual theory behind that code is this deeply flawed. michael ___ Michael Slusarz [slus...@horde.org] -- IMP mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org -- IMP mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Spam Problem ... close to a solution ... may be you could help?
Quoting Andy Dorman : Also, the domain admin can also look at the email and if it is really spam, they can quickly shut down the spammer. Off-topic - I like to know how much spam they would have sent, so when I verify it's spam I redirect their outgoing mail to /dev/null but continue to count the recipients. It blows your mind sometimes... I also apply the same 'counting' to my entire outgoing queue. I've found that while the per-user limits are helpful, those smarter spammers will just create more accounts. By monitoring the entire mail flow for traffic spikes, I can shut down the entire outgoing queue and remove the abuser(s). I use qmail, but any SMTP server should work. Essentially: 1. Route all 'non-verified' users mail from the incoming SMTP server to 192.168.1.1. 2. Route all mail from 192.168.1.1 to 192.168.1.2. 3. 192.168.1.2 runs smtp-delay to 'pause' traffic on 192.168.1.1 4. Run a cronjob that counts the number of emails in queue on 192.168.1.1 every minute. You will need to tweak both the counts and delay times for your environment (and as you environment scales up). So for example, if you consistently have 20 emails in queue, and spike to 60 under normal operations, set your program to shut the queue down at 70 and alert the admin. You will obviously need staff to manage the alert (if you're swamped with spammers) and/or understanding from your users that this will occur. Rick -- IMP mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Options from server.php
Quoting mtec...@biof.ufrj.br: Since Horde 4/Imp 5 some of the configuration and preferences seams to be no more available. For example, no more server.php. So, how do I set parameters like: the server to connect to, protocol, login_tries, and the use of quota? Copying server.php to imp/config did not help. Horde 4.0.6 and Imp 5.0.7 installed via pear, Mysql DB see imp/config/backends.php backends.php will be overwritten on upgrade as it contains defaults. copy what you need to backends.local.php and edit that version, it will override the defaults in backends.php Rick -- IMP mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Controlling the reply in IMP 5
Quoting Jan Schneider : Zitat von Brent : Quoting Michael M Slusarz : Quoting D G Teed : I've just joined the list. Looking for way to control sender replies in IMP. Like Nick from a couple of days ago, our users (and helpdesk) are asking for a way to make the default reply to sender only or always chosen. While Michael Slusarz's reply is probably correct for many end users, it isn't desired from a management point of view. You assume the user is intelligent and observant. We are talking about people who respond to phishing emails. Don't assume too much of the user! So how is locking someone into the opposite behavior also NOT assuming too much of the user? It's exactly the same, just with a different default behavior. Thus, the question becomes what is the proper default behavior. I've given the reasoning why we choose Reply to All. I have yet to see a single valid argument as to why Reply to Sender should be the default. The primary reasoning lies in the fact the button is labeled "Reply", which in all other email programs means "reply to sender". If you're going to default the "Reply" button to "Reply to All", then it should be labeled as such. It's not defaulting to Reply to All. Which reply type it is, is decided dynamically, depending on who the original message's recipient(s) were. Attempting 3rd person observation... As far as the basic user is concerned, it's always Reply to All. If there is only one recipient, the 'All' is just the original Sender. That's not fancy. BUT - If you add in that if one of the recipients is not your identities, then it's definitely dynamic. Now, that's fancy for an advanced user, most user's aren't going to run into that situation - therefore the functionality appears incorrect to them. Rick -- IMP mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
[imp] IMP, Dovecot and multiple namespaces
Hey guys, I'm wondering what the best way is to be backwards compatible with Courier mailbox formats and not duplicate mailbox trees with Dovecot. Is anyone doing this right now? My Dovecot 2.0.13 is configured as follows for Namespaces: namespace { inbox = yes location = prefix = separator = . } namespace { hidden = yes inbox = no list = no location = prefix = INBOX. separator = . } So I should have an INBOX, plus additional root folders - rather than the Courier default of all folders being subfolders of the INBOX. So when I run LIST in IMAP I get - 08 LIST "" % * LIST (\HasChildren) "." "INBOX" * LIST (\HasChildren) "." "Spam" * LIST (\HasNoChildren) "." "Sent" * LIST (\HasNoChildren) "." "Trash" * LIST (\HasNoChildren) "." "Junk" * LIST (\HasNoChildren) "." "Drafts" Which looks fine. The problem is, IMP (old and new) show two sets of mailboxes (one for each namespace) like so: INBOX Spam Spam.Over10 Sent INBOX.Spam INBOX.Spam.Over10 INBOX.Sent (etc) I assume IMP is walking the INBOX because it says it has Children, and displaying those Children. I would like IMP users to only see the non 'hidden' namespace, but I'm not sure how to accomplish that without completely turning it off. Any ideas? Rick -- IMP mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Fetchmail memories...
Quoting Michael M Slusarz : Quoting cjdl01 : I have searched the mail list archives, and I didn't really see an answer to this (though I have seen the question posited a few times). Will there ever be a fetchmail setting in imp again, like there was in horde3? I (and my users) really liked that function, and it was nice that anyone could set it up (they didn't need to get with me). Fetchmail was worthless in many cases since a fetchmail process could easily exceed the maximum PHP process time/memory limit. I agree. The best part was the interface, but to login to Horde to have Fetchmail run was silly. I was really hoping it would stick around - I have yet to upgrade in part because of this loss of functionality. Although for me, what's really lost was the interface to store/manage the remote host info, not the actual fetchmail function. For me, it's much more useful to extract the data to a fetchmail file. The big issue with running Fetchmail like this is SSL issues, if you can't validate the remote cert, Fetchmail will just barf and stop the whole process - I think. I've had this for a while, have fun with it. Looks like I originally wrote this like 10 years ago, so acronyms apply with prejudice - IIRC, YMMV, IANAL, blah blah. :) Notes 1. Below code snippit requires additional field in the Fetchmail prefs called 'serverfetch', to trigger creation of fetchmail.rc file entry 2. One line per remote mailbox. 3. Run as (on FreeBSD) - /usr/local/bin/fetchmail -s -f /home/root/fetchmail/fakefilefetchmail --auth password 2>&1 >/dev/null 4. Far from secure, though you only need outgoing connectivity from an internal machine. No need for anyone other than an admin to be on it (where they could see user's passwords in a 'ps') 5. All users get dumped to a single instance - watch run times $query=mysql_query("SELECT pref_value,pref_uid from horde.horde_prefs where pref_scope LIKE 'imp' and pref_name LIKE 'fm_accounts' ORDER by pref_uid"); /* Always dump mysql_error(), just in case */ if (mysql_num_rows($query) == 0){ die('MySQL Error: ' . mysql_error()); } $last_email="None"; $email_fm_count=0; $localdomains=array('localdom1.com', 'localdom2.com'); // Used to prevent fetching 'self' /* Begin Loop of results (One result per uid)*/ for ($i = 0; $i /* Begin Array loop to create values (possibly multiple arrays per result) */ foreach ($newarray as $curarray){ if (is_array($curarray)){ if ($curarray['serverfetch'] == 1){ if (preg_match("/imap/i", $curarray['driver']) ) { //print_r(array_values($curarray)); //echo "ServerFetch is on \n"; $enablessl = ""; $sslpath = " sslcertpath /usr/local/share/certs/ "; $sslpath =""; $remotebox = ""; $proto = ""; $keep = ""; $fetchall = ""; $uidl = ""; $fastuidl = ""; $v_domain = ""; $vl_domain = ""; //Limit number of Fetchmail accounts per mailbox if ($last_email == $email ){ $email_fm_count++; }else { $email_fm_count=1; $last_email = $email; } // echo $last_email . " " . $email_fm_count . "\n"; if ($email_fm_count > 8) { break; } // 8 accounts per local mailbox if ($curarray['server'] == "") {break;} //Skip empty server if (strlen( $curarray['server'] ) < 5 ) {break; } // Skip bad server if (strlen( $curarray['username'] ) < 3 ) {break; } if ($curarray['username'] == $email) {break;} //Skip fetch to self $v_domain = explode('.', $curarray['server']); $v_domain = array_reverse($v_domain); //print_r($v_domain); $vl_domain = $v_domain[1].".". $v_domain[0]; //print $vl_domain."\n"; if (in_array($vl_domain, $localdomains)) { break; } // Skip 'alias' hack if (preg_match("/gmail/i", $curarray['server'])){$enablessl="ssl" . $sslpath;} if (preg_match("/slashmail/i", $curarray['server'])){$enablessl="ssl" . $sslpath;} if (preg_match("/pop/i", $curarray['protocol'])){ $proto="POP3"; if (preg_match("/mail.com/i", $curarray['server'])){ $fastuidl = " fastuidl 1 "; } $uidl = " uidl "; } if (preg_match("/imap/i", $curarray['protocol'])){$proto="IMAP";} if (preg_match("/ssl/i", $curarray['protocol'])){$enablessl="ssl" . $sslpath;} if ($curarray['rmailbox'] && $proto != "POP3"){
[imp] 6.1.3 crtl + - resize loses sidebar in Firefox
I didn't see this as a fixed item in the last update, but in Firefox 23.0.1 when I hit CTRL + , the font sizes increase and everything is good. If I hit CTRL -, at any time and change the font size to less than the original font size, both the folder scroll bar and message list scroll bar disappear. This also occurs in Chrome 29.0.1547.66 m Rick -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
[imp] Odd problem with 6.1.3 and forwarding
Just wondering if I'm the only one with this issue - In dyamic view, when I click Forward a new window will open to compose with the Forwarded message attached. If I select 'Click this box to add the original message text to the body', I get a 'Error when communicating with server' Choosing either of the dropdowns from the Forward menu does work correctly. The log shows: EMERG: HORDE5 [imp] Could not retrieve message data from the mail server. [pid 11315 on line 286 of "/usr/share/horde/imp/lib/Dynamic/Compose.php"] Using Dovecot 2.1.12 with imapproxy. Rick -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
[imp] PGP key for each identity?
It looks like I can only store one PGP key to sign outgoing mail - but I want to send as a different identity. Did I overlook a setting somewhere or is that capability just not available at this time? Rick -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Email Privacy Test
I have IMP 6.1.7, and I pass the test. The email you recieved CONTAINS the img src='#' tag - so your browser followed it. I'm running Firefox 17.0.1 ESR, and no problem. But Chrome caused the srcset error to get flagged - probably because of the javascript in the From field. It's looks broken in Chrome compared to FF. I suppose IMP could escape that though. Rick Quoting Simon Wilson : Hi List, I just tried the privacy test at https://emailprivacytester.com, and my setup is failing one of the tests: "Test - Img srcset attr In the of the HTML part, place a tag as follows: http://TRACKING_URL/ 1x">" Any ideas on how I can tighten this one up? This is on Imp 6.1.7, php 5.3.28. Simon. -- Simon WilsonM: 0400 12 11 16 -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Email Privacy Test
Quoting Michael M Slusarz : Quoting Michael M Slusarz : Quoting Simon B : On 30 Apr 2014 13:34, "Rick Romero" wrote: I have IMP 6.1.7, and I pass the test. The email you recieved CONTAINS the img src='#' tag - so your browser followed it. I'm running Firefox 17.0.1 ESR, and no problem. But Chrome caused the srcset error to get flagged - probably because of the javascript in the From field. It's looks broken in Chrome compared to FF. I suppose IMP could escape that though. Rick Quoting Simon Wilson : Hi List, I just tried the privacy test at https://emailprivacytester.com, and my setup is failing one of the tests: "Test - Img srcset attr In the of the HTML part, place a tag as follows: http://TRACKING_URL/ 1x">" Any ideas on how I can tighten this one up? This is on Imp 6.1.7, php 5.3.28. I don't know what imp I have, I have a git install that hasn't been updated in a few months, but about half of my tests are red :( The only consolation is the android client is 50% worse... Strange, because IMP tested 100% the last time I looked at this a few months ago (believe it was 6.1 branch). On all browsers. http://bugs.horde.org/ticket/12886 I don't think that's the same - plus it'll vary by site. If IMP is configured to display inline images automatically (though I don't have an SVG viewer defined), then the tests associated with the image tracking will go red. If your account is set to automatically respond to read requests, then another set of tests will go red. My install is set to not show anything inline, or take any action, without user intervention. I thought that was the default and my install passed 100%, except for the case of Chrome and what I assume was due to the Javascript in the From address, maybe that check has been added or Chome changed since December.. Rick -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] IMP H5 (6.2.0alpha1)
Quoting Jan Schneider : The Horde Team is pleased to announce the first alpha release of the Internet Mail Program (IMP) version H5 (6.2.0). The major changes compared to IMP H5 (6.1) versions are: * Added access to remote email accounts. The Horde Team. Awesome! Looks like a nice feature set! Is the remote email account option just a second IMAP connection? I'm wondering how much effect it will have on system load. I would assume if the remote mailbox treated as just another folder, via a 2nd connection, then all should be ok ? Rick -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
[imp] IMP 6.2 & IE 11 & dynamnic mode - forever loading
I seem to have a problem with IMP 6.2 and IE 11 - when logging in with dynamic Mode, the mailbox never loads. ('Loading...' is always displayed.) If I login to Horde, using Basic mode, IMP will load the mailbox. This doesn't happen on any other browsers. I've putzed with IE settings, if I go into F12 and set the document mode to '10', then it works. I sort of want to just implement this patch and be done with it http://lists.horde.org/archives/imp/Week-of-Mon-20131216/055733.html Anyone else having IE11 issues? Anyone else even have IE11 users? Rick -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] IMP 6.2 & IE 11 & dynamnic mode - forever loading
Quoting Michael M Slusarz : Quoting Rick Romero : I seem to have a problem with IMP 6.2 and IE 11 - when logging in with dynamic Mode, the mailbox never loads. ('Loading...' is always displayed.) Works fine for me. Yeah I don't use IE (so no garbage) on Windows 7 Pro. Other Windows 7/IE11 users complained after I updated to 6.2.0, which is why it came up. I'm on Debian - so maybe there's a (IE11 only?) problem with the non-official Debian packaging. \o/ But I only notify the list because it's not just me, though it may just be my install. This is 2nd time I've had to force IE10 compatibility, so I have no issue just throwing the header code in PageOutput.php (I already modify Mime/Headers.php on upgrades, so it's in my expected change list.) Rick -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] IMP 6.2 & IE 11 & dynamnic mode - forever loading
Quoting Michael M Slusarz : Quoting Rick Romero : Quoting Michael M Slusarz : Quoting Rick Romero : I seem to have a problem with IMP 6.2 and IE 11 - when logging in with dynamic Mode, the mailbox never loads. ('Loading...' is always displayed.) Works fine for me. Yeah I don't use IE (so no garbage) on Windows 7 Pro. Other Windows 7/IE11 users complained after I updated to 6.2.0, which is why it came up. I'm on Debian - so maybe there's a (IE11 only?) problem with the non-official Debian packaging. \o/ But I only notify the list because it's not just me, though it may just be my install. I have tested with IE 11, and I have several customers that do compatibility tests with IE 11, and nobody can reproduce this issue. Ok - I appreciate the follow up. Rick -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
[imp] OSX 10.9.4 Safari - Session Expired when attaching - anyone else?
Hi guys, I have another quirk. A user has reported that when attaching files to a new message when using Safari on OSX 10.9.4, the web page appears to hang and then say 'session expired'. I cannot replicate this on OS 10.7.5. The user can user Chrome on 10.9.4, and attachments are successful. Does anyone have an up to date 10.9.4 that can double check this for me? Thanks! Rick -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] Full Sent folders
Quoting Art Stephens : Would be nice if we could treat Sent folders the same way as Trash folders. Customer Sent folders are taking their accounts over quota. Not an IMP issue, but if you're using Dovecot on the backend you could include Sent in quota ignore: http://wiki2.dovecot.org/Quota/Configuration There should also be a quota warning email autogenerated (for users to ignore - but then they can't say they didn't know). Rick -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
Re: [imp] IMP Login Issues With Internet Explorer
Quoting Adam Tauno Williams : Horde 5.2.3 / IMP 6.2.4 Firefox 31.20.0 Internet Explorer 11.0.13 Logging into my instance with Firefox [or Epiphany] works without incident. Logging into Internet Explorer fails, it just says authentication fails and goes back to the login page. Anyone else seen this? There appears to be no errors, warnings, etc... Not a real fix, but I had problems with both Horde logins and my own simple Javascript login box with IE11, so I've forced version downgrades on my home page, and I also have in my notes for Horde upgrades: fix IE 11 issues: edit /usr/share/php/Horde/PageOutput.php public function header(array $opts = array()) { global $injector, $language, $registry, $session; /* IE11 */ if($GLOBALS['browser']->isBrowser('msie') && $GLOBALS['browser']->getMajor() == 11){ $this->addMetaTag('X-UA-Compatible','IE=EmulateIE10',true); } $view = new Horde_View(array( -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org
[imp] Alternate IMAP SQL Cache example please? :)
Hi, I have a 'remote' server that has a local readonly SQL repliaca, and I'd like the IMAP Cache writes to be SQL locally. backends.php refers to: - Horde_Imap_Client_Cache_Backend object: Directly configure the * caching backend to use. For advanced users only. Unfortunately I'm not advanced enough to know how to utilize that. Can someone provide an example I could modify? Memcache doesn't seem to be doing a very good job of caching. Thanks, Rick -- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org