Sam Varshavchik | 1 Jun 2010 01:34
Gravatar

Re: mailfilter elsif patch

shin2s2 writes:

> if (/^X-AAA/)
> {
>   echo "AAA"
> }
> elsif (/^X-BBB/)

Thanks for this, and the other patch. I actually found an easier way to 
implement elsif.

------------------------------------------------------------------------------

_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Fernando Gozalo | 14 Jun 2010 10:04
Picon
Favicon

auto-responder whitout original mail body

Hello,

We are using an old version of mailbot for an auto-responder. It sends a 
mail without the original body text attached/replied.

Is there a way with the latest mailbot that we can auto-respond without 
send the body text of the original mail that trigger the responder?

Regards,
Fernando.

--

-- 
---------------------------------------------------------------
Fernando Gozalo Rodrigo - Analista de Sistemas

     Centro de Sistemas Informáticos
Universidad Nacional de Educación a Distancia

---------------------------------------------------------------
Por favor, no envíe adjuntos de WORD, EXCEL o POWERPOINT
Vea http://www.gnu.org/philosophy/no-word-attachments.es.html
---------------------------------------------------------------

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
Sam Varshavchik | 14 Jun 2010 13:00
Gravatar

Re: auto-responder whitout original mail body

Fernando Gozalo writes:

> Hello,
> 
> We are using an old version of mailbot for an auto-responder. It sends a 
> mail without the original body text attached/replied.
> 
> Is there a way with the latest mailbot that we can auto-respond without 
> send the body text of the original mail that trigger the responder?

mailbot includes the original mail if it contains a text/plain part. Since 
mailbot does not include a full-featured web browser inside it, original 
messages formatted as text/html cannot be reformatted as a reply. This has 
not changed.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Fernando Gozalo | 14 Jun 2010 13:47
Picon
Favicon

Re: auto-responder whitout original mail body

Hello,

El 14/06/10 13:00, Sam Varshavchik escribió:
> Fernando Gozalo writes:
>
>> Hello,
>>
>> We are using an old version of mailbot for an auto-responder. It sends
>> a mail without the original body text attached/replied.
>>
>> Is there a way with the latest mailbot that we can auto-respond
>> without send the body text of the original mail that trigger the
>> responder?
>
> mailbot includes the original mail if it contains a text/plain part.
> Since mailbot does not include a full-featured web browser inside it,
> original messages formatted as text/html cannot be reformatted as a
> reply. This has not changed.

This is maildrop-2.2.0 and mailbot does not include the original text no 
matter whatever format it is.

This is the command we use in .mailfilter

`/usr/bin/mailbot -A "X-Sender-Uned: $FROM" -A "From: $FROM" \
        -m "./vacation.msg" $SENDMAIL -t -f $FROM `

Maybe with maildrop-2.5.0 we must use a different command?

Regards,
(Continue reading)

Sam Varshavchik | 14 Jun 2010 23:58
Gravatar

Re: auto-responder whitout original mail body

Fernando Gozalo writes:

> Hello,
> 
> El 14/06/10 13:00, Sam Varshavchik escribió:
>> Fernando Gozalo writes:
>>
>>> Hello,
>>>
>>> We are using an old version of mailbot for an auto-responder. It sends
>>> a mail without the original body text attached/replied.
>>>
>>> Is there a way with the latest mailbot that we can auto-respond
>>> without send the body text of the original mail that trigger the
>>> responder?
>>
>> mailbot includes the original mail if it contains a text/plain part.
>> Since mailbot does not include a full-featured web browser inside it,
>> original messages formatted as text/html cannot be reformatted as a
>> reply. This has not changed.
> 
> This is maildrop-2.2.0 and mailbot does not include the original text no 
> matter whatever format it is.
> 
> This is the command we use in .mailfilter
> 
> `/usr/bin/mailbot -A "X-Sender-Uned: $FROM" -A "From: $FROM" \
>         -m "./vacation.msg" $SENDMAIL -t -f $FROM `
> 
> 
(Continue reading)

