Re: Config problems with local_autorespond_forward

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>> From: John@xxxxxxxxxxxx,
>>>         J.Smith@xxxxxxxxxxxx (Joe),
>>>         CPA@xxxxxxxxxxxx,
>>>         CFP (R) <jsmith@xxxxxxxxxxxx>
>>> Subject: Out of Office
>>> Message-Id: <20111105100107.823FB22033A@xxxxxxxxxxxx>
>>> Date: Sat,  5 Nov 2011 06:01:07 -0400 (EDT)
>>>
>>> Sorry I am away from the office at this time and cannot respond to your
>>> email.
>>>
>>> Is this a known bug? Can this easily be avoided, outside of removing
>>> the commas in the user's personal description?
>>
>> This is not a squirrelmail issue, your mail system (sendmail?) is
>> splitting the line at "," . You should surround the whole real name which
>> "" :
>> From: "John J. (Joe) Smith, CPA, CFP (R)" <jsmith@xxxxxxxxxxxx>

But since the plugin builds the From: header, that's where the bug is.

> I would think this would be a MTA issue too, but it only happens with
> squirremail. Wouldn't that indicate it's squirremail doing it?
>
> The mail system is otherwise working properly. Postfix is my MTA, and
> it appears that '+' is the default delimiter for .forward files.
>
> I've also looked at amavis, and I don't see how the problem is related
> to that either.
>
> Do you have any further suggestions?

I don't have time to offer a patch, but if you can hand-edit the
options.php file, you can use the following fix.  Note that this
plugin has a couple other issues with headers (primarily encoding), so
this may not be the final fix.

Find the section in the file that starts with the comment "build list
of possible FROM headers" and replace all the code starting there
until the comment "build the auto-reply message file" with the
following:


// build list of possible FROM headers
//
$full_name = getPref($data_dir, $username, 'full_name');
$email_addr = getPref($data_dir, $username, 'email_address');
if (empty($email_addr))
   $email_addr = $username;
if (($pos = strpos($email_addr, '@')) === FALSE)
{
   $mailbox = $email_addr;
   $dom = $domain;
}
else
{
   $mailbox = substr($email_addr, 0, $pos);
   $dom = substr($email_addr, $pos + 1);
}
$addr = new AddressStructure();
$addr->mailbox = $mailbox;
$addr->host = $dom;
$addr->personal = $full_name;
$idents = array($addr->getAddress());
for ($i = 1; $i < $ident; $i ++)
{
   $full_name = getPref($data_dir, $username, 'full_name' . $i);
   $email_addr = getPref($data_dir, $username, 'email_address' . $i);
   if (empty($email_addr))
      $email_addr = $username;
   if (($pos = strpos($email_addr, '@')) === FALSE)
   {
      $mailbox = $email_addr;
      $dom = $domain;
   }
   else
   {
      $mailbox = substr($email_addr, 0, $pos);
      $dom = substr($email_addr, $pos + 1);
   }
   $addr->mailbox = $mailbox;
   $addr->host = $dom;
   $addr->personal = $full_name;
   $idents[] = $addr->getAddress();
}
if (empty($idents[$identity])) $identity = 0;



// build the auto-reply message file
//


-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users



[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux