asim hafeez | 2 Dec 2008 16:19
Picon

mailfilter forwarding

Hi

Is there any way that i could filter som from email and forward them to any external email address. I tried this.


if (!/^From:.*(asimhafeez) <at> .*/)
{
     to "!asim.mcp <at> gmail.com"
}

But the above does not work.
Please help

--



Best Regards
Asim

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Sam Varshavchik | 3 Dec 2008 00:13
Gravatar

Re: mailfilter forwarding

asim hafeez writes:

> Hi
> 
> Is there any way that i could filter som from email and forward them to 
> any external email address. I tried this.
> 
> 
> if (!/^From:.*(asimhafeez) <at> .*/)
> {
>      to "!<URL:mailto:asim.mcp <at> gmail.com>asim.mcp <at> gmail.com"
> }
> 
> But the above does not work.

Define "does not work".

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Picon

Quota > 4GB and maildirsize create problem

I have a problem and a question.
I have users with quota over 4GB in a 32bit server and when maildrop
creates the maildirsize, it uses 1GB quota.
I have tested maildrop in a 64bit server and this problem didn't
happen. Unhappily I can't use only 64bit server right now.

My problem is:
Is possible to use quota > 4GB in 32bit servers ?

I have doubt about the maildirsize creating process. When maildrop
create the file, if it does not exist? Always (when deliverying a
message)? Sometimes (time specific process)?

Thanks

--

-- 
Carlos Eduardo Tavares Terra
GNU/Linux #413291 [http://counter.li.org]
Slackware Linux

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
Todd Lyons | 16 Dec 2008 02:57
Gravatar

Re: Quota > 4GB and maildirsize create problem

On Mon, Dec 15, 2008 at 4:19 PM, Carlos Eduardo Tavares Terra
<eduardo.terra <at> gmail.com> wrote:
> I have a problem and a question.
> I have users with quota over 4GB in a 32bit server and when maildrop
> creates the maildirsize, it uses 1GB quota.
> I have tested maildrop in a 64bit server and this problem didn't
> happen. Unhappily I can't use only 64bit server right now.
>
> My problem is:
> Is possible to use quota > 4GB in 32bit servers ?

I was about to write an email about this very topic.  There is a patch
that someone wrote that patches the maildir support for the maildrop
package so that it can handle quota larger than 2 GB (you wrote 4 GB,
but in my tests, I started getting errors above 2 GB).  The patch is
located here:

http://japc.uncovering.org/patches/maildrop_64bit_quota.diff

> I have doubt about the maildirsize creating process. When maildrop
> create the file, if it does not exist? Always (when deliverying a
> message)? Sometimes (time specific process)?

It applies cleanly to the version of maildrop I run (2.0.4), but I
don't know about the most recent version.

This is where you stand on the rooftops and proclaim Sam's programming
prowess!  The courier packages all share the same maildir code!  You
merely need to apply that same patch to the courier package, rebuild,
install, and voila...a large quota supporting package is present in
the imap and pop portions as well.

In my case, it applied cleanly to courier version 0.53.2.  Again, I'm
not sure if the patch will apply cleanly to the most recent version of
courier, though.  I do not know how much, if any, the code for maildir
support has changed since the versions I'm using.
--

-- 
Regards...      Todd
All truth passes through three stages. First, it is ridiculed. Second,
it is violently opposed. Third, it is accepted as being self-evident.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
Sam Varshavchik | 16 Dec 2008 02:30
Gravatar

Re: Quota > 4GB and maildirsize create problem

Carlos Eduardo Tavares Terra writes:

> I have a problem and a question.
> I have users with quota over 4GB in a 32bit server and when maildrop
> creates the maildirsize, it uses 1GB quota.
> I have tested maildrop in a 64bit server and this problem didn't
> happen. Unhappily I can't use only 64bit server right now.
> 
> My problem is:
> Is possible to use quota > 4GB in 32bit servers ?

Only if you compile maildrop with whatever compiler flags your platform 
requires to enable large file support.

> I have doubt about the maildirsize creating process. When maildrop
> create the file, if it does not exist? Always (when deliverying a
> message)? Sometimes (time specific process)?

maildrop uses the file if it exists. It will be created if MAILDIRQUOTA is 
set.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Jose Celestino | 16 Dec 2008 03:28
Picon
Gravatar

Re: Quota > 4GB and maildirsize create problem

