Opened 4 years ago
Closed 3 years ago
#1485945 closed Feature Requests (fixed)
Feature to handle the placement of reply mail
| Reported by: | duelli | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.5-beta |
| Component: | Core functionality | Version: | git-master |
| Severity: | normal | Keywords: | |
| Cc: | philippe@… |
Description
In the account settings of Thunderbird in "Copies & Folders" (e.g., link), I can choose between three options to save a sent mail which is in reply to an existing mail lying somewhere in my folder hierarchy.
- Do not save sent mail at all
- Save mail to a special folder (usually SENT or similar)
- Save mail into the folder where the original mail is
AFAIK, only the first two options are possible in roundcube via config file.
In my opinion, the third option saves a lot of clicks when you make use of a folder hierarchy.
Does this feature already exist?
If not, could it be easily integrated directly in roundcube or as a plugin?
Change History (3)
comment:1 Changed 4 years ago by duelli
comment:2 Changed 3 years ago by Philippe
- Cc philippe@… added
comment:3 Changed 3 years ago by alec
- Component changed from User Interface to Core functionality
- Milestone changed from later to 0.5-beta
- Resolution set to fixed
- Status changed from new to closed
Done in [eeb85f42].
Note: See
TracTickets for help on using
tickets.

Just found that the required code is almost ready since you can select the folder where to store the sent mail in the compose window :-)
The file program/steps/mail/sendmail.inc processes the "store target" at:
// Determine which folder to save message if ($savedraft) $store_target = $CONFIG['drafts_mbox']; else $store_target = isset($_POST['_store_target']) ? get_input_value('_store_target', RCUBE_INPUT_POST) : $CONFIG['sent_mbox'];It would be nice to have a per-user preference setting for "Place replies in the folder of the message being replied to".
If this option is active, the $store_target should automatically be the "folder of the message being replied to".
Probably such an interaction with user preferences should be done then in program/steps/mail/compose.inc at:
function rcmail_store_target_selection($attrib) { $attrib['name'] = '_store_target'; $select = rcmail_mailbox_select(array_merge($attrib, array('noselection' => '- '.rcube_label('dontsave').' -'))); return $select->show(rcmail::get_instance()->config->get('sent_mbox'), $attrib); }Could the plugin hook "outgoing_message_body" be used to change this selection if such a user preference is set?