AutoWeb [[Help]] Use notification to mark email as read

Discussion in 'AutoApps' started by soumyaranjanmahunt, Jan 14, 2019.

  1. soumyaranjanmahunt

    soumyaranjanmahunt Member

    Joined:
    Oct 8, 2018
    Messages:
    120
    Likes Received:
    4
    First of all i know AutoNotification has option for adding mark as read button to gmail but i don't use gmail, i use outlook.

    So i wanted any possible way of marking a mail as read when i cancel the notification through AutoWeb.

    Sent from my ONEPLUS A5000 using Tapatalk
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Only if Microsoft has a web API that allows for that :) Do you know if it has any?
     
  3. soumyaranjanmahunt

    soumyaranjanmahunt Member

    Joined:
    Oct 8, 2018
    Messages:
    120
    Likes Received:
    4
    Sorry i wasn't clear, i use the Outlook app, but i still use the gmail id for my mails.

    Sent from my ONEPLUS A5000 using Tapatalk
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Oh, so you use outlook with gmail? Unfortunately I still think it won't work because you'd have to get some info from the notification to identify the email in question and the outlook notification probably doesn't have all the needed info
     
  5. soumyaranjanmahunt

    soumyaranjanmahunt Member

    Joined:
    Oct 8, 2018
    Messages:
    120
    Likes Received:
    4
    The way i understand is the id of mail is needed to remove the "UNREAD" label. How do you get that from gmail notification??

    Sent from my ONEPLUS A5000 using Tapatalk
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    It's not easy... You have to use the API to search for the email with all the possible clues on it you can get (title, date, text, sender, etc)
     
  7. soumyaranjanmahunt

    soumyaranjanmahunt Member

    Joined:
    Oct 8, 2018
    Messages:
    120
    Likes Received:
    4
    That's what you use with the Mark as read button in gmail(by AutoNotification)??

    That might be possible with outlook too.

    Sent from my ONEPLUS A5000 using Tapatalk
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Yep...
     
  9. soumyaranjanmahunt

    soumyaranjanmahunt Member

    Joined:
    Oct 8, 2018
    Messages:
    120
    Likes Received:
    4
    I tried to create a profile with this, i managed to provide email id from notification subtext, and filtered it with the "mail from" providing the notification title, but the problem is i can't get the exact message, could you plz help me out with this??

    My profile description:

    Profile: Mark Mail As Read (12)
    Event: AutoNotification Intercept [ Configuration:Event Behaviour: true
    Notification Type: Only Cancelled Notifications
    Cancel Reason: User cancelled,User cancelled all,Other app cancelled,Other app cancelled all
    Notification Apps: Gmail,Outlook ]
    Enter: Anon (13)
    Run Both Together
    <Get id of unread mail>
    A1: AutoWeb Web Service [ Configuration:API: Gmail
    API Action: List messages
    Include spam trash: false
    Search: from:%antitlebig
    Label IDs: UNREAD Timeout (Seconds):120 ]
    <For all the unread mails>
    A2: For [ Variable:%email Items:%aid() ]
    <Mark mails as read>
    A3: AutoWeb Web Service [ Configuration:API: Gmail
    API Action: Modify Message
    Remove Label: UNREAD Timeout (Seconds):120 ]
    <Exit upon complition>
    A4: End For
    <Inform mail marked as read>
    A5: Flash [ Text:Marked mail as read Long:On ]


    Sent from my ONEPLUS A5000 using Tapatalk
     
  10. soumyaranjanmahunt

    soumyaranjanmahunt Member

    Joined:
    Oct 8, 2018
    Messages:
    120
    Likes Received:
    4
    Also any way to use it for multiple accounts??
     
  11. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    The gmail notification has the title and account, so that allows it to narrow it down...
     
  12. soumyaranjanmahunt

    soumyaranjanmahunt Member

    Joined:
    Oct 8, 2018
    Messages:
    120
    Likes Received:
    4
    So does the outlook notification, but is it possible to pinpoint exact message by text??
    Also use of multiple account possible with AutoWeb??

    Sent from my ONEPLUS A5000 using Tapatalk
     
  13. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    I don't think it's possible by text, sorry! And AutoWeb doesn't support multiple accounts for now, sorry!
     
  14. soumyaranjanmahunt

    soumyaranjanmahunt Member

    Joined:
    Oct 8, 2018
    Messages:
    120
    Likes Received:
    4
    Will it be added in future??

    Sent from my ONEPLUS A5000 using Tapatalk
     
  15. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Maybe! Sorry, don't know, but it would be cool to have!
     
    soumyaranjanmahunt likes this.
  16. soumyaranjanmahunt

    soumyaranjanmahunt Member

    Joined:
    Oct 8, 2018
    Messages:
    120
    Likes Received:
    4
    Since it is possible to reauthenticate with apis, would it be possible to add a task to reauthenticate with another account just before the task??

    Oneplus 5 Stock OOS
     
  17. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Yeah, that could be a good solution :)
     
    soumyaranjanmahunt likes this.

Share This Page