Skip Menu |
 

This queue is for tickets about the MailTools CPAN distribution.

Report information
The Basics
Id: 75975
Status: resolved
Priority: 0/
Queue: MailTools

People
Owner: Nobody in particular
Requestors: rg [...] progtech.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.08
Fixed in: (no value)



Subject: Caching mailaddress is problematic when sending as multiple senders
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 626
Download (untitled) / with headers
text/plain 626b
I have a script that is using MIME::Entity (which uses MailTools to actually send the mail) to send mail through various mail servers with varying from addresses. The envelope from is taken from the result of calling Mail::Util::mailaddress. Unfortunately, some of those mail server insist that I use an envelope from that matches their mail domain, so I need to adjust it depending on the server I'm using. However, the mailaddress function caches the value it determined on first use. Please provide a way to either clear this cached value, explicitly set the returned value or don't cache the value at all. Thanks, Rolf.
From markov [...] overmeer.net Tue Apr 10 15: 58:21 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-2.681 tagged_above=-99.9 required=10 tests=[AWL=-0.781, BAYES_00=-1.9] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-12231-1332423586-271.75975-4-0 [...] rt.cpan.org>
Content-Disposition: inline
X-Spam-Flag: NO
References: <RT-Ticket-75975 [...] rt.cpan.org> <rt-3.8.HEAD-12231-1332423586-271.75975-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <20120410195805.GB32256 [...] moon.overmeer.net>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -2.681
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 54BB024024E for <cpan-bug+mailtools [...] hipster.bestpractical.com>; Tue, 10 Apr 2012 15:58:21 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4Q7+KKkcuyqK for <cpan-bug+mailtools [...] hipster.bestpractical.com>; Tue, 10 Apr 2012 15:58:19 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 739DC24001D for <bug-mailtools [...] rt.cpan.org>; Tue, 10 Apr 2012 15:58:19 -0400 (EDT)
Received: (qmail 17789 invoked by uid 103); 10 Apr 2012 19:58:18 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 10 Apr 2012 19:58:18 -0000
Received: from fep19.mx.upcmail.net (HELO fep19.mx.upcmail.net) (62.179.121.39) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Tue, 10 Apr 2012 12:58:14 -0700
Received: from edge02.upcmail.net ([192.168.13.237]) by viefep19-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20120410195808.VMZA22594.viefep19-int.chello.at [...] edge02.upcmail.net> for <bug-mailtools [...] rt.cpan.org>; Tue, 10 Apr 2012 21:58:08 +0200
Received: from moon.overmeer.net ([178.84.121.203]) by edge02.upcmail.net with edge id wKy51i01X4PQHKm02Ky5jx; Tue, 10 Apr 2012 21:58:08 +0200
Received: by moon.overmeer.net (Postfix, from userid 1000) id 8D7853D27; Tue, 10 Apr 2012 21:58:05 +0200 (CEST)
Delivered-To: cpan-bug+mailtools [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #75975] Caching mailaddress is problematic when sending as multiple senders
User-Agent: Mutt/1.5.21 (2010-09-15)
Return-Path: <markov [...] overmeer.net>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+mailtools [...] hipster.bestpractical.com
X-RT-Mail-Extension: mailtools
Date: Tue, 10 Apr 2012 21:58:05 +0200
X-Sourceip: 178.84.121.203
X-Spam-Level:
To: Rolf Grossmann via RT <bug-MailTools [...] rt.cpan.org>
From: Mark Overmeer <secretaris [...] nluug.nl>
RT-Message-ID: <rt-3.8.HEAD-18071-1334087902-1829.75975-0-0 [...] rt.cpan.org>
Content-Length: 1369
Download (untitled) / with headers
text/plain 1.3k
* Rolf Grossmann via RT (bug-MailTools@rt.cpan.org) [120322 13:39]: Show quoted text
> Thu Mar 22 09:39:46 2012: Request 75975 was acted upon. > Transaction: Ticket created by rg@progtech.net > Queue: MailTools > Subject: Caching mailaddress is problematic when sending as > multiple senders > Broken in: 2.08 > Severity: Normal > Owner: Nobody > Requestors: rg@progtech.net > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=75975 > > > > I have a script that is using MIME::Entity (which uses MailTools to > actually send the mail) to send mail through various mail servers with > varying from addresses.
Spam? Show quoted text
> The envelope from is taken from the result of > calling Mail::Util::mailaddress. Unfortunately, some of those mail > server insist that I use an envelope from that matches their mail > domain, so I need to adjust it depending on the server I'm using. > However, the mailaddress function caches the value it determined on > first use.
Circumvent defense against spam? -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: ascii
RT-Message-ID: <rt-3.8.HEAD-18071-1334087902-1499.75975-0-0 [...] rt.cpan.org>
Content-Length: 105
Download (untitled) / with headers
text/plain 105b
Sending the previous mail has failed. Please contact your admin, they can find more details in the logs.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: ascii
RT-Message-ID: <rt-3.8.HEAD-18071-1334087903-1723.75975-0-0 [...] rt.cpan.org>
Content-Length: 105
Download (untitled) / with headers
text/plain 105b
Sending the previous mail has failed. Please contact your admin, they can find more details in the logs.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-27571-1346140766-1146.75975-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 46
v2.10 has Mail::Util::mailaddress($newaddress)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.