automatically create Sent folder

Michael Redinger Michael.Redinger@uibk.ac.at
Tue, 1 Jan 2002 16:58:43 +0100 (CET)


---------------------- multipart/mixed attachment
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


... and here's another one:
When the user composes a message and the Sent folder is not available
(and you allow the user to choose the folder where to save sent messages),
the first folder will be selected (ie. there's no SELECTED). This can
be confusing for users.
I prefer having it automatically created instead.
Need I tell you that this tiny patch is attached? ;)
Surprise, no config option this time. :)

Michael


-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQA/AwUBPDHc8A/XqdllwsEdEQKveQCgxswdXCsQFzSncHoO4rL4XoDFlxsAoKNB
NQjU7t717JgHEM6FsVxPvc2R
=2ZCZ
-----END PGP SIGNATURE-----


---------------------- multipart/mixed attachment
LS0tIGNvbXBvc2UucGhwLm9yaWcJVHVlIEphbiAgMSAxNjowMToyOCAyMDAy
DQorKysgY29tcG9zZS5waHAJVHVlIEphbiAgMSAxNjo1MTo0MSAyMDAyDQpA
QCAtMzE1LDYgKzMxNSwxMyBAQA0KICRzZW50X21haWxfZm9sZGVyID0gJGlk
ZW50aXR5LT5nZXRWYWx1ZSgnc2VudF9tYWlsX2ZvbGRlcicsIEhvcmRlOjpn
ZXRGb3JtRGF0YSgnaWRlbnRpdHknKSk7DQogJGFjdGlvbklEID0gSG9yZGU6
OmdldEZvcm1EYXRhKCdhY3Rpb25JRCcsIE5PX0FDVElPTik7DQogDQoraWYg
KCRpbXBbJ3N0cmVhbSddKSB7DQorICAgICAgaWYgKCAkcHJlZnMtPmdldFZh
bHVlKCdzYXZlX3NlbnRfbWFpbCcpICYmICRzZW50X21haWxfZm9sZGVyICYm
ICFJTVBfZm9sZGVyOjpleGlzdHMoJGltcFsnc3RyZWFtJ10sICRzZW50X21h
aWxfZm9sZGVyKSkgew0KKyAgICAgICAgICAgICAgSU1QX2ZvbGRlcjo6Y3Jl
YXRlKCRpbXBbJ3N0cmVhbSddLCAkc2VudF9tYWlsX2ZvbGRlciwgJHByZWZz
LT5nZXRWYWx1ZSgnc3Vic2NyaWJlJykpOw0KKyAgICAgIH0NCit9DQorDQor
DQogLyogVHJhbnNsYXRlIG5vbi1pbnQgdmFsdWVzIGludG8gdGhlIGNvcnJl
Y3QgaW50LiAqLw0KIGlmIChzdHJjc3BuKCRhY3Rpb25JRCwgJzAxMjM0NTY3
ODknKSkgew0KICAgICAkYWN0aW9uSUQgPSAkYWN0aW9uc1skYWN0aW9uSURd
Ow0K
---------------------- multipart/mixed attachment--


>From jan@horde.org Date: Tue,  1 Jan 2002 17:30:45 +0100
Return-Path: <jan@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 81331 invoked from network); 1 Jan 2002 16:31:10 -0000
Received: from mailout10.sul.t-online.com (194.25.134.21)
  by clark.horde.org with SMTP; 1 Jan 2002 16:31:10 -0000
Received: from fwd11.sul.t-online.de 
	by mailout10.sul.t-online.de with smtp 
	id 16LRoi-0004UX-04; Tue, 01 Jan 2002 17:31:08 +0100
Received: from linux.wg.de (320034214675-0001@[80.130.210.170]) by fmrl11.sul.t-online.com
	with esmtp id 16LRoT-1E7nRgC; Tue, 1 Jan 2002 17:30:53 +0100