Words by Todd Lyons [Mon, Dec 15, 2008 at 05:57:08PM -0800]:
> On Mon, Dec 15, 2008 at 4:19 PM, Carlos Eduardo Tavares Terra
> <eduardo.terra <at> gmail.com> wrote:
> > I have a problem and a question.
> > I have users with quota over 4GB in a 32bit server and when maildrop
> > creates the maildirsize, it uses 1GB quota.
> > I have tested maildrop in a 64bit server and this problem didn't
> > happen. Unhappily I can't use only 64bit server right now.
> >
> > My problem is:
> > Is possible to use quota > 4GB in 32bit servers ?
> 
> I was about to write an email about this very topic.  There is a patch
> that someone wrote that patches the maildir support for the maildrop
> package so that it can handle quota larger than 2 GB (you wrote 4 GB,
> but in my tests, I started getting errors above 2 GB).  The patch is
> located here:
> 
> http://japc.uncovering.org/patches/maildrop_64bit_quota.diff
> 
> > I have doubt about the maildirsize creating process. When maildrop
> > create the file, if it does not exist? Always (when deliverying a
> > message)? Sometimes (time specific process)?
> 
> It applies cleanly to the version of maildrop I run (2.0.4), but I
> don't know about the most recent version.
> 

Well, if it doesn't I'll do a diff to the most recent version.

Best regards.

--

-- 
Jose Celestino | http://japc.uncovering.org/files/japc-pgpkey.asc
----------------------------------------------------------------
"One man’s theology is another man’s belly laugh." -- Robert A. Heinlein

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
email builder | 16 Dec 2008 06:57
Picon
Favicon

Re: Quota > 4GB and maildirsize create problem


> > I have a problem and a question.
> > I have users with quota over 4GB in a 32bit server and when maildrop
> > creates the maildirsize, it uses 1GB quota.
> > I have tested maildrop in a 64bit server and this problem didn't
> > happen. Unhappily I can't use only 64bit server right now.
> >
> > My problem is:
> > Is possible to use quota > 4GB in 32bit servers ?
> 
> I was about to write an email about this very topic.  There is a patch
> that someone wrote that patches the maildir support for the maildrop
> package so that it can handle quota larger than 2 GB (you wrote 4 GB,
> but in my tests, I started getting errors above 2 GB).  The patch is
> located here:
> 
> http://japc.uncovering.org/patches/maildrop_64bit_quota.diff

Probably a naive question, but is there a good reason why this isn't incorporated into all the relevant
Courier packages?

Either way, thanks for pointing this out -- I was under the impression that I was out of luck unless I went out
and bought new hardware!  Whew!!!!!

> > I have doubt about the maildirsize creating process. When maildrop
> > create the file, if it does not exist? Always (when deliverying a
> > message)? Sometimes (time specific process)?
> 
> It applies cleanly to the version of maildrop I run (2.0.4), but I
> don't know about the most recent version.
> 
> This is where you stand on the rooftops and proclaim Sam's programming
> prowess!  The courier packages all share the same maildir code!  You
> merely need to apply that same patch to the courier package, rebuild,
> install, and voila...a large quota supporting package is present in
> the imap and pop portions as well.
> 
> In my case, it applied cleanly to courier version 0.53.2.  Again, I'm
> not sure if the patch will apply cleanly to the most recent version of
> courier, though.  I do not know how much, if any, the code for maildir
> support has changed since the versions I'm using.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
Picon

Re: Quota > 4GB and maildirsize create problem

This 64bit patch can be used in 32bit arch ?
I have found this patch some days ago, but I thought this was to 64bit
arch only.

Thanks

On Mon, Dec 15, 2008 at 11:57 PM, Todd Lyons <tlyons <at> ivenue.com> wrote:
> On Mon, Dec 15, 2008 at 4:19 PM, Carlos Eduardo Tavares Terra
> <eduardo.terra <at> gmail.com> wrote:
>> I have a problem and a question.
>> I have users with quota over 4GB in a 32bit server and when maildrop
>> creates the maildirsize, it uses 1GB quota.
>> I have tested maildrop in a 64bit server and this problem didn't
>> happen. Unhappily I can't use only 64bit server right now.
>>
>> My problem is:
>> Is possible to use quota > 4GB in 32bit servers ?
>
> I was about to write an email about this very topic.  There is a patch
> that someone wrote that patches the maildir support for the maildrop
> package so that it can handle quota larger than 2 GB (you wrote 4 GB,
> but in my tests, I started getting errors above 2 GB).  The patch is
> located here:
>
> http://japc.uncovering.org/patches/maildrop_64bit_quota.diff
>
>> I have doubt about the maildirsize creating process. When maildrop
>> create the file, if it does not exist? Always (when deliverying a
>> message)? Sometimes (time specific process)?
>
> It applies cleanly to the version of maildrop I run (2.0.4), but I
> don't know about the most recent version.
>
> This is where you stand on the rooftops and proclaim Sam's programming
> prowess!  The courier packages all share the same maildir code!  You
> merely need to apply that same patch to the courier package, rebuild,
> install, and voila...a large quota supporting package is present in
> the imap and pop portions as well.
>
> In my case, it applied cleanly to courier version 0.53.2.  Again, I'm
> not sure if the patch will apply cleanly to the most recent version of
> courier, though.  I do not know how much, if any, the code for maildir
> support has changed since the versions I'm using.
> --
> Regards...      Todd
> All truth passes through three stages. First, it is ridiculed. Second,
> it is violently opposed. Third, it is accepted as being self-evident.
>

