[Mimedefang] OT: Quoted text detection

2018-06-27 Thread Amit Gupta
In my mimedefang-filter, I'm trying to segment quoted text from an original email I realize this question is more to do with actual email processing, but is there any trick within MD, MIME Tools or another library that can help me out? I realize there is no 100% accurate way to do it. I'm just tr

[Mimedefang] Is calling action_rebuild() idempotent?

2017-12-14 Thread Amit Gupta
If I call action_rebuild() a couple times in my filter_end code, could it have different effects depending on when it's called? ___ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. V

[Mimedefang] delete part best practice

2017-12-12 Thread Amit Gupta
Given a parent entity and child entity, what's the best way to delete the child entity? I see code that clears all parts for an entity and then selectively adds them back in. I would like to scan through and selectively remove instead. ___ NOTE: If ther

Re: [Mimedefang] Part’s parent content-type

2017-11-04 Thread Amit Gupta
Thank you Dianne! This is going to sound silly, but what I'm looking for is a function like $parent_part = get_parent ($top_entity, $part); So given the top level entity and a specific part, the function will return the MIME::Entity for the parent of $part. I'm struggling with getting the recurs

[Mimedefang] Part’s parent content-type

2017-11-03 Thread Amit Gupta
When iterating through the parts of a MIME::Entity using parts_DFS, what would be the best way to get a reference to a part’s parent entity or parent entity type? I’m trying to do some logic on an HTML part depending on if the parent type is multipart/related or not. I was thinking of just sett

[Mimedefang] Easy way to run a test of filter from CLI

2017-09-14 Thread Amit Gupta
If I have a .eml raw file of an email, is there a simple way to run it through a mimedefang.pl/mimedefang-filter process and get the output? I wanted to created a very basic test suite for parsing of some emails without needed to actually send the email through the MTA. Any tips on how to accompli

Re: [Mimedefang] MIMEDefang Digest, Vol 165, Issue 5

2017-08-28 Thread Amit Gupta
Thanks Dianne! Our server has 16GB of ram and we have a 2GB RAMDISK setup for md. In the multiplexor man page, I saw this quote: "Using the -R option has the side-effect of permitting new connections from the loopback address to queue." Does this mean you can have loopback connections queue and n

[Mimedefang] ALLOW_NEW_CONNECTIONS_TO_QUEUE behavior

2017-08-27 Thread Amit Gupta
Hi, I wanted to get a better understanding of of the nuances of ALLOW_NEW_CONNECTIONS_TO_QUEUE in a high volume burst scenario. MX_MAXIMUM=20 MX_QUEUE_TIMEOUT=300 Assume a burst of emails comes in and all 20 md processes are busy working. 1) What should the 21st and higher connecting clients exp

[Mimedefang] mimedefang-filter $Subject variable encoding

2016-06-09 Thread Amit Gupta
Should the $Subject variable be mime encoded? Is this the correct way to update the $Subject of an email: my $subject = mime_to_perl_string($Subject); $subject = "Foo and maybe Unicode chars"; $Subject = encode_mimeword($subject); action_change_header('Subject', $Subject); __

[Mimedefang] Understanding the -q flag

2016-01-05 Thread Amit Gupta
I saw in the documentation that the -q flag will allow mimedefang to accept more connections than the number of mimedefang slaves and it will queue connections if the slave limit is exceeded. I wanted to understand the implications and potential downsides of enabling this better.. So if your slav

Re: [Mimedefang] Embedded Perl (continued)

2015-09-22 Thread Amit Gupta
unt of time and eventually get cleared down to your minimum setting. I have my min processes set to 10, and max to 100.. And my monitoring system shows that I have about 20 running mimedefang.pl processes on average. On Tue, Sep 22, 2015 at 8:12 AM, Dianne Skoll wrote: > On Tue, 22 Sep 2015 07:

[Mimedefang] Embedded Perl (continued)

2015-09-22 Thread Amit Gupta
Apologies for starting a new thread. I couldn't find any messages in my inbox to reply to. Thanks Paul, Bill and Diane for your replies. My situation is that the number of mimedefang.pl processes jumps to about 70 during peak loads (we are processing a couple hundres messages per minute on averag

[Mimedefang] Embedded Perl

2015-09-21 Thread Amit Gupta
Hi, I'm using Centos7.1 and mimedefang 2.75 (still need to upgrade to latest). The documentation indicates that if you start mimedefang with the -E parameter, it uses embedded perl which is supposedly faster. I was wondering if someone could give me insight into why it's actually faster under the

[Mimedefang] Upgrading MIME::Tools to 5.505?

2014-08-22 Thread Amit Gupta
I noticed in mimedefang.pl there is the following statement: use MIME::Tools 5.410 (); The latest MIME::Tools seems to be 5.505.. MD 2.75 still references the old version. Should we be updating this? Or is this planned for the future? ___ NOTE: If the

[Mimedefang] Perl version

2014-08-22 Thread Amit Gupta
I've been using mimedefang on centos 6.x with the default perl version of 5.10 for a while now. Everything working well. I wanted to do an upgrade to perl to 5.20. Is there any obvious issue I will encounter? I plan to yum remove perl and then install perl from source.(or possibly from rpm if I