Received: from localhost (localhost [127.0.0.1])
	by linux.wg.de (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g01GUk927147
	for <imp@lists.horde.org>; Tue, 1 Jan 2002 17:30:46 +0100
Received: from 192.168.60.1 ( [192.168.60.1])
	as user jan@linux by linux.wg.de with HTTP;
	Tue,  1 Jan 2002 17:30:45 +0100
Message-ID: <1009902645.3c31e435c1142@linux.wg.de>
Date: Tue,  1 Jan 2002 17:30:45 +0100
From: Jan Schneider <jan@horde.org>
To: imp@lists.horde.org
References: <Pine.LNX.4.33.0201011603530.10769-200000@red-c102.uibk.ac.at>
In-Reply-To: <Pine.LNX.4.33.0201011603530.10769-200000@red-c102.uibk.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Sender: 320034214675-0001@t-dialin.net
Subject: Re: [imp] how to show smtp error messages

Zitat von Michael Redinger <Michael.Redinger@uibk.ac.at>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> On Fri, 28 Dec 2001, I wrote:
> 
> 
> > I'd like to make IMP show the error messages the SMTP server returns
> (eg.
> > "User unknown" or smth. like "virus found") because I think that
> generic
> > "There was an error sending your message" is somewhat insufficient
> ...
> > I'm trying to figure out where to add this. I've to confess that I'm
> completely
> > lost. I'd appreciate a tip where this should be added. compose.php?
> Somewhere
> > else in IMP or HORDE? PEAR?
> 
> 
> 
> After reading lots of PEAR code I found that the answer is obvious: :)
> $status->getMessage()
> is already used in compose.php to log error messages. I just added an
> option
> to display this error in the compose window.
> 
> As always :) - patch attached. New config option:
> $conf['compose']['showsmtperror'] = true;
> 
> 
> I also tried to make the errors be shown using JavaScript.
> However, I terribly failed - the alert box simply isn't displayed. I
> tried
> removing the php if's, only make an alert('hello') bad I just can't make
> it
> work ... :(
> See the code below.

Commited, but I stripped most of the code because there's no need to have 
an extra configuration option for this. Descriptive error messages are 
always good. And there's also no need for a javascript alert.

Thanks, Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::


>From jan@horde.org Date: Tue,  1 Jan 2002 17:32:54 +0100
Return-Path: <jan@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 82397 invoked from network); 1 Jan 2002 16:42:44 -0000
Received: from mailout01.sul.t-online.com (194.25.134.80)
  by clark.horde.org with SMTP; 1 Jan 2002 16:42:44 -0000
Received: from fwd02.sul.t-online.de 
	by mailout01.sul.t-online.de with smtp 
	id 16LRyD-0002QY-0B; Tue, 01 Jan 2002 17:40:57 +0100
Received: from linux.wg.de (320034214675-0001@[80.130.210.170]) by fmrl02.sul.t-online.com
	with esmtp id 16LRy9-14g5GzC; Tue, 1 Jan 2002 17:40:53 +0100
Received: from localhost (localhost [127.0.0.1])
	by linux.wg.de (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g01GWs927162
	for <imp@lists.horde.org>; Tue, 1 Jan 2002 17:32:54 +0100
Received: from 192.168.60.1 ( [192.168.60.1])
	as user jan@linux by linux.wg.de with HTTP;
	Tue,  1 Jan 2002 17:32:54 +0100
Message-ID: <1009902774.3c31e4b65a8a1@linux.wg.de>
Date: Tue,  1 Jan 2002 17:32:54 +0100
From: Jan Schneider <jan@horde.org>
To: imp@lists.horde.org
References: <Pine.LNX.4.33.0201011654070.10769-200000@red-c102.uibk.ac.at>
In-Reply-To: <Pine.LNX.4.33.0201011654070.10769-200000@red-c102.uibk.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Sender: 320034214675-0001@t-dialin.net
Subject: Re: [imp] automatically create Sent folder

Zitat von Michael Redinger <Michael.Redinger@uibk.ac.at>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> ... and here's another one:
> When the user composes a message and the Sent folder is not available
> (and you allow the user to choose the folder where to save sent
> messages),
> the first folder will be selected (ie. there's no SELECTED). This can
> be confusing for users.
> I prefer having it automatically created instead.
> Need I tell you that this tiny patch is attached? ;)
> Surprise, no config option this time. :)

I'm not sure why you need this patch. You can't select a folder that does 
not exist for storing sent mail.

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::