--

-- 
Carlos Eduardo Tavares Terra
GNU/Linux #413291 [http://counter.li.org]
Slackware Linux

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
Rick Romero | 16 Dec 2008 14:14
Favicon

Re: Quota > 4GB and maildirsize create problem

Todd Lyons wrote:
> On Mon, Dec 15, 2008 at 4:19 PM, Carlos Eduardo Tavares Terra
> <eduardo.terra <at> gmail.com> wrote:
>   
>> I have a problem and a question.
>> I have users with quota over 4GB in a 32bit server and when maildrop
>> creates the maildirsize, it uses 1GB quota.
>> I have tested maildrop in a 64bit server and this problem didn't
>> happen. Unhappily I can't use only 64bit server right now.
>>
>> My problem is:
>> Is possible to use quota > 4GB in 32bit servers ?
>>     
>
> I was about to write an email about this very topic.  There is a patch
> that someone wrote that patches the maildir support for the maildrop
> package so that it can handle quota larger than 2 GB (you wrote 4 GB,
> but in my tests, I started getting errors above 2 GB).  The patch is
> located here:
>
> http://japc.uncovering.org/patches/maildrop_64bit_quota.diff
>   

Awesome.  I was just having a similar problem with vpopmail on 
OpenSolaris.  Quota was working just fine with 32bit kernels, but on 
OpenSolaris - which tells me it's 64bit - I got lopped off at 2GB.  This 
off_t to 64bit_t change fixed it for me. 

Thanks - excellent timing :)

Rick

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
email builder | 18 Dec 2008 01:43
Picon
Favicon

Re: Quota > 4GB and maildirsize create problem


> This 64bit patch can be used in 32bit arch ?
> I have found this patch some days ago, but I thought this was to 64bit
> arch only.

Oh.  Can someone clarify?

> >> I have a problem and a question.
> >> I have users with quota over 4GB in a 32bit server and when maildrop
> >> creates the maildirsize, it uses 1GB quota.
> >> I have tested maildrop in a 64bit server and this problem didn't
> >> happen. Unhappily I can't use only 64bit server right now.
> >>
> >> My problem is:
> >> Is possible to use quota > 4GB in 32bit servers ?
> >
> > I was about to write an email about this very topic.  There is a patch
> > that someone wrote that patches the maildir support for the maildrop
> > package so that it can handle quota larger than 2 GB (you wrote 4 GB,
> > but in my tests, I started getting errors above 2 GB).  The patch is
> > located here:
> >
> > http://japc.uncovering.org/patches/maildrop_64bit_quota.diff
> >
> >> I have doubt about the maildirsize creating process. When maildrop
> >> create the file, if it does not exist? Always (when deliverying a
> >> message)? Sometimes (time specific process)?
> >
> > It applies cleanly to the version of maildrop I run (2.0.4), but I
> > don't know about the most recent version.
> >
> > This is where you stand on the rooftops and proclaim Sam's programming
> > prowess!  The courier packages all share the same maildir code!  You
> > merely need to apply that same patch to the courier package, rebuild,
> > install, and voila...a large quota supporting package is present in
> > the imap and pop portions as well.
> >
> > In my case, it applied cleanly to courier version 0.53.2.  Again, I'm
> > not sure if the patch will apply cleanly to the most recent version of
> > courier, though.  I do not know how much, if any, the code for maildir
> > support has changed since the versions I'm using.
> > --
> > Regards...      Todd
> > All truth passes through three stages. First, it is ridiculed. Second,
> > it is violently opposed. Third, it is accepted as being self-evident.
> >
> 
> 

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/

Gmane