Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DBMail: dev

[dbmail-memcache] regex for attachments

 

 

DBMail dev RSS feed   Index | Next | Previous | View Threaded


skraps at hushmail

Apr 9, 2012, 6:32 PM

Post #1 of 2 (231 views)
Permalink
[dbmail-memcache] regex for attachments

I think this is the proper regex for grabbing attachments. This was
tested on a message taken from a mbox, I have not setup dbmail along
side post fix on my test environment.

^[-]{1,19}[0-9]{1,}n[a-zA-Z0-9-: /\";=n.]{1,}Content-Disposition:
attachment;[a-zA-Z0-9-: /\";-+=n.]{1,}[^$-]{1,}[0-9]{1,}[-]{1,}

I think this is right any objections?


paul at nfg

Apr 10, 2012, 12:23 AM

Post #2 of 2 (211 views)
Permalink
Re: [dbmail-memcache] regex for attachments [In reply to]

On 04/10/2012 03:32 AM, skraps [at] hushmail wrote:
> I think this is the proper regex for grabbing attachments. This was
> tested on a message taken from a mbox, I have not setup dbmail along
> side post fix on my test environment.
>
> ^[\-]{1,19}[0-9]{1,}\n[a-zA-Z0-9\-:\
> \/\\";\=\n\.]{1,}Content-Disposition:\ attachment\;[a-zA-Z0-9\-:\
> \/\\";\-\+\=\n\.]{1,}[^$\-]{1,}[0-9]{1,}[\-]{1,}
>
> I think this is right any objections?

DBMail already does full mime deconstruction and single instance storage
of mime parts. Leverage that!


--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, skype, linkedin

* Premium Hosting Services and Web Application Consultancy *

www.nfg.nl/info [at] nfg/+31.85.877.99.97
________________________________________________________________
_______________________________________________
Dbmail-dev mailing list
Dbmail-dev [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

DBMail dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.