Oracle UTL_SMTP junk mail problem

hi friends i have function; F_MAIL_GONDER which always send mail in junk. how can we send mail to inbox correctly not to junk box?
    FUNCTION F_MAIL_GONDER
      MAILICERIGI        VARCHAR2,
      MAILKONUSU         VARCHAR2,
      GONDERENKISI       VARCHAR2,
      ALICIKISI          VARCHAR2
    RETURN BOOLEAN IS
      MAILHOST            VARCHAR2(1903);--CONSTANT
      MAILPORT           NUMBER;
      CRLF               CONSTANT VARCHAR2(2):= CHR(13) || CHR(10);
      MESG               VARCHAR2(1903);
      MAIL_CONN          UTL_SMTP.CONNECTION;
    BEGIN
         MAILPORT    := 25;                    -- MAIL SUNUCUNUN KULLANDIGI PORT | MAIL SERVER PORT
         MAILHOST    := 'mail.sakarya.bel.tr';--'smtp.mailserver.com';  -- MAIL SUNUCUNUN ADRESI          | MAIL SERVER IP OR ADRESS
     dbms_output.put_line('1');
         MAIL_CONN := UTL_SMTP.OPEN_CONNECTION(MAILHOST, MAILPORT);
     dbms_output.put_line('2');
         --MAILICERIGI := 'BU ALAN MAIL ICERIGINDEKI MESAJ OLARAK GOSTERILECEKTIR'; -- MESAJ GOVDESI | MAIL BODY
         --MAILKONUSU  := 'BU ALAN MAIL KONUSU OLARAK GOSTERILECEKTIR';             -- MESAJ KONUSU | MAIL SUBJECT
         --GONDERENKISI:= '[email protected]'; -- MAIL GONDEREN KISININ MAIL ADRESI | MAIL SENDER ADRESS
         --ALICIKISI   := '[email protected]';      -- MAILI ALACAK KISININ MAIL ADRESI  | MAIL RECEIVER ADRESS
         MESG := 'DATE: ' ||
              TO_CHAR( SYSDATE, 'DD MON YY HH24:MI:SS') || CRLF ||
                  'FROM: <'|| GONDERENKISI ||'>' || CRLF ||
                  'SUBJECT: '|| MAILKONUSU || CRLF ||
                  'TO: '||ALICIKISI || CRLF || '' || CRLF || MAILICERIGI;
      dbms_output.put_line(MESG);
          UTL_SMTP.HELO(MAIL_CONN, MAILHOST);
       UTL_SMTP.MAIL(MAIL_CONN, GONDERENKISI);
          UTL_SMTP.RCPT(MAIL_CONN, ALICIKISI);
          UTL_SMTP.DATA(MAIL_CONN, MESG);
          UTL_SMTP.QUIT(MAIL_CONN);
          RETURN TRUE;
       EXCEPTION
         WHEN OTHERS THEN
           RETURN FALSE;
     END F_MAIL_GONDER;

I'm not sure I follow. If the SMTP server required authentication, your PL/SQL procedure would get an error indicating that your message was rejected because you didn't log in. If the message was delivered, that indicates that this server doesn't require authentication. If you have some other application sending mail that does send a password, I would be very suspicious that the two applications are not using the same mail server.
If you do change to use a mail server that requires authentication, you should be able to add
utl_smtp.command(conn, 'AUTH LOGIN');
utl_smtp.command(conn, utl_encode.base64_encode(utl_raw.cast_to_raw(<username>)));
utl_smtp.command(conn, utl_encode.base64_encode(utl_raw.cast_to_raw(<password>))); to your procedure after the utl_smtp.helo call.
Justin