Filip Slunecko | 17 Jun 2010 13:53
Picon

empty "from" field in the postfix log

Hi,

I am getting empty "from" field in the postfix log when the mail is
forwarded ("to" or "cc" in the maildrop configuration file) by the
maildrop.

postfix.log
Jun 17 12:04:46 postfix/pickup[7305]: 24FD111945B: uid=538 from=<>

What I found is that the maildrop is inserting the empty string
instead of user name to the sendmail.

maildrop: Delivering to |/usr/sbin/sendmail -oi -f '' my <at> email

I know that I can use
to "|/usr/sbin/sendmail -oi -t -f 'accountname'"" instead of  " to
"!accountname" ".

But I am wanderig if the inserting empty string is a correct behavior?

I am using:
maildrop 2.0.2
postfix 2.3.3

Thank you for help

Filip

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
(Continue reading)

Sam Varshavchik | 17 Jun 2010 23:54
Gravatar

Re: empty "from" field in the postfix log

Filip Slunecko writes:

> Hi,
> 
> I am getting empty "from" field in the postfix log when the mail is
> forwarded ("to" or "cc" in the maildrop configuration file) by the
> maildrop.
> 
> postfix.log
> Jun 17 12:04:46 postfix/pickup[7305]: 24FD111945B: uid=538 from=<>
> 
> 
> What I found is that the maildrop is inserting the empty string
> instead of user name to the sendmail.
> 
> maildrop: Delivering to |/usr/sbin/sendmail -oi -f '' my <at> email
> 
> I know that I can use
> to "|/usr/sbin/sendmail -oi -t -f 'accountname'"" instead of  " to
> "!accountname" ".
> 
> But I am wanderig if the inserting empty string is a correct behavior?

That depends on who you ask. There is no uniform consensus.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
(Continue reading)

Nima Hoda | 23 Jun 2010 07:53
Picon

[patch] don't write NL to mbox before delivery

Hello:

Maildrop writes a newline to mboxes before delivery. This effectively
modifies the final message in the mbox, causing MUA's to lose unsaved
flag data and reopen the mailbox in order to avoid corruption
(e.g. Mutt: "Mailbox was externally modified.  Flags may be wrong.").

There is no reason to write the newline since the final message will
already be terminated by an emtpy line and maildrop already ensures
that this is so. From RFC 4155:

    * Each message in the database MUST be terminated by an empty
      line, containing a single end-of-line marker.

This problem has existed for many years [1]. Here is the relevant
commit message:

    * maildrop/formatmbox.C (GetFromLine): Do not write a newline
      before every From_ line...

    * maildrop/deliver.C (delivery): ... only for 2nd and subsequent
      msgs.

There was a discussion about it on the Debian bug tracker [2], though
that was from before the commit referenced above, which corrected a
related problem [3].

A patch is attached below.

Cheers,
(Continue reading)

Sam Varshavchik | 23 Jun 2010 12:15
Gravatar

Re: [patch] don't write NL to mbox before delivery

Nima Hoda writes:

> There is no reason to write the newline since the final message will
> already be terminated by an emtpy line and maildrop already ensures
> that this is so.

Except that maildrop may not necessarily be the only agent that delivers 
mail, and other delivery agents might append a message without a trailing 
newline.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Courier-maildrop mailing list
Courier-maildrop <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
Nima Hoda | 23 Jun 2010 15:43
Picon

Re: [patch] don't write NL to mbox before delivery

On Wed, Jun 23, 2010 at 06:15:22AM -0400, Sam Varshavchik wrote:
>>There is no reason to write the newline since the final message will
>>already be terminated by an emtpy line and maildrop already ensures
>>that this is so.
> 
> Except that maildrop may not necessarily be the only agent that
> delivers mail, and other delivery agents might append a message
> without a trailing newline.

Which puts them out of spec (are there many that do this?). So the
choice is between doing the right thing and doing the wrong thing for
fear that something else may be doing bad things...

How about making this a runtime or compiletime option?

-Nima

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo

Gmane