History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: CHD-1218
Type: New Feature New Feature
Status: Open Open
Assignee: Unassigned
Reporter: Robert Middleswarth
Votes: 1
Watchers: 2
Operations

Clone this issue
If you were logged in you would be able to see more operations.
Cerberus Helpdesk

CLONE Add the abilty to filter based on inbox downloaded from

Created: 17/May/09 07:45 PM   Updated: 17/Jun/10 06:08 AM
Fix Version/s: Sea of 1000 Wishes

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Text File chd-1218.patch (0.6 kb)


xP Priority: 2 - Significant Value
Marquee: Mail Filters, Mail


 Description   
(Like the ability to set mail routing rules based on which account is downloading the mail.)

You can currently route mail based on it to or cc fields but I need to be able to grab mail based on it bcc as well. I currently do it by using an inbox filter and a mod hildy and mike help me create but It would be nice to have something inside the mail routing process and the core product to do this without having to the hack the cold.

 All   Comments   Work Log   Change History      Sort Order:
Comment by Robert Middleswarth [28/May/09 11:31 AM]
It would be nice if at least the code to create

X-Downloaded-From: header

Could get added into 4.2#1 with a complete fix in 4.2#2

Thanks
Robert

Comment by Mike Queisser (WSU) [05/Jun/09 11:32 AM]
This has been tremendously useful for us. We put it in as a "Downloaded-Through" header. Please make this standard! :)

Comment by Mike Queisser (WSU) [10/Jun/09 10:04 AM]
For what it's worth, the code we used is here:

** in 4.2 -- /var/www/html/cerb4/plugins/cerberusweb.core/api/cron.classes.php
on Line 1111

We inserted
fwrite($fp,"\r\nDownloaded-From: $account->nickname");

So, the section it's in now looks like this.
Lines 1110-1115:

if($fp) {
fwrite($fp,"Downloaded-From: $account->nickname\r\n");
fwrite($fp,$headers,strlen($headers));
fwrite($fp,"\r\n\r\n");
fwrite($fp,$body,strlen($body));
@fclose($fp);
}

Of course this should probably be turned into a regular header and handled with the rest of the list, but that's how it's working now.

Comment by Mike Queisser (WSU) [10/Jun/09 10:05 AM]
Robert deserves the credit for this fix; he did 90% of it. Don't want to be a glory hound here or anything.

Comment by Robert Middleswarth [06/Aug/09 09:30 PM]
With the likely inclusion of http://www.wgmdev.com/jira/browse/CHD-1353 in either 4.2.4 or 4.3.0 a plugin could get us 90% of the way. We just need a header recording the account recording that the email was download from. This could be inserted without a change in interface. If you record a time stamp when download you could allow people to resolve the question of client date/time vers. download date/time giving the use the option of having a plugin that can reset that time and date inside a plug in.

Thanks
Robert

Comment by Robert Middleswarth [09/Jan/10 02:54 PM]
Patch agaist current Cerb5 development.

Comment by Robert Middleswarth [09/Jan/10 02:56 PM]
I am not mantaining a branch to track this patcch.

For Cerb5. http://github.com/rmiddle/cerb5/tree/jira/chd-1218
For Cerb4. It is in my master I will create a new comment when I break it out.

Thanks
Robert