Similar Messages

  • Junk mail problem, using IMAP

    I have many folders on my IMAP account and server-side rules to sort my e-mail. Mail correctly synchronizes all these folders (almost, it sometimes shows a wrong number of new messages until I open the folder. But that's a minor issue).
    The problem is junk-mail. In one folder i receive a lot of spam. When the junk filter is in training mode, it correctly identifies the spam messages and highlights them with the brown color. When I configure the junk filter to "automatic" mode it seems to correctly detect junk mail, and moves messages to the Junk folder (when I answer "Yes" to run the filter in the current mailbox instantly). However, when I receive spam and the filter is already in automatic mode, messages seem to be detected as spam, but they're not moved to the Junk folder. When I view the messages, I get the button to mark them as "Not junk". The messages aren't marked with the brown color either.
    This is an issue both when the Junk folder is on the server, or locally.
    Has anyone else experienced similar issues? If I don't find a solution to this I'll have to switch to Thunderbird...
    MacBook Pro   Mac OS X (10.4.8)  
    MacBook Pro   Mac OS X (10.4.8)  

    I have many folders on my IMAP account and
    server-side rules to sort my e-mail. Mail correctly
    synchronizes all these folders (almost, it sometimes
    shows a wrong number of new messages until I open the
    folder. But that's a minor issue).
    The problem is junk-mail. In one folder i receive a
    lot of spam. When the junk filter is in training
    mode, it correctly identifies the spam messages and
    highlights them with the brown color. When I
    configure the junk filter to "automatic" mode it
    seems to correctly detect junk mail, and moves
    messages to the Junk folder (when I answer "Yes" to
    run the filter in the current mailbox instantly).
    However, when I receive spam and the filter is
    already in automatic mode, messages seem to be
    detected as spam, but they're not moved to the Junk
    folder. When I view the messages, I get the button
    to mark them as "Not junk". The messages aren't
    marked with the brown color either.
    This is an issue both when the Junk folder is on the
    server, or locally.
    Has anyone else experienced similar issues? If I
    don't find a solution to this I'll have to switch to
    Thunderbird...
    MacBook
    Pro   Mac OS X (10.4.8)  
    MacBook Pro   Mac OS X (10.4.8)
    Yes, I am having the same problem. I've tried changing a slew of mail preferences. So far nothing is quite satisfactory. In fact, for about 36 hours I didn't recieve any email at all, including test messages sent to myself. I'm not sure where it all went. It's confusing. And Mail's documenation *****.
    I'd love to hear if you figure this out.
    Christina

  • Junk mail problem

    Here's my problem. I receive notices from something called Disqus. When I post a comment on the CNN website and someone replies to it I get an email with a link back to the story and comments. These used to show up properly in my inbox, but now they always go to the Junk folder.
    I was told that if I put the email address ([email protected]) in my contacts that it would sgow up in the inbox. It still show up in junk. Thanks.

    Ok, now its even worse! Some mail I sent to myself went to the junk mail folder. Mail I deleted yesterday returned to my junk mail folder. I even wrote a rule specifying a "from" email address. They still go to junk mail.
    HEY APPLE ARE YOU LISTENING???????????

  • IOS Junk Mail problem

    I use Verizon as my mail server. I have continually marked unwanted mail as Junk on my iPad Mini. Move them to the Junk folder and then delete.  I still receive mail from these senders and they go into my regular mail box folder rather than the Junk folder.
    On my Powerbook Pro, when I mark a message as junk, all future mail from that same address, automatically goes into my Junk Mail folder, as it should.
    I don't understand why iOS doesn't recognize junk mail and put it in the Junk Mail folder.
    Also would like to be able to sort my mail alphabetically to make it easier to mass delete mail from certain senders.

    auapplemac wrote:
    I use Verizon as my mail server. I have continually marked unwanted mail as Junk on my iPad Mini. Move them to the Junk folder and then delete.  I still receive mail from these senders and they go into my regular mail box folder rather than the Junk folder.
    On my Powerbook Pro, when I mark a message as junk, all future mail from that same address, automatically goes into my Junk Mail folder, as it should.
    I don't understand why iOS doesn't recognize junk mail and put it in the Junk Mail folder.
    Also would like to be able to sort my mail alphabetically to make it easier to mass delete mail from certain senders.
    I don't know what mail client (software) you use on the notebook but it sounds like the filtering is done on the client side (notebook) as opposed to the server side. You can verify this by using a web browser to sign in to your Verizon mailbox. See if the junk mail are all sorted correctly (all spam are in Junk folder) on the webmail interface.
    As far as I know iOS built-in Mail app does not have the same capability, ie. sorting junk mail on the client side.

  • Mysterious "junk mail" problem

    For the past couple of days, each time I open Mail (2.0.5); aside from fetching mail, takes a random, recent email (sometimes sent, sometimes received) and places it in the Junk Mail folder. It does not mark the mail as junk (No 'Mail thinks this mail is Junk' header).
    The mail (always Ham, often mail which I have sent) which mysteriously moves from the in-box or sent items is always recent (though not always the last received/sent); there is never more than one.
    This is hardly earth-shattering in its ramifications, but it means I have to carefully check the Junk mailbox before quitting (as I have Mail set to erase Junk on quit)
    Any thoughts, people?

    resolved itself after major system crash forcing a reinstall of Tiger

  • Freaky Junk mail Problem

    Recently I noticed I was missing some messages people were sending me. I went into my junk mail folder to see where they were. The Outside of the Junk Mailbox said I had several unread messages. When I opened the box however it was empty. I tried rebuilding the box and that failed. I tried emptying the box to no avail either. It is a very weird deal.
    Any ideas?
    I called tech support and they were quite befuddled and then I had a dial tone. Haven't been patient enough to call back yet...
    What to do?

    I seem to have it fixed now. What a pain in the rear.
    I had to go in and remove the mailbox folders from within my library and put them on the desktop. I also pulled out the envelope file in library>mail.
    After doing that you are starting from scratch. Once I put my accounts in I imported the old mail archives from the folders I dropped on the desktop.
    Toss out the old folders and starting clean again. I still have no idea how things got this far off course, but I'm glad its over.
    Ernie, Thank you very much for all your help. You are still the man...

  • Communication ORACLE - OUTLOOK - read mail - problem

    Hi !!
    I have a problem with communication with ORACLE<->OUTLOOK.
    I need read mail from Outlook, i know EntryID mail.
    It's no go. I need help, please.
    Pavol
    My email : [email protected]
    Here my code :
    PROCEDURE kr_findmail_z(p_mail_id IN VARCHAR2)
    IS
    objArgL OLE2.OBJ_TYPE;
    objAppOutlook OLE2.OBJ_TYPE;
    objNameSpace OLE2.OBJ_TYPE;
    objFolders OLE2.OBJ_TYPE;
    objFolder OLE2.OBJ_TYPE;
    objMailItems OLE2.OBJ_TYPE;
    objMailItem OLE2.OBJ_TYPE;
    objUserProperties OLE2.OBJ_TYPE;
    objUserProperty OLE2.OBJ_TYPE;
    objSelection OLE2.OBJ_TYPE;
    v_id_new varchar2(2000);
    v_id_folder varchar2(2000);
    v_folder varchar2(2000);
    v_test BOOLEAN;
    v_count1 NUMBER(10);
    v_count2 VARCHAR2(10);
    v_value1 NUMBER(10);
    v_value2 VARCHAR2(140);
    BEGIN
    -- Create Outlook Application Object
    objAppOutlook := ole2.create_obj('Outlook.Application');
    -- Get Namespace
    objArgL := ole2.create_arglist;
    ole2.add_arg(objArgL,'MAPI');
    objNameSpace := ole2.invoke_obj
    (objAppOutlook, 'GetNamespace',objArgL);
    ole2.destroy_arglist(objArgL);
    --Find Folders
    --objFolders:=ole2.invoke_obj(objOutBoxFolder,'Folders');
    --message('ObjFolders : '||objFolders);
    --pause;
    --v_count1 := ole2.get_num_property(objFolders,'Count');
    --message('Pocet Folders je : '||v_count1);
    --pause;
    --while v_count1 > 0 loop
    -- bla bla ...
    --end loop;
    --Get Default-Folder
    objArgL := ole2.create_arglist;
    ole2.add_arg(objArgL,5);
    objFolder := ole2.invoke_obj
    (objNameSpace,'GetDefaultFolder',objArgL);
    ole2.destroy_arglist(objArgL);
    --message('ObjFolder : '||objFolder);
    --Get all items in default Folder
    objMailItems:=ole2.invoke_obj(objFolder,'Items');
    v_count1 := ole2.get_num_property(objMailItems,'Count');
    What to find Find my mail with Entry ID ???
    objArgL := ole2.create_arglist;
    ole2.add_arg(objArgL,'([EntryID]= '''||p_mail_id||''')');
    objMailItem := ole2.invoke_obj(objMailItems,'Find',objArgL);
    --here crashed program with error FRM-40735 (non oracle
    exception)
    ole2.destroy_arglist(objArgL);
    --v_value2 := ole2.get_char_property(objMailItem,'EntryID');
    --message('v_value2 je : '||v_value2);
    --pause;
    -- Display or Stop
    IF objMailItem > 0 THEN
    --v_value2 := ole2.get_char_property(objMailItem,'EntryID');
    --message('v_value2 je : '||v_value2);
    --pause;
    ole2.invoke(objMailItem,'Display');
    ELSIF objMailItem = 0 THEN
    message('Dieser Bericht ist nicht existieren !');
    RETURN;
    END IF;
    -- Release objects
    ole2.release_obj(objMailItems);
    ole2.release_obj(objMailItem);
    ole2.release_obj(objFolder);
    --ole2.release_obj(objFolders);
    ole2.release_obj(objNameSpace);
    ole2.release_obj(objAppOutlook);
    EXCEPTION
    WHEN OTHERS THEN
    message(sqlerrm);
    END kr_findmail_z;

    Hi,
    One common cause of this problem is that the data file(.pst) is corrupted, try running Scanpst.exe to repair the .pst file and check the result, for the detailed steps, please refer to the kb below and try the steps under
    Manually start the Inbox Repair tool section:
    http://support.microsoft.com/kb/272227/en-us
    We may also consider if you have set a filter on the View, since you mentioned you can still find the emails when you search for them, this is probably the reason.
    Try to start Outlook with the switch "cleanviews":
    Press Win + R, type "outlook.exe /cleanviews" in the blank box, press Enter.
    This will restore the default view and all the custom views you created will be lost.
    Regards,
    Melon Chen
    TechNet Community Support

  • Is anyone else getting this koko petrolium junk mail?

    Im getting this junk email that i have no idea how i picked up.
    It seems to be a pointless email as the message has no links, the user "sender" always changes and the body has no txt, just a picture of text, im finding it hard to filter it, have tryed to bounce but obviously its always from a fake address.
    Is their a way i can find where this is coming from and burn the senders eyes out?

    Hi Ian, well im sorry your getting them too. I havent ever used my email to sign up to things so im wondering how they have got it. but anyway, im looking into an email tracking program that might be able to help locate the source.
    Its the only junk mail i get on my .mac and its starting to hack me off!
    do you have any other junk mail problems or of anything you might have done to start getting them?
    also, what is it with the stupid half a story on the end of the mail?!

  • Mail problem with long titles using utl_smtp / mixed content / attachements

    Hello,
    I'm having a problem with sending emails. The title as well as the body needs to be able to contain accented letters (é ç ...).
    For the body i got it working.
    And the title works fine too, untill the encoding passes a certain length, then goes all wrong and my mail header starts showing up in the mail body.
    Could anyone help me in finding a solution?
    Thanks in advance
    Below my code:
    DECLARE
       v_From       VARCHAR2(80) := 'test@localhost';
       v_Recipient  VARCHAR2(80) := 'test@localhost';
       v_Cc         VARCHAR2(80);
    -- long subject causing problems
       v_Subject    VARCHAR2(32000) := '123456789111111111111111111111118888888888888111111111111111991234567891111111111111111111111188888888888881111111111111119912345678911111111111111111111111888888888888811111111111111199';
       v_body       VARCHAR2(32000) := '<a href="#">tester</a><br><br>en nog wat éékes en ççkes';
       v_Mail_Host  VARCHAR2(30) := 'localhost';
       v_Mail_Conn  utl_smtp.Connection;
       crlf         VARCHAR2(2)  := chr(13)||chr(10);
    BEGIN
      v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
      utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
      utl_smtp.Mail(v_Mail_Conn, v_From);
      utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
      utl_smtp.Data(v_Mail_Conn,
    -- write header
        'Date: '   || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
        'From: '   || v_From || crlf ||
        'Subject: ' || utl_encode.MIMEHEADER_ENCODE(v_Subject) || crlf ||
        'To: '     || v_Recipient || crlf ||
        'Cc: '     ||  v_Cc || crlf ||
        'X-Mailer: Mailer by Oracle UTL_SMTP' || crlf ||
        'X-Priority: 1' || crlf ||
        'MIME-Version: 1.0'|| crlf ||       -- Use MIME mail standard
        'Content-Type: multipart/mixed;'|| crlf ||
        ' boundary="-----SECBOUND"'|| crlf ||
        crlf ||
    -- add message body
        '-------SECBOUND'|| crlf ||
        'Content-type: text/html; charset=UTF-8'|| crlf ||
        'Content-Transfer-Encoding: base64'|| crlf ||
        crlf ||
        utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw(v_body)))||
        crlf ||
    -- add csv attachment
        '-------SECBOUND'|| crlf ||
        'Content-Type: text/plain;'|| crlf ||
        ' name="excel.csv"'|| crlf ||
        'Content-Transfer_Encoding: 8bit'|| crlf ||
        'Content-Disposition: attachment;'|| crlf ||
        ' filename="excel.csv"'|| crlf ||
        crlf ||
        'CSV,file,attachement'|| crlf ||   -- Content of attachment
        crlf ||
        '-------SECBOUND--'                            -- End MIME mail
      utl_smtp.Quit(v_mail_conn);
    EXCEPTION
      WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
        raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    /

    Hi,
    I did not think the characterset and database would matter for this problem, but here is the info you requested.
    The database is an Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    The characterset : NLS_CHARACTERSET     AL32UTF8
    And i don't have a clue about the characterset of the operating system (not even sure what the operating system is), but i think that will be utf-8 aswell.
    I'm not sure what i did, to come over as rude, but i didn't mean to and i apologize for it.

  • Various E Mail problems: Junk Mail, Log Off, etc

    I am having various and frustrating problems that are intermittant.
    I have two incoming e mail accounts, one is IMAP and one is POP.
    1. Junk Mail. After having reset my junk mail settings as advised on this site just a few days ago, I am continuing to experience this problem. Messages that the systems "knows" is Junk Mail do NOT go to Junk Mail folder, but to the regular In box. It knows they are Junk Mail because the Tab for changing the message at top of screen says "Not Junk", which means it thinks it is JUNK. They why won't it go into Junk Mail folder?
    2. When I try to delete these messages one by one in In box, the computer "freezes" and takes forever to delete the messages. The In box counter on left hand side of the screen does not decrease as I delete messages, but takes a long time (minutes) to catch up with the deletions.
    3. When receiving certain e mail from specific recipients, the system intermittantly says "message not dowloaded from server, you need to take this account on line". Well. it IS online! Again, this does not happen all the time, but often enough and from the same e mail recipients) that it is very frustrating.
    4. Oftentimes when I try to shut down, I get the dreaded spinning color wheel, only to have to force quit. This is a lengthy process, and then I lose all of the deletions that I have tried to make to my Inbox.
    Are all of these problems somehow related? Cumulatively, they are very frustrating. I never had these kinds of issues with Windows Mail apps. Uuughh!
    Thanks for reading and any assistance.

    There appears to be a problem with the index.
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all the filesystem issues, if any, and ensuring that there’s enough space available on the startup disk (a few GB, plus the space needed to make a backup copy of the Mail folder), try this:
    1. Quit Mail if it’s running.
    2. In the Finder, go to ~/Library/Mail/. Make a backup copy of this folder, just in case something goes wrong, e.g. by dragging it to the Desktop while holding the Option (Alt) key down. This is where all your mail is locally stored.
    3. Locate Envelope Index and move it to the Trash. If you see any other “Envelope Index”-named file there, delete it as well.
    4. Move the “IMAP-” account folder to the Trash. Note that you can do this with IMAP-type accounts because they store mail on the server and Mail can easily re-create them. DON’T trash any “POP-” account folders, as that would cause all mail stored there to be lost.
    5. Open Mail. It will tell you that your mail needs to be “imported”. Click Continue and Mail will proceed to re-create Envelope Index — Mail says it’s “importing”, but it just re-creates the index if the mailboxes are already in Mail 2.x format.
    6. As a side effect of having removed the IMAP account folder, that accounts may be in an “offline” state now. Do Mailbox > Go Online to bring it back online.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. That is, ~/Library is the Library folder within the user’s home folder, i.e. /Users/username/Library.
    <hr>
    If the problem persists, what are your Preferences > Accounts > Mailbox Behaviors > Junk settings, particularly for the IMAP account?
    Also, what have you done to “reset [your] junk mail settings as advised on this site”? This is what I’d suggest:
    1. Go to Preferences > Junk Mail, disable junk mail filtering, then enable it again. This resets the rule that governs what the junk filter does.
    2. Choose either Training or Automatic mode (it doesn’t matter) and leave the other options checked. Click Advanced to see how the junk filter rule is defined now if you want, but don’t touch anything there.
    3. Reset the junk filter database (Preferences > Junk Mail > Reset).
    4. Open Window > Previous Recipients and get rid of any addresses that you don’t want Mail to treat as legit.

  • I am having a problem with mail. In my junk mail folder I have two messages which I drag to trash and empty. Within a few minutes the messages are back in junk mail folder

    I am having a problem with mail.  I am attempting to trash junk mail. Each time I do this and a while later I find the junk mail has not been discarded and is back in junk mil folder.

    Hi tony paine,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    Click on the link to see more details and screenshots. 
    iCloud: Keeping the Junk folder consistent between iCloud Mail and OS X Mail
    http://support.apple.com/kb/HT4911
    Cheers,
    - Judy

  • Mail Junk Folder Problem

    My junk mail folder says that there are 1953 messages in it but when I click on it there is nothing there. The count for my regular mail works just fine and I can see my regular mail just fine as well. I can also throw away and delete mail from my normal mailbox with no problems.
    How do I reset the Junk Mail folder so that it displays and deletes properly?
    I have tried to "erase junk mail" and also "erase deleted messages" but nothing happens. I have also tried to delete the Mail folder from my Caches within my Library and also the Envelope Index from the Mail folder within my Library.
    Does this sound like a familiar issue?

    Hi BC Dezign, and a warm welcome to the forums!
    Is this a POP or IMAP account?
    Did you do these exact steps?
    Safe Boot from the HD, (holding Shift key down at bootup), it will try to repair your Disk Directory while the spinning radian is happening, so let it go, run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move these folder & file to the Desktop.
    Move this Folder to the Desktop...
    /Users/YourUserName/Library/Caches/Mail/
    Move this file to the Desktop...
    /Users/YourUserName/Library/Mail/Envelope Index
    Reboot.
    If that doesn't do it and you can afford to redo all your Rules, try these & reboot...
    /Users/YourUserName/Library/Mail/MessageRules.plist
    /Users/YourUserName/Library/Mail/MessageRules.plist.backup

  • Junk mail filtering problem

    My Mail v2.1 (752/752.2) has learned, and presumably is still learning on an ever-ongoing basis, what is Junk and what is not Junk mail and it seems to be pretty accurate.
    However, it always treats two specific senders, from which I receive emails fairly regularly, as Junk no matter how many times I click the Not Junk button to tell Mail that they are not junk.
    Why does it persist in failing to learn these two specific sender addresses and how can I "force" it to learn without dumping the whole Junk filtering criteria and starting again?
    Thanks.

    Ok, here goes ...
    added to the Window > Previous Recipients - Yes, both are there.
    Sender of message is in my Previous Recipients is checked - No, it asn't but it is now!
    Have you made any changes to the junk filter in Preferences > Junk Mail > Advanced? - Not knowingly. The logic is: If All: Sender is not in my previous Recipients > Sender is not in my addresss book > Message is Junk mail then Move message to Junk.
    Go to Preferences > Junk Mail, disable junk mail filtering, then enable it again. - Done.
    Choose either Training or Automatic mode - Automatic selected.
    lick Advanced to see how the junk filter rule is defined now - The logic now is: If All: Sender is not in my previous Recipients > Sender is not in my addresss book > Message is Junk mail then Move message to Junk which looks pretty much the same to me except for the order, but that shouln't matter should it?
    but don’t touch anything there - I wouldn't dare! :-))
    Thanks, I'll report back when I receive any new emails from them. As one of them is news alerts from Lynchburg, Virginia there will peoably be a few after this afternoon's (UK time) news of today's shootings.

  • Problem Removing Junk Mail from POP Server

    Is there a way to automatically remove junk mail from the POP server when I delete the Junk within the Apple Mail application?
    The Mail application Junk filter is working pretty well for me on my primary MacBook Pro system. My inbox is mostly junk free and I like that I can check the Junk folder to see if any "good" e-mail got snared before deleting the junk from the junk folder.
    However, "Erasing Junk Mail" from the junk mail folder does NOT erase the junk from my POP server. So if I check the same e-mail account on another computer or my Treo, I have endure the same junk messages again which can quickly mount up to 100+ messages over the course of a day.
    I can manually delete messages from the POP server by using the Get Info window in the Shortcuts/Actions Menu at the bottom left of the Mail browser.
    However, I have to manually identify and select the junk messages from all the mail on the POP server to delete it which is both tedious and time consuming.
    Isn't there some way instruct the program to automatically delete Junk from the server when it's deleted from the browser?
    It seems like it would be an obvious feature.
    I've looked for some way to do this including apple scripts but I can't find a way to do it.
    Thanks in advance for any help or suggestions.

    michellzappa,
    All of my e-mail providers have some sort of web based access for my accounts. They identify, segregate and prevent any message marked as bounce from being downloaded to my inbox. Is this what you are describing as redundant?
    Mail Scripts 2.7.10 by Andreas Amann, provides an excellent compilation of mail scripts.
    I would advise that you create a new post with the title. "Can I write an applescript to automatically clean out messages on server every hour?" in the AppleScript Forum.
    ;~)

  • Junk Mail - On My Mac - Problem Deleting Junk Mail

    In the Junk Mail box, there are two sub-folders under it. One says "On My Mac" the other says "Home". The main junk mailbox looks empty. The "On My Mac" mailbox looks emtpy too, but there is an icon next to the folder that says there are 95 messages in there. When I select the folder and go to "Erase Junk Mail" nothing happens. Still nothing is appearing in the main window, but the little icon still shows 95! That number keeps getting bigger too.
    How do I get rid of those once and for all. And I kinda want to see them to make sure they are really junk.
    Thanks

    Phil,
    I don't have time this morning, before having to go to two church services, to stay with you, but will later in the day.
    I need to know all the types of accounts you have. It appears you have at least one .mac account, and one IMAP account. The later is based on the report of the Junk (home).mbox in the Mailboxes folder. With a POP account, the Junk.mbox would properly be in the account folder, and not in the Mailboxes folder.
    Regardless of that, the Junk(.mac account).mbox should be at the first level of the Mailboxes folder, and not WITHIN a plain Junk folder. With this structure so mixed up, it is possible to have important messages that you have not seen.
    More info, please.
    Ernie

Maybe you are looking for