Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

How To? Is This Correct.....

Quote Reply
How To? Is This Correct.....
Hi,

Suppose a user turns the "Save To Sent" folder options as OFF. Now certain mails the user may want to Save To Outgoing Folder. Now Is it possible to achieve this by editing the compose.htm with a "if .... " clause that:

The Save To Sent Folder Check Box Appears only when the Option by default is turned OFF.

On Checking The Box, the mails are selectively Saved to Sent Folder

Something like what is there in hotmail to selectively save the sent mails in sent folder.......

If this is possibly then please indicate How and what templates need to be edited with what?

Thnx

Anup
Quote Reply
Re: [anup123] How To? Is This Correct..... In reply to
Hey Anup,

I though this was a good idea so I looked into it. The only way I could see to do this cleanly was with a Plugin. This is my first attempt at a Plugin so use it at your own risk :) That said, I tried it out on my install and it works just fine. To try it, you will need to download the attached Plugin and make a small addition to the compose.htm templates.

To modify the template, add this code
Code:
<%if options_compose_save_copy_to_sent == 0%>
Save message to sent folder: <input type="checkbox" name="plug_save_sent" value="1">
<%endif%>
where you want the checkbox to show up.

If you use it, please let me know how it works for you.

Regards,
Charlie

Last edited by:

Chaz: Jan 18, 2003, 12:51 PM
Quote Reply
Re: [Chaz] How To? Is This Correct..... In reply to
Hi Charlie,

Brilliant. This is the second one u did it for me.... Thanx.

I have a OE/Eudora Address Book Import Script which has been implemented on my install. However, if u can do it as a Plugin, it would be great. In case u would want to I shall pm u the code....

Thnx once again....

Anup
Quote Reply
Re: [anup123] How To? Is This Correct..... In reply to
Great, I'm glad the plugin worked. Go ahead and PM me with the code for the address book import and I'll see how difficult that will be to put in a plugin. I'm pretty busy with custom projects right now so it will be a while before I can get to it, if I can figure out how to do it at all.

~Charlie
Quote Reply
Re: [Chaz] How To? Is This Correct..... In reply to
Hi,

Would it be possible to put this up as a plugin so that it doesn't get lost amongst all the messages. I feel it would be a good idea to have this available as plugin available for download from the admin.

Just a suggestion.

Thnx

Anup
Quote Reply
Re: [anup123] How To? Is This Correct..... In reply to
I'm not real sure how that works. I think it has to go through Gossamer to show up in the admin. I'll have to go take a look at my admin.

If I do that, I think I need to include the modified template files in the tar file.

CP
Quote Reply
Re: [Chaz] How To? Is This Correct..... In reply to
Hi,

Modified template may not be necessary. Possibly a small help documentation mentioning the details to be done would be sufficient.

Thnx

Anup
Quote Reply
Re: [Chaz] How To? Is This Correct..... In reply to
You should change:

eq '0'

and

eq '1'

..in your plugin to:

== 0

and

== 1
Quote Reply
Re: [Paul] How To? Is This Correct..... In reply to
Thanks Paul. I'll fix that up when I go to repackage it.

~Charlie
Quote Reply
Re: [Chaz] How To? Is This Correct..... In reply to
Hi Charlie,

If in compose.htm i activate (Send As HTML -- This Post) by removing the conditional statement, then the 'Save To Sent Folder' plugin does not function. Actually "Send AS HTML" from Txt mode is necessary as some domains (incluing HM, rediff etc) do not take complete messages that have images as attachments when composed from the HTML editor of GM.

Any suggestions on how to get both working?

Anup
Quote Reply
Re: [anup123] How To? Is This Correct..... In reply to
Hi Charlie,

Elaborating on my previous post, in fact if i send a message in txt mode but containing html code and then try to save (without sending as html also) the message is NOT_SAVED to sent folder.....

If i send a plain txt message "Send AS HTML" and Save To Sent Folder" this works perfectly. It's only when html code is pasted then Save To Sent Folder does not work irrespective of whichever mode it is sent in.

Need to correct this... help

Thnx

Anup

Last edited by:

anup123: Aug 29, 2003, 1:57 AM
Quote Reply
Re: [anup123] How To? Is This Correct..... In reply to
Hi Anup,

I'll try taking a look at it tonight. I'll let you know if I can get it resolved.

~Charlie
Quote Reply
Re: [Chaz] How To? Is This Correct..... In reply to
Hi Charlie,

Thnx. Just try the following:

Default Save is set to on in Options Menu.

Then paste html code of a html message in Compose (txt mode) and Send to see if it is also saved to Sent Folder. In my case it doesn't. So has it got something to do with GM or your plugin...Is it that this is also happening when Save_To_Sent_Folder is being used so it is a problem with GM and not yr plugin.

Anup
Quote Reply
Re: [Chaz] How To? Is This Correct..... In reply to
Hi Chatlie,

It works fine. Actually I have an account (which I use mot of the time) which has got this problem of messages landing in trash folder. All this while it was landing in Trash Folder and I was just going by the count in Sent Folder....With other account it works fine

Thnx

Anup