<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Sent mail folder does not auto-create</title> 
  <pubDate>Fri, 10 Apr 2026 09:35:34 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8520</link> 
  <atom:link rel="self" type="application/rss+xml" title="Sent mail folder does not auto-create" href="https://bugs.horde.org/ticket/8520/rss" /> 
  <description>Sent mail folder does not auto-create</description> 
 
   
   
  <item> 
   <title>If the sent mail folder is not a locked setting in prefs.php</title> 
   <description>If the sent mail folder is not a locked setting in prefs.php, users are able to choose where to save each message from a drop-down in the compose screen. If the default named sent-mail folder does not exist for that user, the drop-down defaults to the first existing folder (sorted case-sensitive alphabetically) -- often this is Drafts. IMP does not attempt to create the default sent-mail folder, except in the case where the Inbox is the *only* other existent folder.



If the sent mail folder setting is locked in prefs.php, users are not offered the drop-down menu and the sent mail folder *is* auto-created if it does not exist.



This is a regression of a much earlier bug; I found references to it from 2002 or so via Google. It may have been fixed in an earlier version of compose.php; see line 1001 in compose.php Revision 2.800.2.16 (http://cvs.horde.org/co.php/imp/compose.php?r=2.800.2.16):



        if (!$imp_folder-&gt;exists($imp[&#039;stream&#039;], $sent_mail_folder)) {

            $imp_folder-&gt;create($imp[&#039;stream&#039;], $sent_mail_folder, $prefs-&gt;getValue(&#039;subscribe&#039;));

        }



My patch creates the sent-mail folder much earlier on, so that it&#039;s ready by the time the drop-down appears.</description> 
   <pubDate>Sat, 22 Aug 2009 01:36:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8520#t55529</link> 
  </item> 
   
  <item> 
   <title>This is not a viable solution, because the sent-mail folder </title> 
   <description>This is not a viable solution, because the sent-mail folder must not be created when starting message composition, but only when sending the message (or really when trying to save the sent message).</description> 
   <pubDate>Sun, 23 Aug 2009 12:49:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8520#t55532</link> 
  </item> 
   
  <item> 
   <title>&gt; This is not a viable solution, because the sent-mail folde</title> 
   <description>&gt; This is not a viable solution, because the sent-mail folder must not 

&gt; be created when starting message composition



Pardon my ignorance, but why not?

</description> 
   <pubDate>Wed, 26 Aug 2009 20:25:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8520#t55558</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; This is not a viable solution, because the sent-mail fold</title> 
   <description>&gt;&gt; This is not a viable solution, because the sent-mail folder must not

&gt;&gt; be created when starting message composition

&gt;

&gt; Pardon my ignorance, but why not?



Because it is a sent-mail folder, not a composed-but-maybe-not-sent-mail folder.</description> 
   <pubDate>Sun, 30 Aug 2009 12:18:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8520#t55589</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; This is not a viable solution, because the sent-mail fol</title> 
   <description>&gt;&gt;&gt; This is not a viable solution, because the sent-mail folder must not

&gt;&gt;&gt; be created when starting message composition

&gt;&gt;

&gt;&gt; Pardon my ignorance, but why not?

&gt;

&gt; Because it is a sent-mail folder, not a 

&gt; composed-but-maybe-not-sent-mail folder.



But the sent-mail folder is going to be created at some point anyway; I don&#039;t see the harm in doing it early. If the message is composed but not sent and the user hits &quot;save draft&quot;, it still goes into the drafts folder and the new sent mail folder stays empty -- nothing wrong with that; pretty much all e-mail programs (and most forms of webmail) have a sent mail folder as a permanent fixture; if you never send anything it just stays empty.

</description> 
   <pubDate>Sun, 30 Aug 2009 19:57:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8520#t55591</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt;&gt; This is not a viable solution, because the sent-mail fo</title> 
   <description>&gt;&gt;&gt;&gt; This is not a viable solution, because the sent-mail folder must not

&gt;&gt;&gt;&gt; be created when starting message composition

&gt;&gt;&gt;

&gt;&gt;&gt; Pardon my ignorance, but why not?

&gt;&gt;

&gt;&gt; Because it is a sent-mail folder, not a

&gt;&gt; composed-but-maybe-not-sent-mail folder.

&gt;

&gt; But the sent-mail folder is going to be created at some point anyway; 

&gt; I don&#039;t see the harm in doing it early. If the message is composed 

&gt; but not sent and the user hits &quot;save draft&quot;, it still goes into the 

&gt; drafts folder and the new sent mail folder stays empty -- nothing 

&gt; wrong with that; pretty much all e-mail programs (and most forms of 

&gt; webmail) have a sent mail folder as a permanent fixture; if you never 

&gt; send anything it just stays empty.

&gt;

can not get sent attachments into &quot;sent mail&quot; only sent message.</description> 
   <pubDate>Fri, 18 Sep 2009 19:30:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8520#t55844</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt;&gt;&gt; This is not a viable solution, because the sent-mail f</title> 
   <description>&gt;&gt;&gt;&gt;&gt; This is not a viable solution, because the sent-mail folder must not

&gt;&gt;&gt;&gt;&gt; be created when starting message composition

&gt;&gt;&gt;&gt;

&gt;&gt;&gt;&gt; Pardon my ignorance, but why not?

&gt;&gt;&gt;

&gt;&gt;&gt; Because it is a sent-mail folder, not a

&gt;&gt;&gt; composed-but-maybe-not-sent-mail folder.

&gt;&gt;

&gt;&gt; But the sent-mail folder is going to be created at some point anyway;

&gt;&gt; I don&#039;t see the harm in doing it early. If the message is composed

&gt;&gt; but not sent and the user hits &quot;save draft&quot;, it still goes into the

&gt;&gt; drafts folder and the new sent mail folder stays empty -- nothing

&gt;&gt; wrong with that; pretty much all e-mail programs (and most forms of

&gt;&gt; webmail) have a sent mail folder as a permanent fixture; if you never

&gt;&gt; send anything it just stays empty.

&gt;&gt;

&gt; can not get sent attachments into &quot;sent mail&quot; only sent message.

</description> 
   <pubDate>Fri, 18 Sep 2009 23:58:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8520#t55845</link> 
  </item> 
   
  <item> 
   <title>&gt; But the sent-mail folder is going to be created at some po</title> 
   <description>&gt; But the sent-mail folder is going to be created at some point anyway; 
&gt; I don&#039;t see the harm in doing it early. If the message is composed 
&gt; but not sent and the user hits &quot;save draft&quot;, it still goes into the 
&gt; drafts folder and the new sent mail folder stays empty -- nothing 
&gt; wrong with that; pretty much all e-mail programs (and most forms of 
&gt; webmail) have a sent mail folder as a permanent fixture; if you never 
&gt; send anything it just stays empty.

I agree with this.  While true that you may not end up saving the message in the sent-mail folder, without auto-creating it won&#039;t even be available in the drop-down list.  I don&#039;t see the harm in pre-creating the folder.  If identified as the sent-mail folder in the prefs, it is eventually going to be created anyway.</description> 
   <pubDate>Wed, 18 Nov 2009 22:56:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8520#t56791</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #8520: M</title> 
   <description>Changes have been made in Git for this ticket:

Bug #8520: Make sure sent mail folder exists if using drop-down selection on compose page

http://git.horde.org/diff.php/imp/compose.php?rt=horde-hatchery&amp;r1=b821d067b0e30206e6acfdaff8ac860a49754814&amp;r2=dffa0a9f401f8b73c0e8a90f67b78f81c797a369
http://git.horde.org/diff.php/imp/docs/CHANGES?rt=horde-hatchery&amp;r1=4b2f4623ae225c6bb2fb0b514ba039e24d114098&amp;r2=dffa0a9f401f8b73c0e8a90f67b78f81c797a369
http://git.horde.org/diff.php/imp/lib/Views/Compose.php?rt=horde-hatchery&amp;r1=caedb70f6047930a3e941a6263b97db7e3e0eac6&amp;r2=dffa0a9f401f8b73c0e8a90f67b78f81c797a369</description> 
   <pubDate>Fri, 20 Nov 2009 19:05:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8520#t56814</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

Bug: 8520
Me</title> 
   <description>Changes have been made in CVS for this ticket:

Bug: 8520
Merge from git:horde-hatchery dffa0a9f401f8b73c0e8a90f67b78f81c797a369
http://cvs.horde.org/diff.php/imp/compose.php?rt=horde&amp;r1=2.800.2.126&amp;r2=2.800.2.127&amp;ty=u
http://cvs.horde.org/diff.php/imp/docs/CHANGES?rt=horde&amp;r1=1.699.2.413&amp;r2=1.699.2.414&amp;ty=u</description> 
   <pubDate>Fri, 20 Nov 2009 19:05:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8520#t56815</link> 
  </item> 
   
  <item> 
   <title>Added to IMP 4.3.6.  The sent-mail folder is only created if</title> 
   <description>Added to IMP 4.3.6.  The sent-mail folder is only created if sent-mail folder selection is allowed.</description> 
   <pubDate>Fri, 20 Nov 2009 19:07:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8520#t56816</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #8520: M</title> 
   <description>Changes have been made in Git for this ticket:

Bug #8520: Make sure sent mail folder exists if using drop-down selection on compose page

http://git.horde.org/diff.php/imp/compose.php?rt=horde-git&amp;r1=b821d067b0e30206e6acfdaff8ac860a49754814&amp;r2=dffa0a9f401f8b73c0e8a90f67b78f81c797a369
http://git.horde.org/diff.php/imp/docs/CHANGES?rt=horde-git&amp;r1=4b2f4623ae225c6bb2fb0b514ba039e24d114098&amp;r2=dffa0a9f401f8b73c0e8a90f67b78f81c797a369
http://git.horde.org/diff.php/imp/lib/Views/Compose.php?rt=horde-git&amp;r1=caedb70f6047930a3e941a6263b97db7e3e0eac6&amp;r2=dffa0a9f401f8b73c0e8a90f67b78f81c797a369</description> 
   <pubDate>Wed, 13 Jan 2010 00:16:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8520#t57664</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
